Use build
module instead of invoking setup.py
for release
This commit is contained in:
parent
fbda52b111
commit
e73a413e00
2
tasks.py
2
tasks.py
|
@ -20,7 +20,7 @@ def release(ctx):
|
||||||
"""
|
"""
|
||||||
# rebuild local tar.gz file for distribution
|
# rebuild local tar.gz file for distribution
|
||||||
shutil.rmtree('Corporal.egg-info')
|
shutil.rmtree('Corporal.egg-info')
|
||||||
ctx.run('python setup.py sdist --formats=gztar')
|
ctx.run('python -m build --sdist')
|
||||||
|
|
||||||
# upload to public PyPI
|
# upload to public PyPI
|
||||||
ctx.run('twine upload dist/Corporal-{}.tar.gz'.format(__version__))
|
ctx.run('twine upload dist/Corporal-{}.tar.gz'.format(__version__))
|
||||||
|
|
Loading…
Reference in a new issue