summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2022-05-15 22:44:24 -0500
committerMichael Merickel <michael@merickel.org>2022-05-15 22:45:37 -0500
commite02853fed546838f1bc1d1a9b6ff68adf8e63eb1 (patch)
tree6e36cc4356cf88fa725933e894093db7732fcc70 /docs
parent0f0697dc20ab33c675d9eecb485f41ed26fa70b8 (diff)
downloadpastedeploy-git-e02853fed546838f1bc1d1a9b6ff68adf8e63eb1.tar.gz
initial setup removing importlib-metadata
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index bf4faa8..da36975 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,7 +12,10 @@
# serve to show the default value.
import datetime
-import pkg_resources
+try:
+ import importlib.metadata as importlib_metadata
+except ImportError:
+ import importlib_metadata
import pylons_sphinx_themes
# If your extensions are in another directory, add it here.
@@ -51,7 +54,7 @@ copyright = '2011-%s, Ian Bicking and contributors' % thisyear
# other places throughout the built documents.
#
# The short X.Y version.
-version = pkg_resources.get_distribution('pastedeploy').version
+version = importlib_metadata.distribution('pastedeploy').version
# The full version, including alpha/beta/rc tags.
release = version