Fix default dist filename for release task

not sure why this fix was needed, did setuptools behavior change?
This commit is contained in:
Lance Edgar 2024-05-29 10:15:24 -05:00
parent 0e0823e043
commit 55a7c4a9be

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar # Copyright © 2010-2024 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -45,7 +45,7 @@ def release(c):
c.run('python -m build --sdist') c.run('python -m build --sdist')
# filename of built package # filename of built package
filename = 'rattail-nationbuilder-{}.tar.gz'.format(__version__) filename = f'rattail_nationbuilder-{__version__}.tar.gz'
# upload to PyPI # upload to PyPI
c.run('twine upload dist/{}'.format(filename)) c.run('twine upload dist/{}'.format(filename))