Upload package to PyPI when building new release

This commit is contained in:
Lance Edgar 2021-06-11 17:47:16 -05:00
parent 6aae88f304
commit c3d381fe9d

View file

@ -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__))