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