Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-scatter
Commits
8047ccd2
Commit
8047ccd2
authored
Feb 12, 2020
by
rusty1s
Browse files
create wheel
parent
ae88f6b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
script/wheel.py
script/wheel.py
+9
-10
No files found.
script/wheel.py
View file @
8047ccd2
...
...
@@ -3,15 +3,14 @@ import boto3
s3_resource
=
boto3
.
resource
(
's3'
)
bucket
=
s3_resource
.
Bucket
(
name
=
"pytorch-scatter"
)
objects
=
bucket
.
objects
.
all
()
wheels
=
sorted
([
obj
.
key
[
4
:]
for
obj
in
objects
if
obj
.
key
[:
3
]
==
'whl'
])
print
(
wheels
)
# <!DOCTYPE html>
# <html>
# <body>
# <a href="/frob/">frob</a>
# <a href="/spamspamspam/">spamspamspam</a>
# </body>
# </html>
wheels
=
sorted
([
obj
.
key
[
4
:]
for
obj
in
objects
if
obj
.
key
[
-
3
:]
==
'whl'
])
content
=
'<!DOCTYPE html>
\n
<html>
\n
<body>
\n
{}
\n
</body>
\n
</html>'
url
=
'https://pytorch-scatter.s3.eu-central-1.amazonaws.com/whl/{}.whl'
links
=
[
'<a href="{}">{}</a><br/>'
.
format
(
url
.
format
(
w
),
w
)
for
w
in
wheels
]
content
=
content
.
format
(
'
\n
'
.
join
(
links
))
with
open
(
'index.html'
,
'w'
)
as
f
:
f
.
write
(
content
)
bucket
.
Object
(
'whl/index.html'
).
upload_file
(
Filename
=
'index.html'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment