Fix default dist filename for release task
not sure why this fix was needed, did setuptools behavior change?
This commit is contained in:
parent
1a4991d9c4
commit
48c8ea43df
10
tasks.py
10
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))
|
||||
|
|
Loading…
Reference in a new issue