diff options
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 7 |
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 |