Skip to content

Commit b51919f

Browse files
committed
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.
1 parent 48b745c commit b51919f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

py/makeversionhdr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def get_version_info_from_git():
5959
def get_version_info_from_docs_conf():
6060
with open(os.path.join(os.path.dirname(sys.argv[0]), "..", "docs", "conf.py")) as f:
6161
for line in f:
62-
if line.startswith("release = '"):
63-
ver = line.strip()[10:].strip("'")
62+
if line.startswith("version = release = '"):
63+
ver = line.strip().split(" = ")[2].strip("'")
6464
git_tag = "v" + ver
6565
ver = ver.split(".")
6666
if len(ver) == 2:

0 commit comments

Comments
 (0)