Avoid error for first-time release
This commit is contained in:
parent
2532c55ed8
commit
9043053134
1 changed files with 2 additions and 1 deletions
3
tasks.py
3
tasks.py
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue