forked from fabric/patchwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.py
33 lines (27 loc) · 881 Bytes
/
tasks.py
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
30
31
32
33
from importlib import import_module
from invocations import docs, travis
from invocations.checks import blacken
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"):
mod = "patchwork.{}".format(name)
import_module(mod)
print("Imported {} successfully".format(mod))
ns = Collection(docs, release, travis, test, coverage, sanity, blacken)
ns.configure(
{
"packaging": {
"sign": True,
"wheel": True,
"check_desc": True,
"changelog_file": "docs/changelog.rst",
}
}
)