diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-07-12 19:00:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 19:00:54 -0400 |
commit | aeacd50d8e397f08e928bd412ecac698a051d11e (patch) | |
tree | e541266f1a89ce0619dbe7645ee7d964d8848945 /docs/conf.py | |
parent | 6e19fb191dc0dd82416a9e9cc0b8e4a0ab5f200c (diff) | |
parent | 859d45bf8f7254858fbfb6167fe073479e712cfd (diff) | |
download | cmd2-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.py | 4 |
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]) |