From aa5e0a3b1423c659430c1bb7a1e06663eb7ee70e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 23 Mar 2017 18:38:45 +0100 Subject: [PATCH] doc/conf.py: use this_version here too --- doc/conf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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. -- 2.11.0