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