Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/aws/upload_final_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,10 @@

bucket.Object('whl/index.html').upload_file('index.html', ExtraArgs=args)

root = 'https://data.pyg.org'

for torch_version, wheels in wheels_dict.items():
torch_version_html = html.format('\n'.join([
href.format(
f'{root}/whl/{orig_torch_version}/{wheel}'.replace('+', '%2B'),
wheel) for orig_torch_version, wheel in wheels
href.format(f'{orig_torch_version}/{wheel}'.replace('+', '%2B'), wheel)
for orig_torch_version, wheel in wheels
]))

with open(f'{torch_version}.html', 'w') as f:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/aws/upload_nightly_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import boto3

ROOT_URL = 'https://data.pyg.org/whl/nightly'
html = '<!DOCTYPE html>\n<html>\n<body>\n{}\n</body>\n</html>'
href = ' <a href="{}">{}</a><br/>'
args = {
Expand Down Expand Up @@ -55,7 +54,7 @@

for torch_version, wheel_names in wheels_dict.items():
torch_version_html = html.format('\n'.join([
href.format(f'{ROOT_URL}/{wheel_name}'.replace('+', '%2B'),
href.format(f'{wheel_name}'.replace('+', '%2B'),
wheel_name.split('/')[-1]) for wheel_name in wheel_names
]))

Expand Down
Loading