Skip to content

Commit

Permalink
fix: Re-add skip-existing
Browse files Browse the repository at this point in the history
  • Loading branch information
relekang committed Nov 22, 2018
1 parent ab84beb commit 366e9c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion semantic_release/pypi.py
Expand Up @@ -7,6 +7,7 @@ def upload_to_pypi(
dists: str = 'sdist bdist_wheel',
username: str = None,
password: str = None,
skip_existing: bool = False
):
"""Creates the wheel and uploads to pypi with twine.
Expand All @@ -15,5 +16,5 @@ def upload_to_pypi(
:param password: PyPI account password string
"""
run('python setup.py {}'.format(dists))
run('twine upload -u {} -p {}'.format(username, password))
run('twine upload -u {} -p {} {}'.format(username, password, '--skip-existing' if skip_existing else ''))
run('rm -rf build dist')

0 comments on commit 366e9c1

Please sign in to comment.