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