Skip to content

Commit 43b8f20

Browse files
committed
Update to latest invoke.
1 parent 34fdf06 commit 43b8f20

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: tasks.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# -*- coding: utf-8 -*-
22

3-
from invoke import task, run
3+
from invoke import task
44

55
@task
6-
def clean():
7-
run('rm -rf dist')
8-
run('rm -rf build')
9-
run('rm -rf sqlalchemy_postgres_copy.egg-info')
6+
def clean(ctx):
7+
ctx.run('rm -rf dist')
8+
ctx.run('rm -rf build')
9+
ctx.run('rm -rf sqlalchemy_postgres_copy.egg-info')
1010

1111
@task
12-
def publish(test=False):
12+
def publish(ctx, test=False):
1313
"""Publish to the cheeseshop."""
14-
clean()
14+
clean(ctx)
1515
if test:
16-
run('python setup.py register -r test sdist bdist_wheel', echo=True)
17-
run('twine upload dist/* -r test', echo=True)
16+
ctx.run('python setup.py register -r test sdist bdist_wheel', echo=True)
17+
ctx.run('twine upload dist/* -r test', echo=True)
1818
else:
19-
run('python setup.py register sdist bdist_wheel', echo=True)
20-
run('twine upload dist/*', echo=True)
19+
ctx.run('python setup.py register sdist bdist_wheel', echo=True)
20+
ctx.run('twine upload dist/*', echo=True)

0 commit comments

Comments
 (0)