From c3d381fe9d6d87bc4d2bd187a2cfed1b158e323d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 11 Jun 2021 17:47:16 -0500 Subject: [PATCH] Upload package to PyPI when building new release --- tasks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index b26919e..cff0aa6 100644 --- a/tasks.py +++ b/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__))