From d20ec0c90042b8d722936a1fe87e3c81e612f915 Mon Sep 17 00:00:00 2001 From: "Mike A." Date: Tue, 5 Aug 2025 15:26:40 +0200 Subject: [PATCH] docs: automatically infer version --- docs/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 13c0610..f595d85 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,11 +6,14 @@ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information +import os +import re project = "FindMy.py" copyright = "2024, Mike Almeloo" author = "Mike Almeloo" -release = "0.8.0" +version = re.sub("^v", "", os.popen("git describe --tags").read().strip()) # noqa: S605, S607 +release = version # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration