-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathtasks.py
More file actions
29 lines (23 loc) · 761 Bytes
/
tasks.py
File metadata and controls
29 lines (23 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from importlib import import_module
from invocations import docs, travis
from invocations.packaging import release
from invocations.pytest import test, coverage
from invoke import Collection, task
@task
def sanity(c):
"""
Quick sanity check to ensure we're installed successfully. Mostly for CI.
"""
# Doesn't need to literally import everything, but "a handful" will do.
for name in ('environment', 'files', 'transfers', 'users'):
mod = "patchwork.{}".format(name)
import_module(mod)
print("Imported {} successfully".format(mod))
ns = Collection(docs, release, travis, test, coverage, sanity)
ns.configure({
'packaging': {
'sign': True,
'wheel': True,
'check_desc': True,
},
})