Use build module instead of invoking setup.py for release

This commit is contained in:
Lance Edgar 2022-07-25 12:06:00 -05:00
parent fbda52b111
commit e73a413e00

View file

@ -20,7 +20,7 @@ def release(ctx):
"""
# rebuild local tar.gz file for distribution
shutil.rmtree('Corporal.egg-info')
ctx.run('python setup.py sdist --formats=gztar')
ctx.run('python -m build --sdist')
# upload to public PyPI
ctx.run('twine upload dist/Corporal-{}.tar.gz'.format(__version__))