Skip to content

Commit 4251939

Browse files
committed
Skip existing when retrying upload-pypi.py
The upload script has been pretty flaky for me. Now rerunning skips the wheels that have already been uploaded, so the upload should eventually finish after enough retries. Work on #19174.
1 parent 5081c59 commit 4251939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)