diff options
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/docs/conf.py b/docs/conf.py index fd9ded6..db523c3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,23 +48,10 @@ copyright = u'2011, Raphaƫl Barrois, Mark Sandstrom' # |version| and |release|, also used in various other places throughout the # built documents. # -root = os.path.abspath(os.path.dirname(__file__)) -def get_version(*module_dir_components): - import re - version_re = re.compile(r"^__version__ = ['\"](.*)['\"]$") - module_root = os.path.join(root, os.pardir, *module_dir_components) - module_init = os.path.join(module_root, '__init__.py') - with open(module_init, 'r') as f: - for line in f: - match = version_re.match(line[:-1]) - if match: - return match.groups()[0] - return '0.1.0' - -# The full version, including alpha/beta/rc tags. -release = get_version('factory') # The short X.Y version. -version = '.'.join(release.split('.')[:2]) +version = '1.1' +# The full version, including alpha/beta/rc tags. +release = '1.1.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |