From 1cfd30a21178525a5ac21312ebde035a9b2ad73f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 6 Jun 2024 18:17:26 -0500 Subject: [PATCH] Fix default dist filename for release task not sure why this fix was needed, did setuptools behavior change? --- tasks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks.py b/tasks.py index 6454e3f..d411697 100644 --- a/tasks.py +++ b/tasks.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2022 Lance Edgar +# Copyright © 2010-2024 Lance Edgar # # This file is part of Rattail. # @@ -35,14 +35,14 @@ exec(open(os.path.join(here, 'rattail_harvest', '_version.py')).read()) @task -def release(ctx): +def release(c): """ Release a new version of rattail-harvest """ # rebuild local tar.gz file for distribution shutil.rmtree('rattail_harvest.egg-info') - ctx.run('python setup.py sdist --formats=gztar') + c.run('python setup.py sdist --formats=gztar') # upload to public PyPI - filename = 'rattail-harvest-{}.tar.gz'.format(__version__) - ctx.run('twine upload dist/{}'.format(filename)) + filename = f'rattail_harvest-{__version__}.tar.gz' + c.run(f'twine upload dist/{filename}')