Use build
module instead of invoking setup.py
for release
This commit is contained in:
parent
cf342f33cf
commit
2f40079d33
4
tasks.py
4
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))
|
||||
|
|
Loading…
Reference in a new issue