From a28d9b9748e5b721ca61961177e5d5afabcd7dd0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 14 Jun 2022 14:03:10 -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 e2ba5670..ed19d68f 100644 --- a/tasks.py +++ b/tasks.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2018 Lance Edgar +# Copyright © 2010-2022 Lance Edgar # # This file is part of Rattail. # @@ -45,5 +45,5 @@ def release(ctx, skip_tests=False): ctx.run('tox') shutil.rmtree('Tailbone.egg-info') - ctx.run('python setup.py sdist --formats=gztar') + ctx.run('python -m build --sdist') ctx.run('twine upload dist/Tailbone-{}.tar.gz'.format(__version__))