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
dgl
Commits
84e4d021
"tests/vscode:/vscode.git/clone" did not exist on "2be55fb50ab08c1f0a3bbb40df8f9265d73b4d2d"
Unverified
Commit
84e4d021
authored
Jan 12, 2023
by
Quan (Andy) Gan
Committed by
GitHub
Jan 12, 2023
Browse files
change regex (#5158)
parent
bff32a09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/update_version.py
python/update_version.py
+3
-3
No files found.
python/update_version.py
View file @
84e4d021
...
@@ -55,20 +55,20 @@ def main():
...
@@ -55,20 +55,20 @@ def main():
# python path
# python path
update
(
update
(
os
.
path
.
join
(
proj_root
,
"python"
,
"dgl"
,
"_ffi"
,
"libinfo.py"
),
os
.
path
.
join
(
proj_root
,
"python"
,
"dgl"
,
"_ffi"
,
"libinfo.py"
),
r
"(?<=__version__ = \")[.0-9a-z]+"
,
r
"(?<=__version__ = \")[.0-9a-z
+_
]+"
,
__version__
,
__version__
,
)
)
# C++ header
# C++ header
update
(
update
(
os
.
path
.
join
(
proj_root
,
"include"
,
"dgl"
,
"runtime"
,
"c_runtime_api.h"
),
os
.
path
.
join
(
proj_root
,
"include"
,
"dgl"
,
"runtime"
,
"c_runtime_api.h"
),
'(?<=DGL_VERSION ")[.0-9a-z]+'
,
'(?<=DGL_VERSION ")[.0-9a-z
+_
]+'
,
__version__
,
__version__
,
)
)
# conda
# conda
for
path
in
[
"dgl"
]:
for
path
in
[
"dgl"
]:
update
(
update
(
os
.
path
.
join
(
proj_root
,
"conda"
,
path
,
"meta.yaml"
),
os
.
path
.
join
(
proj_root
,
"conda"
,
path
,
"meta.yaml"
),
'(?<=version: ")[.0-9a-z]+'
,
'(?<=version: ")[.0-9a-z
+_
]+'
,
__version__
,
__version__
,
)
)
...
...
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