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
765003dd
"docs/source/ko/index.mdx" did not exist on "896c98a2aedaa25a9b47c6b4f9cafd7b3f7f0f54"
Commit
765003dd
authored
Feb 12, 2020
by
rusty1s
Browse files
rename wheel
parent
7ffb8e48
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
.travis.yml
.travis.yml
+3
-2
script/rename_wheel.py
script/rename_wheel.py
+19
-0
No files found.
.travis.yml
View file @
765003dd
language
:
shell
os
:
#
- linux
-
linux
# - osx
-
windows
...
...
@@ -9,7 +9,7 @@ env:
global
:
-
CUDA_HOME=/usr/local/cuda
jobs
:
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cpu
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cpu
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101
...
...
@@ -67,6 +67,7 @@ script:
-
python setup.py test
after_success
:
-
python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}/${IDX}
-
python script/rename_wheel.py
-
codecov
deploy
:
provider
:
s3
...
...
script/rename_wheel.py
0 → 100644
View file @
765003dd
import
os
import
os.path
as
osp
import
glob
dist_dir
=
osp
.
join
(
osp
.
dirname
(
osp
.
abspath
(
__file__
)),
'..'
,
'dist'
)
wheels
=
glob
.
glob
(
osp
.
join
(
'dist'
,
'**'
,
'*.whl'
),
recursive
=
True
)
for
wheel
in
wheels
:
idx
=
wheel
.
split
(
osp
.
sep
)[
-
2
]
if
idx
not
in
[
'cpu'
,
'cu92'
,
'cu100'
,
'cu101'
]:
continue
name
=
wheel
.
split
(
osp
.
sep
)[
-
1
]
if
idx
in
name
:
continue
names
=
name
.
split
(
'-'
)
name
=
'-'
.
join
(
names
[:
-
4
]
+
[
names
[
-
4
]
+
'%2B'
+
idx
]
+
names
[
-
3
:])
new_wheel
=
osp
.
join
(
*
wheel
.
split
(
osp
.
sep
)[:
-
1
],
name
)
os
.
rename
(
wheel
,
new_wheel
)
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