diff --git a/tasks.py b/tasks.py index 5ad2c81..b09b83a 100644 --- a/tasks.py +++ b/tasks.py @@ -14,13 +14,13 @@ exec(open(os.path.join(here, 'messkit', '_version.py')).read()) @task -def release(ctx): +def release(c): """ Release a new version of Messkit """ # rebuild local tar.gz file for distribution shutil.rmtree('Messkit.egg-info') - ctx.run('python setup.py sdist --formats=gztar') + c.run('python -m build --sdist') # upload to public PyPI - ctx.run('twine upload dist/Messkit-{}.tar.gz'.format(__version__)) + c.run('twine upload dist/Messkit-{}.tar.gz'.format(__version__))