From e73a413e0039d411b15433e9d760377ae4ace91e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 25 Jul 2022 12:06:00 -0500 Subject: [PATCH] Use `build` module instead of invoking `setup.py` for release --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index cff0aa6..1a2a160 100644 --- a/tasks.py +++ b/tasks.py @@ -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__))