File tree 1 file changed +14
-16
lines changed
1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import invoke
6
6
7
- # -------------------------------------------------------------------------------
8
7
9
8
10
9
@invoke .task
11
10
def clean (context ):
12
11
'''Clean doc and build artifacts
13
12
'''
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
26
22
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
+
You can’t perform that action at this time.
0 commit comments