Fix default dist filename for release task
not sure why this fix was needed, did setuptools behavior change?
This commit is contained in:
parent
3ea20c2d8c
commit
6eb483fe90
10
tasks.py
10
tasks.py
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2022 Lance Edgar
|
# Copyright © 2010-2024 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -35,14 +35,14 @@ exec(open(os.path.join(here, 'tailbone_harvest', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def release(ctx):
|
def release(c):
|
||||||
"""
|
"""
|
||||||
Release a new version of tailbone-harvest
|
Release a new version of tailbone-harvest
|
||||||
"""
|
"""
|
||||||
# rebuild local tar.gz file for distribution
|
# rebuild local tar.gz file for distribution
|
||||||
shutil.rmtree('tailbone_harvest.egg-info')
|
shutil.rmtree('tailbone_harvest.egg-info')
|
||||||
ctx.run('python setup.py sdist --formats=gztar')
|
c.run('python setup.py sdist --formats=gztar')
|
||||||
|
|
||||||
# upload to public PyPI
|
# upload to public PyPI
|
||||||
filename = 'tailbone-harvest-{}.tar.gz'.format(__version__)
|
filename = f'tailbone_harvest-{__version__}.tar.gz'
|
||||||
ctx.run('twine upload dist/{}'.format(filename))
|
c.run(f'twine upload dist/{filename}')
|
||||||
|
|
Loading…
Reference in a new issue