Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 3bbc129e authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the file VERSION.

parent d112cc81
0.5.2
\ No newline at end of file
......@@ -24,13 +24,8 @@ def get_version():
str: the version number
"""
log = open('../../static/CHANGELOG').read()
match = re.search(r"(\d+\.\d+(\.\d+)*)", log)
if match:
return match.group(1)
return ""
with open('../../VERSION') as fi:
return fi.read()
# 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
......
......@@ -17,11 +17,21 @@ import subprocess
import tempfile
import re
def get_version():
"""Get the current version identifier.
Returns:
str: the version number
"""
with open('../../VERSION') as fi:
return fi.read()
# 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.
sys.path.insert(0, os.path.abspath('.'))
print sys.path
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
......@@ -53,18 +63,11 @@ copyright = u'2015, R. Le Gac'
# built documents.
#
# -- recuperate the version/release from git
fi = tempfile.TemporaryFile()
subprocess.call(["git", "describe", "--tags"], stdout=fi)
fi.seek(0)
myrelease = fi.read()
fi.close()
# The short X.Y version.
version = re.match('\d+\.\d+', myrelease).group()
version = get_version()
# The full version, including alpha/beta/rc tags.
release = myrelease
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment