]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Take version from VERSION when building documentation
authorSergey Matveev <stargrave@stargrave.org>
Sun, 29 Oct 2017 16:02:02 +0000 (19:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 29 Oct 2017 16:02:02 +0000 (19:02 +0300)
doc/conf.py

index fc5892e92d5186976485c52e29ce516a382a55f6..39bbd2dc44ac9ebba9fc46835522b20c54d8cd7b 100644 (file)
@@ -1,3 +1,5 @@
+version = open("../VERSION", "rb").read().strip().decode("ascii")
+
 extensions = ["sphinx.ext.autodoc"]
 templates_path = ["_templates"]
 source_suffix = ".rst"
 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"
 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"
 language = None
 exclude_patterns = ["_build"]
 pygments_style = "sphinx"