doc/conf.py: use this_version here too
authorPaul Brossier <piem@piem.org>
Thu, 23 Mar 2017 17:38:45 +0000 (18:38 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 23 Mar 2017 17:38:45 +0000 (18:38 +0100)
doc/conf.py

index ad030c6..e0f927c 100644 (file)
 
 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.