Commit 92d96aab authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Automatically find the version from git

parent 293f3185
......@@ -79,9 +79,10 @@ copyright = u'[2016-2017] EMBL-European Bioinformatics Institute'
# built documents.
#
# The short X.Y version.
version = '2.5'
import re
version = re.sub('^(heads|remotes/origin)/', '', os.popen('git describe --all').read().strip())
# The full version, including alpha/beta/rc tags.
release = '2.5'
release = version + '/' + os.popen('git rev-parse --short HEAD').read().strip()
# 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