Update readthedocs config
* Get Patroni version from patroni/version.py
* Update copyright to match with the LICENSE file
Fixes
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
-# import sys
-# sys.path.insert(0, os.path.abspath('.'))
+import sys
+sys.path.insert(0, os.path.abspath('..'))
+
+from patroni.version import __version__
# -- General configuration ------------------------------------------------
@@ -51,7 +53,7 @@ master_doc = 'index'
# General information about the project.
project = 'Patroni'
-copyright = '2016, Zalando SE'
+copyright = '2015 Compose, Zalando SE'
author = 'Zalando SE'
# The version info for the project you're documenting, acts as replacement for
@@ -59,9 +61,9 @@ author = 'Zalando SE'
# built documents.
#
# The short X.Y version.
-version = '1.2'
+version = __version__[:__version__.rfind('.')]
# The full version, including alpha/beta/rc tags.
-release = '1.2.2'
+release = __version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
