Mercurial > hgrepos > Python > libs > ConfigMix
changeset 57:a3f64253de70
Read the version and release information from the "configmix" package
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Wed, 28 Feb 2018 01:05:41 +0100 |
| parents | 1f11672c4615 |
| children | 95034b28f285 |
| files | doc/conf.py |
| diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/conf.py Wed Feb 28 00:36:11 2018 +0100 +++ b/doc/conf.py Wed Feb 28 01:05:41 2018 +0100 @@ -16,6 +16,8 @@ import sys sys.path.insert(0, os.path.dirname(os.path.abspath('.'))) +import configmix + # -- Project information ----------------------------------------------------- @@ -24,9 +26,9 @@ author = 'Franz Glasner' # The short X.Y version -version = '' +version = '.'.join(configmix.__version__.split('.')[:2]) # The full version, including alpha/beta/rc tags -release = '0.5' +release = configmix.__version__ # -- General configuration ---------------------------------------------------
