Use build module instead of invoking setup.py for release

This commit is contained in:
Lance Edgar 2022-06-14 14:03:10 -05:00
parent 6b466bb90f
commit a28d9b9748

View file

@ -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__))