# HG changeset patch # User Franz Glasner # Date 1519776341 -3600 # Node ID a3f64253de7030ab441009b26d26759f2ef5766a # Parent 1f11672c4615425ea757351a2ac89b0d50b1429a Read the version and release information from the "configmix" package diff -r 1f11672c4615 -r a3f64253de70 doc/conf.py --- 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 ---------------------------------------------------