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.
This commit is contained in:
parent
48b745cfc8
commit
b51919f5b7
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user