build: use newer convention when building for release
This commit is contained in:
parent
04948fb840
commit
40e647d5c8
3
tasks.py
3
tasks.py
|
@ -50,6 +50,7 @@ def release(c):
|
||||||
"""
|
"""
|
||||||
Release a new version of 'pyCOREPOS'.
|
Release a new version of 'pyCOREPOS'.
|
||||||
"""
|
"""
|
||||||
|
if os.path.exists('pyCOREPOS.egg-info'):
|
||||||
shutil.rmtree('pyCOREPOS.egg-info')
|
shutil.rmtree('pyCOREPOS.egg-info')
|
||||||
c.run('python setup.py sdist --formats=gztar')
|
c.run('python -m build --sdist')
|
||||||
c.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