We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 658037f commit 34cfed4Copy full SHA for 34cfed4
changelog/816.feature.rst
@@ -0,0 +1 @@
1
+Allow the ``--skip-existing`` option to work with GCP Artifact Registry.
twine/commands/upload.py
@@ -58,8 +58,8 @@ def skip_upload(
58
return (
59
# pypiserver (https://pypi.org/project/pypiserver)
60
status == 409
61
- # PyPI / TestPyPI
62
- or (status == 400 and "already exist" in reason)
+ # PyPI / TestPyPI / GCP Artifact Registry
+ or (status == 400 and any("already exist" in x for x in [reason, text]))
63
# Nexus Repository OSS (https://www.sonatype.com/nexus-repository-oss)
64
or (status == 400 and any("updating asset" in x for x in [reason, text]))
65
# Artifactory (https://jfrog.com/artifactory/)
0 commit comments