Unverified Commit 4f7965c9 authored by Ruilong Li(李瑞龙)'s avatar Ruilong Li(李瑞龙) Committed by GitHub
Browse files

Update run_aws_listing.py

parent 01416ca4
...@@ -13,7 +13,7 @@ args = parser.parse_args() ...@@ -13,7 +13,7 @@ args = parser.parse_args()
ROOT_URL = f"https://{args.bucket}.s3.{args.region}.amazonaws.com/whl" ROOT_URL = f"https://{args.bucket}.s3.{args.region}.amazonaws.com/whl"
html = "<!DOCTYPE html>\n<html>\n<body>\n{}\n</body>\n</html>" html = "<!DOCTYPE html>\n<html>\n<body>\n{}\n</body>\n</html>"
href = ' <a href="{}">{}</a><br/>' href = ' <a href="{}">{}</a><br/>'
args = { html_args = {
"ContentType": "text/html", "ContentType": "text/html",
"CacheControl": "max-age=300", "CacheControl": "max-age=300",
"ACL": "public-read", "ACL": "public-read",
...@@ -46,7 +46,7 @@ index_html = html.format( ...@@ -46,7 +46,7 @@ index_html = html.format(
with open("index.html", "w") as f: with open("index.html", "w") as f:
f.write(index_html) f.write(index_html)
bucket.Object("whl/index.html").upload_file("index.html", args) bucket.Object("whl/index.html").upload_file("index.html", html_args)
for torch_version, wheel_names in wheels_dict.items(): for torch_version, wheel_names in wheels_dict.items():
torch_version_html = html.format( torch_version_html = html.format(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment