From 48c8ea43dfcfb22cc5993508d44e03742bc58572 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 3 Jun 2024 11:22:47 -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 ac9fab3..577dd82 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,12 +35,12 @@ exec(open(os.path.join(here, 'rattail_mailchimp', '_version.py')).read()) @task -def release(ctx): +def release(c): """ Release a new version of 'rattail-mailchimp'. """ shutil.rmtree('rattail_mailchimp.egg-info') - ctx.run('python -m build --sdist') + c.run('python -m build --sdist') - filename = 'rattail-mailchimp-{}.tar.gz'.format(__version__) - ctx.run('twine upload dist/{}'.format(filename)) + filename = f'rattail_mailchimp-{__version__}.tar.gz' + c.run('twine upload dist/{}'.format(filename))