Make whl metadata public readable (#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: https://github.com/pytorch/pytorch/pull/144164
Approved by: https://github.com/clee2000
This commit is contained in:
Huy Do
2025-01-03 21:08:49 +00:00
committed by PyTorch MergeBot
parent 9bf2a9a616
commit 3251171ae8

View File

@ -50,7 +50,12 @@ def s3_upload(s3_bucket: str, s3_key: str, file: str, dry_run: bool) -> None:
if dry_run: if dry_run:
print(f"Dry run uploading {file} to s3://{s3_bucket}/{s3_key}") print(f"Dry run uploading {file} to s3://{s3_bucket}/{s3_key}")
return return
s3.upload_file(file, s3_bucket, s3_key, ExtraArgs={"ChecksumAlgorithm": "sha256"}) s3.upload_file(
file,
s3_bucket,
s3_key,
ExtraArgs={"ChecksumAlgorithm": "sha256", "ACL": "public-read"},
)
def extract_metadata(file: str) -> str: def extract_metadata(file: str) -> str: