Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed88d82

Browse files
authored
Skip existing when retrying upload-pypi.py (#19305)
The upload script has been pretty flaky for me. Now rerunning skips the wheels that have already been uploaded, so the upload should always eventually finish after enough retries. Work on #19174.
1 parent 28f0600 commit ed88d82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

misc/upload-pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def tmp_twine() -> Iterator[Path]:
108108
def upload_dist(dist: Path, dry_run: bool = True) -> None:
109109
with tmp_twine() as twine:
110110
files = [item for item in dist.iterdir() if item_ok_for_pypi(item.name)]
111-
cmd: list[Any] = [twine, "upload"]
111+
cmd: list[Any] = [twine, "upload", "--skip-existing"]
112112
cmd += files
113113
if dry_run:
114114
print("[dry run] " + " ".join(map(str, cmd)))

0 commit comments

Comments
 (0)