Skip to content

Commit 3251171

Browse files
huydhnpytorchmergebot
authored andcommitted
Make whl metadata public readable (pytorch#144164)
After https://github.com/pytorch/pytorch/pull/143677/files#r1902138480 lands, the new nightly wheel metadata is not readable publicly causing pip install to fail, for example https://github.com/pytorch/pytorch/actions/runs/12603415308/job/35128414909. FBGEMM folks are also noticed this failure on their end (cc @q10) Pull Request resolved: pytorch#144164 Approved by: https://github.com/clee2000
1 parent 9bf2a9a commit 3251171

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/release/upload_metadata_file.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ def s3_upload(s3_bucket: str, s3_key: str, file: str, dry_run: bool) -> None:
5050
if dry_run:
5151
print(f"Dry run uploading {file} to s3://{s3_bucket}/{s3_key}")
5252
return
53-
s3.upload_file(file, s3_bucket, s3_key, ExtraArgs={"ChecksumAlgorithm": "sha256"})
53+
s3.upload_file(
54+
file,
55+
s3_bucket,
56+
s3_key,
57+
ExtraArgs={"ChecksumAlgorithm": "sha256", "ACL": "public-read"},
58+
)
5459

5560

5661
def extract_metadata(file: str) -> str:

0 commit comments

Comments
 (0)