From 48bbc1b0f4ba5dccf5fe06c135ba067e217cdabd Mon Sep 17 00:00:00 2001 From: Mike Shultz Date: Sun, 20 Oct 2024 13:28:34 -0600 Subject: [PATCH] docs: use dynamic version for sphinx version --- docs/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c928807..c7ffbd7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,7 @@ # import os import sys +from importlib.metadata import version sys.path.insert(0, os.path.abspath("..")) @@ -22,10 +23,10 @@ copyright = "2024, Mike Shultz" author = "Mike Shultz" -# The short X.Y version -version = "0.9.1" # The full version, including alpha/beta/rc tags -release = "0.9.1" +release = version("ledgereth") +# The short X.Y version +version = ".".join(release.split(".")[:2]) # -- General configuration ---------------------------------------------------