Upload package to PyPI when building new release
This commit is contained in:
parent
6aae88f304
commit
c3d381fe9d
5
tasks.py
5
tasks.py
|
@ -22,6 +22,5 @@ def release(ctx):
|
|||
shutil.rmtree('Corporal.egg-info')
|
||||
ctx.run('python setup.py sdist --formats=gztar')
|
||||
|
||||
# TODO: uncomment and update these details, to upload to private PyPI
|
||||
#filename = 'Corporal-{}.tar.gz'.format(__version__)
|
||||
#ctx.run('scp dist/{} rattail@pypi.example.com:/srv/pypi/corporal/'.format(filename))
|
||||
# upload to public PyPI
|
||||
ctx.run('twine upload dist/Corporal-{}.tar.gz'.format(__version__))
|
||||
|
|
Loading…
Reference in a new issue