From b35fa6153d2b5cd4f8d41af19f68e335f9b878d5 Mon Sep 17 00:00:00 2001 From: Jacob Alheid Date: Mon, 9 Jun 2025 14:45:29 -0700 Subject: [PATCH] ci(sphinx): updated to use importlib.metadata rather than package attribute --- docs/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 696966f..e8aeade 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import pytool +from importlib import metadata # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. @@ -19,9 +19,9 @@ copyright = "2012, Jacob Alheid" # The short X.Y version. -version = pytool.__version__ +version = metadata.version("pytool") # The full version, including alpha/beta/rc tags. -release = pytool.__version__ +release = version # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.