From e3f73b0ea26b7cb439ddd5183e1f81952cb49289 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Tue, 18 Mar 2025 09:14:40 +0100 Subject: [PATCH] fix: extracting version info --- docs/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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