Unverified Commit 84e4d021 authored by Quan (Andy) Gan's avatar Quan (Andy) Gan Committed by GitHub
Browse files

change regex (#5158)

parent bff32a09
...@@ -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__,
) )
......
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