Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip files that are already on PyPI #115

Closed
nedbat opened this issue Jul 16, 2015 · 2 comments
Closed

Skip files that are already on PyPI #115

nedbat opened this issue Jul 16, 2015 · 2 comments

Comments

@nedbat
Copy link

nedbat commented Jul 16, 2015

Currently, if I try to upload a file with twine that already exists on PyPI, it refuses to upload it, and stops. Can we have a command-line option to skip those uploads and continue? With the proliferation of formats and platforms, it's easy to have a dist directory with multiple kits, only some of which need to be uploaded.

@sigmavirus24
Copy link
Member

I ran into this last night and was thinking the same thing. Begin the yakshaving on the name of the option ;)

@nedbat
Copy link
Author

nedbat commented Jul 16, 2015

--skip-existing

sigmavirus24 added a commit to sigmavirus24/twine that referenced this issue Sep 12, 2015
This new flag allows users to force twine to skip existing files when
uploading to PyPI. For example:

    ~/s/gh3.py git:develop ❯❯❯ twine upload --skip-existing dist/*
    Uploading distributions to https://pypi.python.org/pypi
    Uploading github3.py-1.0.0a2-py2.py3-none-any.whl
      Skipping github3.py-1.0.0a2-py2.py3-none-any.whl because it
    appears to already exist
    Uploading github3.py-1.0.0a2.tar.gz
      Skipping github3.py-1.0.0a2.tar.gz because it appears to
    already exist

Closes pypa#115
sigmavirus24 added a commit to sigmavirus24/twine that referenced this issue Sep 13, 2015
This new flag allows users to force twine to skip existing files when
uploading to PyPI. For example:

    ~/s/gh3.py git:develop ❯❯❯ twine upload --skip-existing dist/*
    Uploading distributions to https://pypi.python.org/pypi
    Uploading github3.py-1.0.0a2-py2.py3-none-any.whl
      Skipping github3.py-1.0.0a2-py2.py3-none-any.whl because it
    appears to already exist
    Uploading github3.py-1.0.0a2.tar.gz
      Skipping github3.py-1.0.0a2.tar.gz because it appears to
    already exist

Closes pypa#115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants