Skip to content

Commit f7fac7b

Browse files
authored
Merge pull request #246 from basf/hotfix/docs
fix: extracting version info
2 parents 01a7212 + e3f73b0 commit f7fac7b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919

2020
VERSION_PATH = "../mambular/__version__.py"
2121
with open(VERSION_PATH) as f:
22-
VERSION = f.readlines()[-1].split()[-1].strip("\"'")
23-
release = VERSION
22+
lines = f.readlines()
23+
for line in lines:
24+
if line.startswith("__version__"):
25+
version = line.split("=")[-1].strip().strip('"')
26+
release = version
2427

2528
# -- General configuration ---------------------------------------------------
2629
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

0 commit comments

Comments
 (0)