summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-07-12 19:00:54 -0400
committerGitHub <noreply@github.com>2020-07-12 19:00:54 -0400
commitaeacd50d8e397f08e928bd412ecac698a051d11e (patch)
treee541266f1a89ce0619dbe7645ee7d964d8848945 /docs/conf.py
parent6e19fb191dc0dd82416a9e9cc0b8e4a0ab5f200c (diff)
parent859d45bf8f7254858fbfb6167fe073479e712cfd (diff)
downloadcmd2-git-aeacd50d8e397f08e928bd412ecac698a051d11e.tar.gz
Merge pull request #953 from dhellmann/drop-pkg-resources
replace pkg_resources with importlib.metadata
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 6c6faf0d..8a71268a 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,7 +19,7 @@ documentation root, use os.path.abspath to make it absolute, like shown here.
"""
# Import for custom theme from Read the Docs
import sphinx_rtd_theme
-from pkg_resources import get_distribution
+import cmd2
# -- General configuration -----------------------------------------------------
@@ -57,7 +57,7 @@ author = 'cmd2 contributors'
# built documents.
#
# version will look like x.y.z
-version = get_distribution('cmd2').version
+version = cmd2.__version__
# release will look like x.y
release = '.'.join(version.split('.')[:2])