From 5db0a5795735a64345a89335ad16f1cf3ddb477f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 14 Oct 2024 18:03:04 +0900 Subject: [PATCH] Replace remaming usage of pkg_resources in doc build --- doc/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index b221f9cb4..478c632a7 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -10,7 +10,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import pkg_resources +import importlib.metadata # -- General configuration ----------------------------------------------------- @@ -38,7 +38,7 @@ # built documents. # # The short X.Y version. -release = pkg_resources.get_distribution('gnocchi').version +release = importlib.metadata.version('gnocchi') # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.