From c670b92b0b382f5cef29e5bfdabff34960002242 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 29 Jul 2022 13:55:16 -0500 Subject: [PATCH] Use `build` module instead of invoking `setup.py` for release --- tasks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 4d63894..2512258 100644 --- a/tasks.py +++ b/tasks.py @@ -1,7 +1,5 @@ # -*- coding: utf-8; -*- -from __future__ import unicode_literals, absolute_import - import os import shutil @@ -18,7 +16,7 @@ def release(ctx): Release a new version of 'appypod-rattail'. """ shutil.rmtree('appypod_rattail.egg-info') - ctx.run("python setup.py egg_info --tag-build='' sdist --formats=gztar") + ctx.run('python -m build --sdist') filename = 'appypod-rattail-{}.tar.gz'.format(__version__) ctx.run('scp dist/{} rattail@pypi.rattailproject.org:/srv/pypi/public/'.format(filename))