diff --git a/docs/conf.py b/docs/conf.py index 98319c72..8fe41b4a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,8 +19,11 @@ VERSION_PATH = "../mambular/__version__.py" with open(VERSION_PATH) as f: - VERSION = f.readlines()[-1].split()[-1].strip("\"'") -release = VERSION + lines = f.readlines() + for line in lines: + if line.startswith("__version__"): + version = line.split("=")[-1].strip().strip('"') + release = version # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration