Avoid error for first-time release
This commit is contained in:
parent
2532c55ed8
commit
9043053134
3
tasks.py
3
tasks.py
|
@ -19,7 +19,8 @@ def release(c):
|
||||||
Release a new version of Messkit
|
Release a new version of Messkit
|
||||||
"""
|
"""
|
||||||
# rebuild local tar.gz file for distribution
|
# 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')
|
c.run('python -m build --sdist')
|
||||||
|
|
||||||
# upload to public PyPI
|
# upload to public PyPI
|
||||||
|
|
Loading…
Reference in a new issue