Skip to content

Commit

Permalink
feat: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Fournier committed Jan 24, 2025
1 parent 4df1dc8 commit f0eb0f3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions twine/commands/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,17 @@ def skip_upload(
# PyPI / TestPyPI / GCP Artifact Registry
or (status == 400 and any("already exist" in x for x in [reason, text]))
# Nexus Repository OSS (https://www.sonatype.com/nexus-repository-oss)
or (status == 400 and any("updating asset" in x for x in [reason, text]))
or (
status == 400
and (
any("updating asset" in x for x in [reason, text])
or ("cannot be updated" in text)
)
)
# Artifactory (https://jfrog.com/artifactory/)
or (status == 403 and "overwrite artifact" in text)
# Gitlab Enterprise Edition (https://about.gitlab.com)
or (status == 400 and "already been taken" in text)
# Sonatype Nexus Repository
# (https://help.sonatype.com/en/pypi-repositories.html)
or (status == 400 and "cannot be updated" in text)
)


Expand Down

0 comments on commit f0eb0f3

Please sign in to comment.