Fix default dist filename for release task
not sure why this fix was needed, did setuptools behavior change?
This commit is contained in:
parent
02298a7a29
commit
1cfd30a211
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, 'rattail_harvest', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def release(ctx):
|
def release(c):
|
||||||
"""
|
"""
|
||||||
Release a new version of rattail-harvest
|
Release a new version of rattail-harvest
|
||||||
"""
|
"""
|
||||||
# rebuild local tar.gz file for distribution
|
# rebuild local tar.gz file for distribution
|
||||||
shutil.rmtree('rattail_harvest.egg-info')
|
shutil.rmtree('rattail_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 = 'rattail-harvest-{}.tar.gz'.format(__version__)
|
filename = f'rattail_harvest-{__version__}.tar.gz'
|
||||||
ctx.run('twine upload dist/{}'.format(filename))
|
c.run(f'twine upload dist/{filename}')
|
||||||
|
|
Loading…
Reference in a new issue