populate sphinx doc versions automatically

master
Glenn K. Lockwood 2018-09-21 19:23:59 -04:00 committed by Glenn K. Lockwood
parent f1b8174e4b
commit 13fd0c6c16
1 changed files with 14 additions and 2 deletions

View File

@ -67,15 +67,27 @@ master_doc = 'index'
project = u'IOR'
copyright = u'2017, IOR'
author = u'IOR'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'3.1.0'
version = u'3.2'
# The full version, including alpha/beta/rc tags.
release = u'0'
release = u'3.2.0'
for line in open(os.path.join('..', '..', 'META', 'r')):
key, value = line.split(None, 1)
if key == "Package:":
project = value
elif key == "Version:":
version = value.rsplit('.', 1)[0]
release = value
# We don't use the release field
# elif key == "Release:":
# release = value
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.