File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 44
55import invoke
66
7- # -------------------------------------------------------------------------------
87
98
109@invoke .task
1110def 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
2622def 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+
You can’t perform that action at this time.
0 commit comments