From 4da2d373319ef03d62dd5b0bbd1a8e7609a6c483 Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 29 Jul 2018 18:15:14 -0600 Subject: Use setuptools_scm for version numbers --- docs/conf.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'docs') 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. -- cgit v1.2.1