From 902a2446341d3c9a8ea6fc2b8f5e0c2494fdbbdb Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 6 Jun 2024 18:51:14 -0500 Subject: [PATCH] Fix default dist filename for release task not sure why this fix was needed, did setuptools behavior change? --- tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 0c51e8c..530c097 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. # @@ -45,5 +45,5 @@ def release(c): c.run('python -m build --sdist') # upload to public PyPI - filename = 'rattail-wave-{}.tar.gz'.format(__version__) - c.run('twine upload dist/{}'.format(filename)) + filename = f'rattail_wave-{__version__}.tar.gz' + c.run(f'twine upload dist/{filename}')