From: Paul Brossier Date: Thu, 23 Mar 2017 17:38:45 +0000 (+0100) Subject: doc/conf.py: use this_version here too X-Git-Tag: 0.4.5~45^2~4 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=aa5e0a3b1423c659430c1bb7a1e06663eb7ee70e;p=aubio.git doc/conf.py: use this_version here too --- diff --git a/doc/conf.py b/doc/conf.py index ad030c6a..e0f927c1 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -13,6 +13,10 @@ import sys, os +# get version using this_version.py +sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) +from this_version import get_aubio_version + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -48,9 +52,10 @@ copyright = u'2016, Paul Brossier' # built documents. # # The short X.Y version. -version = '0.4' + +version = get_aubio_version()[:3] # The full version, including alpha/beta/rc tags. -release = '0.4.5~alpha' +release = get_aubio_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.