From f80d03daaa301f2b98a482945e0bfa6726dbe571 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 29 May 2024 10:10:25 -0500 Subject: [PATCH] Fix default dist filename for release task not sure why this fix was needed, did setuptools behavior change? --- tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks.py b/tasks.py index a9b9fc3..9156d43 100644 --- a/tasks.py +++ b/tasks.py @@ -2,7 +2,7 @@ ################################################################################ # # pyCOREPOS -- Python Interface to CORE POS -# Copyright © 2018-2020 Lance Edgar +# Copyright © 2018-2024 Lance Edgar # # This file is part of pyCOREPOS. # @@ -35,10 +35,10 @@ exec(open(os.path.join(here, 'corepos', '_version.py')).read()) @task -def release(ctx): +def release(c): """ Release a new version of 'pyCOREPOS'. """ shutil.rmtree('pyCOREPOS.egg-info') - ctx.run('python setup.py sdist --formats=gztar') - ctx.run('twine upload dist/pyCOREPOS-{}.tar.gz'.format(__version__)) + c.run('python setup.py sdist --formats=gztar') + c.run('twine upload dist/pycorepos-{}.tar.gz'.format(__version__))