Update readthedocs config (#580)

* Get Patroni version from patroni/version.py
* Update copyright to match with the LICENSE file

Fixes https://github.com/zalando/patroni/issues/519
This commit is contained in:
Alexander Kukushkin
2017-12-20 14:28:12 +01:00
committed by GitHub
parent fa5769468a
commit 062c55f99c

View File

@@ -18,9 +18,11 @@
# 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.