summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-07-29 23:00:19 -0700
committerGitHub <noreply@github.com>2018-07-29 23:00:19 -0700
commit029d734521fdd8de51cf819a75f0708d66ea4751 (patch)
tree90d5257c486ceb6693ad9ad6b65ade28b98bcb58 /docs/conf.py
parentad1ad40db0f4c8668cb882ff4b544db9cddf1835 (diff)
parent34adfe4bf24b825095337fb272b9ba98eccbe714 (diff)
downloadcmd2-git-029d734521fdd8de51cf819a75f0708d66ea4751.tar.gz
Merge branch 'master' into run_at_invocation
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 17f0d4c3..13a2dba2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -52,17 +52,18 @@ master_doc = 'index'
# General information about the project.
project = 'cmd2'
-copyright = '2010-2017, Catherine Devlin and Todd Leonhardt'
+copyright = '2010-2018, Catherine Devlin and Todd Leonhardt'
author = 'Catherine Devlin and Todd Leonhardt'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-# The short X.Y version.
-version = '0.9'
-# The full version, including alpha/beta/rc tags.
-release = '0.9.4'
+from pkg_resources import get_distribution
+# version will look like x.y.z
+version = get_distribution('cmd2').version
+# release will look like x.y
+release = '.'.join(version.split('.')[:2])
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.