diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-07-29 22:57:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-29 22:57:09 -0700 |
commit | 34adfe4bf24b825095337fb272b9ba98eccbe714 (patch) | |
tree | e89408529990954a863d8d9d4743045c571e3c1f /docs/conf.py | |
parent | 2cfeac8ff7e5457b63b19057b8ab012663968e09 (diff) | |
parent | 2cc07ec8e739517992788dc8eb858a6d40eb24f3 (diff) | |
download | cmd2-git-34adfe4bf24b825095337fb272b9ba98eccbe714.tar.gz |
Merge pull request #481 from python-cmd2/version_number
Use setuptools_scm for version number
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. |