diff --git a/VERSION b/VERSION index cd57a8b..399088b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.5 +2.1.6 diff --git a/docs/source/conf.py b/docs/source/conf.py index b3ee765..8d1fa26 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# +"""Configuration file for RTD""" # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a @@ -12,7 +12,7 @@ # 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. # -# import os +import os # import sys # sys.path.insert(0, os.path.abspath('.')) @@ -22,11 +22,17 @@ project = u'PkPass' author = u'Noah Ginsburg, Ryan Adamson' +HERE = os.path.abspath(os.path.dirname(__file__)) +THERE = os.path.join(HERE, "..", "..") + +VERSION = None +with open(os.path.join(THERE, 'VERSION')) as version_file: + VERSION = version_file.read().strip() + # The short X.Y version -version = u'2.1.5' +version = VERSION # The full version, including alpha/beta/rc tags -release = u'2.1.5' - +release = VERSION # -- General configuration ---------------------------------------------------