diff options
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 11 |
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. |