tests/_support/tree/build/__init__.py
raw| 1 | "Tasks for compiling static code and assets." |
| 2 | |
| 3 | from invoke import task, Collection |
| 4 | |
| 5 | from . import docs, python |
| 6 | |
| 7 | |
| 8 | @task(name="all", aliases=["everything"], default=True) |
| 9 | def all_(c): |
| 10 | "Build all necessary artifacts." |
| 11 | pass |
| 12 | |
| 13 | |
| 14 | @task(aliases=["ext"]) |
| 15 | def c_ext(c): |
| 16 | "Build our internal C extension." |
| 17 | pass |
| 18 | |
| 19 | |
| 20 | @task |
| 21 | def zap(c): |
| 22 | "A silly way to clean." |
| 23 | pass |
| 24 | |
| 25 | |
| 26 | ns = Collection(all_, c_ext, zap, docs, python) |