Avoid error for first-time release

This commit is contained in:
Lance Edgar 2023-10-29 21:45:22 -05:00
parent 2532c55ed8
commit 9043053134

View file

@ -19,7 +19,8 @@ def release(c):
Release a new version of Messkit
"""
# rebuild local tar.gz file for distribution
shutil.rmtree('Messkit.egg-info')
if os.path.exists('Messkit.egg-info'):
shutil.rmtree('Messkit.egg-info')
c.run('python -m build --sdist')
# upload to public PyPI