Skip to content

Commit 56e3a06

Browse files
committed
updated tasks
1 parent 3831a5e commit 56e3a06

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

Diff for: tasks.py

+14-16
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,24 @@
44

55
import invoke
66

7-
# -------------------------------------------------------------------------------
87

98

109
@invoke.task
1110
def clean(context):
1211
'''Clean doc and build artifacts
1312
'''
14-
# context.run('rm -rf htmlcov')
15-
# context.run('rm -rf doc/build')
16-
context.run('rm -rf build')
17-
context.run('rm -rf dist')
18-
context.run('rm -rf *.egg-info')
19-
context.run('rm -rf .mypy_cache')
20-
context.run('rm -rf .pytest_cache')
21-
context.run('rm -rf .hypothesis')
22-
context.run('rm -rf .ipynb_checkpoints')
23-
24-
25-
@invoke.task(pre=(clean,))
13+
context.run(f"{sys.executable} setup.py develop --uninstall", echo=True)
14+
15+
for artifact in ("*.egg-info", "*.so", "build", "dist"):
16+
context.run(f"rm -rf {artifact}", echo=True)
17+
18+
# context.run("black .", echo=True)@task(clean)
19+
20+
21+
@invoke.task
2622
def build(context):
27-
'''Build packages
28-
'''
29-
context.run(f'{sys.executable} setup.py sdist bdist_wheel')
23+
context.run(f"pip install -r requirements.txt", echo=True)
24+
context.run(f"{sys.executable} setup.py develop", echo=True)
25+
26+
27+

0 commit comments

Comments
 (0)