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