From 04731d634f27c90c12c7ae2a9731de40c99b8573 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 5 Jan 2025 12:37:56 -0800 Subject: [PATCH 1/2] Updated version read logic --- docs/source/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 06e2e69..b12c8f7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,7 +12,7 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # - +import importlib import os import sys sys.path.insert(0, os.path.abspath('../..')) @@ -24,6 +24,8 @@ project = u'pycmx' copyright = u'(c) 2025, Jamie Hardt' author = u'Jamie Hardt' +release = importlib.metadata.version("pycmx") +version = release.split(".")[0:2] # The short X.Y version # The full version, including alpha/beta/rc tags From b6379ec1fe7c300ec1c18a3ef0c2c680e65007c8 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 5 Jan 2025 12:44:03 -0800 Subject: [PATCH 2/2] tweaking doc version method --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index b12c8f7..c7f0f0d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -25,7 +25,7 @@ copyright = u'(c) 2025, Jamie Hardt' author = u'Jamie Hardt' release = importlib.metadata.version("pycmx") -version = release.split(".")[0:2] +version = release # The short X.Y version # The full version, including alpha/beta/rc tags