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():
# python path
update(
os.path.join(proj_root, "python", "dgl", "_ffi", "libinfo.py"),
r"(?<=__version__ = \")[.0-9a-z]+",
r"(?<=__version__ = \")[.0-9a-z+_]+",
__version__,
)
# C++ header
update(
os.path.join(proj_root, "include", "dgl", "runtime", "c_runtime_api.h"),
'(?<=DGL_VERSION ")[.0-9a-z]+',
'(?<=DGL_VERSION ")[.0-9a-z+_]+',
__version__,
)
# conda
for path in ["dgl"]:
update(
os.path.join(proj_root, "conda", path, "meta.yaml"),
'(?<=version: ")[.0-9a-z]+',
'(?<=version: ")[.0-9a-z+_]+',
__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