Skip to content

Commit 455a484

Browse files
committed
Latest invoke releases require context as task argument.
1 parent 4562f57 commit 455a484

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Task running
2-
invoke
2+
invoke>=0.13.0
33

44
# Testing
55
flake8

tasks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
from invoke import task, run
44

55
@task
6-
def clean():
6+
def clean(ctx):
77
run('rm -rf dist')
88
run('rm -rf build')
99
run('rm -rf flask_apispec.egg-info')
1010

1111
@task
12-
def install():
12+
def install(ctx):
1313
run('npm install')
1414
run('rm -rf flask_apispec/static')
1515
run('cp -r node_modules/swagger-ui/dist flask_apispec/static')
1616

1717
@task
18-
def publish(test=False):
18+
def publish(ctx, test=False):
1919
"""Publish to the cheeseshop."""
20-
clean()
21-
install()
20+
clean(ctx)
21+
install(ctx)
2222
if test:
2323
run('python setup.py register -r test sdist bdist_wheel', echo=True)
2424
run('twine upload dist/* -r test', echo=True)

0 commit comments

Comments
 (0)