summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2018-04-15 15:22:10 +0200
committerMichele Simionato <michele.simionato@gmail.com>2018-04-15 15:22:10 +0200
commita960e032285948342b4cd8f0ea88f4ba24b53866 (patch)
treeccf868ae0dd1e7c7889745f9487936e578511399 /docs/conf.py
parente26c05d7a6ed19424526d5031a9883ad72cf58bb (diff)
downloadpython-decorator-git-a960e032285948342b4cd8f0ea88f4ba24b53866.tar.gz
Fixed version number in the PDF
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 5415263..9e0ffad 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -13,8 +13,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys
-import os
+from decorator import __version__
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -49,7 +48,7 @@ master_doc = 'index'
# General information about the project.
project = 'decorator'
-copyright = '2017, Michele Simionato'
+copyright = '2005-2018, Michele Simionato'
author = 'Michele Simionato'
# The version info for the project you're documenting, acts as replacement for
@@ -57,9 +56,8 @@ author = 'Michele Simionato'
# built documents.
#
# The short X.Y version.
-version = '4.1'
+version = release = __version__
# The full version, including alpha/beta/rc tags.
-release = '4.1.2'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.