diff --git a/tasks.py b/tasks.py index 88b264a..fea43cf 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, 'tailbone_harvest', '_version.py')).read()) @task -def release(ctx): +def release(c): """ Release a new version of tailbone-harvest """ # rebuild local tar.gz file for distribution shutil.rmtree('tailbone_harvest.egg-info') - ctx.run('python setup.py sdist --formats=gztar') + c.run('python setup.py sdist --formats=gztar') # upload to public PyPI - filename = 'tailbone-harvest-{}.tar.gz'.format(__version__) - ctx.run('twine upload dist/{}'.format(filename)) + filename = f'tailbone_harvest-{__version__}.tar.gz' + c.run(f'twine upload dist/{filename}')