Fix default dist filename for release task
not sure why this fix was needed, did setuptools behavior change?
This commit is contained in:
parent
777b198e44
commit
f80d03daaa
8
tasks.py
8
tasks.py
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# pyCOREPOS -- Python Interface to CORE POS
|
# pyCOREPOS -- Python Interface to CORE POS
|
||||||
# Copyright © 2018-2020 Lance Edgar
|
# Copyright © 2018-2024 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of pyCOREPOS.
|
# This file is part of pyCOREPOS.
|
||||||
#
|
#
|
||||||
|
@ -35,10 +35,10 @@ exec(open(os.path.join(here, 'corepos', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def release(ctx):
|
def release(c):
|
||||||
"""
|
"""
|
||||||
Release a new version of 'pyCOREPOS'.
|
Release a new version of 'pyCOREPOS'.
|
||||||
"""
|
"""
|
||||||
shutil.rmtree('pyCOREPOS.egg-info')
|
shutil.rmtree('pyCOREPOS.egg-info')
|
||||||
ctx.run('python setup.py sdist --formats=gztar')
|
c.run('python setup.py sdist --formats=gztar')
|
||||||
ctx.run('twine upload dist/pyCOREPOS-{}.tar.gz'.format(__version__))
|
c.run('twine upload dist/pycorepos-{}.tar.gz'.format(__version__))
|
||||||
|
|
Loading…
Reference in a new issue