Skip to content

Commit

Permalink
Fix --skip-existing flag to twine
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Burke committed Feb 5, 2017
1 parent 589d32d commit 59e4b51
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,8 @@ def upload_component(component):
distpath = os.path.realpath(os.path.abspath(distpath))
dists = glob.glob(distpath)

if pypi_user is None:
args = ['twine', 'upload', distpath, '--skip-existing']
else:
args = ['twine', 'upload', '-u', pypi_user, '-p', pypi_pass, distpath, '--skip-existing']

#Invoke upload this way since subprocess call of twine cli has cross platform issues
upload(dists, 'pypi', False, None, pypi_user, pypi_pass, None, None, '~/.pypirc', False, None, None, None)
upload(dists, 'pypi', False, None, pypi_user, pypi_pass, None, None, '~/.pypirc', True, None, None, None)

def get_release_notes(component, version):
_, relative_compath = comp_names[component]
Expand Down

0 comments on commit 59e4b51

Please sign in to comment.