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-04-25 14:09:30 -05:00
parent 0277264b2e
commit 08887a9053

View file

@ -35,11 +35,11 @@ exec(open(os.path.join(here, 'tailbone_corepos', '_version.py')).read())
@task
def release(ctx):
def release(c):
"""
Release a new version of 'tailbone-corepos'.
"""
shutil.rmtree('tailbone_corepos.egg-info')
ctx.run('python setup.py sdist --formats=gztar')
filename = 'tailbone-corepos-{}.tar.gz'.format(__version__)
ctx.run('twine upload dist/{}'.format(filename))
c.run('python setup.py sdist --formats=gztar')
filename = f'tailbone_corepos-{__version__}.tar.gz'
c.run('twine upload dist/{}'.format(filename))