Commit 6789080a authored by Nikos Skalkotos's avatar Nikos Skalkotos

docs: get the version from

Automatically load the version from the file
parent 396261b7
......@@ -14,6 +14,10 @@
import sys
import os
import imp
VERSION = getattr(imp.load_source(
'image_creator.version', '../image_creator/'), '__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
......@@ -43,16 +47,16 @@ master_doc = 'index'
# General information about the project.
project = u'snf-image-creator'
copyright = u'2012, 2013 GRNET S.A. All rights reserved'
copyright = u'2012-2014 GRNET S.A. All rights reserved'
# 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 = '0.6.1'
version = VERSION
# The full version, including alpha/beta/rc tags.
release = '0.6.1'
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