Use build module instead of invoking setup.py for release

This commit is contained in:
Lance Edgar 2022-08-06 21:10:57 -05:00
parent 1efdd9debd
commit a45a0b44d5

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2018 Lance Edgar # Copyright © 2010-2022 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -42,5 +42,5 @@ def release(ctx):
Release a new version of `rattail-tempmon` Release a new version of `rattail-tempmon`
""" """
shutil.rmtree('rattail_tempmon.egg-info') shutil.rmtree('rattail_tempmon.egg-info')
ctx.run('python setup.py sdist --formats=gztar') ctx.run('python -m build --sdist')
ctx.run('twine upload dist/rattail-tempmon-{}.tar.gz'.format(__version__)) ctx.run('twine upload dist/rattail-tempmon-{}.tar.gz'.format(__version__))