From 2f40079d337bc8525bcf1ff794e3a1fa33b14a8c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 6 Aug 2022 21:45:00 -0500 Subject: [PATCH] Use `build` module instead of invoking `setup.py` for release --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 9464bfd..ac9fab3 100644 --- a/tasks.py +++ b/tasks.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2022 Lance Edgar # # This file is part of Rattail. # @@ -40,7 +40,7 @@ def release(ctx): Release a new version of 'rattail-mailchimp'. """ shutil.rmtree('rattail_mailchimp.egg-info') - ctx.run('python setup.py sdist --formats=gztar') + ctx.run('python -m build --sdist') filename = 'rattail-mailchimp-{}.tar.gz'.format(__version__) ctx.run('twine upload dist/{}'.format(filename))