build: fix command to build package, per newer convention

This commit is contained in:
Lance Edgar 2024-06-10 19:05:31 -05:00
parent 5b4d4729eb
commit eae58f97ad

View file

@ -52,6 +52,6 @@ def release(c):
"""
if os.path.exists('tailbone_corepos.egg-info'):
shutil.rmtree('tailbone_corepos.egg-info')
c.run('python setup.py sdist --formats=gztar')
c.run('python -m build --sdist')
filename = f'tailbone_corepos-{__version__}.tar.gz'
c.run('twine upload dist/{}'.format(filename))