We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01a7212 + e3f73b0 commit f7fac7bCopy full SHA for f7fac7b
docs/conf.py
@@ -19,8 +19,11 @@
19
20
VERSION_PATH = "../mambular/__version__.py"
21
with open(VERSION_PATH) as f:
22
- VERSION = f.readlines()[-1].split()[-1].strip("\"'")
23
-release = VERSION
+ lines = f.readlines()
+ for line in lines:
24
+ if line.startswith("__version__"):
25
+ version = line.split("=")[-1].strip().strip('"')
26
+ release = version
27
28
# -- General configuration ---------------------------------------------------
29
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
0 commit comments