diff options
author | kotfu <kotfu@kotfu.net> | 2018-07-29 18:15:14 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-07-29 18:15:14 -0600 |
commit | 4da2d373319ef03d62dd5b0bbd1a8e7609a6c483 (patch) | |
tree | 1579c31a2aab76407911f3c6c607476c2e300370 /docs/conf.py | |
parent | 2cfeac8ff7e5457b63b19057b8ab012663968e09 (diff) | |
download | cmd2-git-4da2d373319ef03d62dd5b0bbd1a8e7609a6c483.tar.gz |
Use setuptools_scm for version numbers
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. |