diff --git a/docs/conf.py b/docs/conf.py index 51daed72..5960abd7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,4 @@ -import pkg_resources +import importlib.metadata as metadata import sys import os import shlex @@ -27,7 +27,7 @@ copyright = "2018, Ian Bicking, Pylons Project and contributors" author = "Ian Bicking, Pylons Project, and contributors" -version = release = pkg_resources.get_distribution("webob").version +version = release = metadata.version("webob") # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.