diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 8 | ||||
-rw-r--r-- | docs/news.rst | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index bf4faa8..9e5e04f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,7 +12,11 @@ # 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 +55,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 diff --git a/docs/news.rst b/docs/news.rst index 05d8f9f..94deead 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -9,6 +9,8 @@ unreleased * Fix a broken compatibility shim that would cause the ConfigParser to fail on Python 3.12 when ``ConfigParser.readfp`` is removed. +* Drop setuptools dependency and start using ``importlib.metadata`` instead. + * Refactor repository into a src folder layout. 2.1.1 (2020-10-12) |