Skip to content
Snippets Groups Projects
Commit b51919f5 authored by Damien George's avatar Damien George
Browse files

py/makeversionhdr.py: Update to parse new release line in docs/conf.py.

The line in docs/conf.py with the release/version number was recently
changed and this patch makes the makeversionhdr.py script work again.
parent 48b745cf
Branches
Tags
No related merge requests found
...@@ -59,8 +59,8 @@ def get_version_info_from_git(): ...@@ -59,8 +59,8 @@ def get_version_info_from_git():
def get_version_info_from_docs_conf(): def get_version_info_from_docs_conf():
with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "docs", "conf.py")) as f: with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "docs", "conf.py")) as f:
for line in f: for line in f:
if line.startswith("release = '"): if line.startswith("version = release = '"):
ver = line.strip()[10:].strip("'") ver = line.strip().split(" = ")[2].strip("'")
git_tag = "v" + ver git_tag = "v" + ver
ver = ver.split(".") ver = ver.split(".")
if len(ver) == 2: if len(ver) == 2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment