You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add --skip-existing option to poetry publish #2254
I have searched the issues of this repo and believe that this is not a duplicate.
I have searched the documentation and believe that my question is not covered.
Feature Request
The twine tool for publishing to PyPi style repos has a very useful option --skip-existing for the twine upload command. This option basically says "don't error out if a file already exists on PyPi, continue to the next".
This is super useful in a number of cases, including with CI/CD pipelines where, on branching, the pipeline will trigger a build for the new branch, but of course that first build will already have a corresponding package in PyPi as the commit it's being built from has already been built on the branch that the new branch was created from. In that case, it's fine for the pipeline to fail to upload the file as it already exists.
There are various other use cases for this flag. Could we have an equivalent flag for poetry publish ?
Reacted by Shay Nehmad, Eric Liu, Jose Eduardo, IsmaelMartinez, Yunseong Hwang, Vinö, Leem0sh, fbjorn, Codie, Adrian Garcia Badaracco and 4 more
@davidszotten feel free to propose an implementation for this. You can either create a draft PR to discuss implementation or mention how you would want to approach this here. A few things that comes to mind:
Would this mean that we ignore all errors?
Can we identify "existing" vs "other error" accurately?
How do we handle other errors if this flag is set?
Activity
davidszotten commentedon Aug 14, 2020
would you accept a patch that adds this?
abn commentedon Aug 14, 2020
@davidszotten feel free to propose an implementation for this. You can either create a draft PR to discuss implementation or mention how you would want to approach this here. A few things that comes to mind:
Happy to help review etc.
davidszotten commentedon Aug 14, 2020
i would probably do something similar to twine (heuristics for a few package index implementations that try to detect this particular error)
i explicitly don't want to ignore all errors, only "this file already exists"
add --skip-existing to publish
add --skip-existing to publish
add --skip-existing to publish
Casyfill commentedon Mar 28, 2021
Any hope to get this feature? Can't find discussion on what happened to above.. 😟
add --skip-existing to publish
add --skip-existing to publish
add --skip-existing to publish
add --skip-existing to publish
Incognito commentedon Jul 19, 2021
How can I help get this feature merged?
add --skip-existing to publish
Leem0sh commentedon Sep 17, 2021
Even tho I really like this project I'm forced to use twine for publishing generated clients :( This would be awesome to merge!
KRunchPL commentedon Oct 31, 2021
I agree that this feature would be great. The PR looks good too me (although I did not check all possible responses :) ).
add --skip-existing to publish
add --skip-existing to publish
add --skip-existing to publish
add --skip-existing to publish
add --skip-existing to publish (#2812)
github-actions commentedon Mar 1, 2024
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.