Use build module instead of invoking setup.py for release

This commit is contained in:
Lance Edgar 2022-08-06 21:45:00 -05:00
parent cf342f33cf
commit 2f40079d33

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar # Copyright © 2010-2022 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -40,7 +40,7 @@ def release(ctx):
Release a new version of 'rattail-mailchimp'. Release a new version of 'rattail-mailchimp'.
""" """
shutil.rmtree('rattail_mailchimp.egg-info') 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__) filename = 'rattail-mailchimp-{}.tar.gz'.format(__version__)
ctx.run('twine upload dist/{}'.format(filename)) ctx.run('twine upload dist/{}'.format(filename))