From: Sergey Matveev Date: Sun, 29 Oct 2017 16:02:02 +0000 (+0300) Subject: Take version from VERSION when building documentation X-Git-Tag: 1.4~3 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=0de0e676324ae1457fdb67f4dd3bd82020061522 Take version from VERSION when building documentation --- diff --git a/doc/conf.py b/doc/conf.py index fc5892e..39bbd2d 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,3 +1,5 @@ +version = open("../VERSION", "rb").read().strip().decode("ascii") + extensions = ["sphinx.ext.autodoc"] templates_path = ["_templates"] source_suffix = ".rst" @@ -5,8 +7,8 @@ master_doc = "index" project = "pyderasn" copyright = "2017, Sergey Matveev" author = "Sergey Matveev" -version = "1.0" -release = "1.0" +version = version +release = version language = None exclude_patterns = ["_build"] pygments_style = "sphinx"