File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Task running
2
- invoke
2
+ invoke>=0.13.0
3
3
4
4
# Testing
5
5
flake8
Original file line number Diff line number Diff line change 3
3
from invoke import task , run
4
4
5
5
@task
6
- def clean ():
6
+ def clean (ctx ):
7
7
run ('rm -rf dist' )
8
8
run ('rm -rf build' )
9
9
run ('rm -rf flask_apispec.egg-info' )
10
10
11
11
@task
12
- def install ():
12
+ def install (ctx ):
13
13
run ('npm install' )
14
14
run ('rm -rf flask_apispec/static' )
15
15
run ('cp -r node_modules/swagger-ui/dist flask_apispec/static' )
16
16
17
17
@task
18
- def publish (test = False ):
18
+ def publish (ctx , test = False ):
19
19
"""Publish to the cheeseshop."""
20
- clean ()
21
- install ()
20
+ clean (ctx )
21
+ install (ctx )
22
22
if test :
23
23
run ('python setup.py register -r test sdist bdist_wheel' , echo = True )
24
24
run ('twine upload dist/* -r test' , echo = True )
You can’t perform that action at this time.
0 commit comments