summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2013-04-13 18:19:59 +0200
committerStefan Kögl <stefan@skoegl.net>2013-04-13 18:20:45 +0200
commit18ca2528423708103860a0dfd480d3426dc52a06 (patch)
tree0388452606a9b46955ae056be2ceb72cd2b2d682
parentcb1e33e5cda282d423cc850b6e46774560e5a607 (diff)
downloadpython-json-pointer-18ca2528423708103860a0dfd480d3426dc52a06.tar.gz
let sphinx extract version, author from source
-rw-r--r--doc/conf.py9
-rw-r--r--jsonpointer.py8
2 files changed, 10 insertions, 7 deletions
diff --git a/doc/conf.py b/doc/conf.py
index ad3cade..ed2a7f3 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -18,6 +18,8 @@ import sys, os
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.join(os.path.abspath('.'), '..'))
+import jsonpointer
+
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
@@ -41,16 +43,17 @@ master_doc = 'index'
# General information about the project.
project = u'python-json-pointer'
-copyright = u'2013, Stefan Kögl'
+copyright = jsonpointer.__author__
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
+
# The short X.Y version.
-version = '1'
+version = jsonpointer.__version__
# The full version, including alpha/beta/rc tags.
-release = '1.0'
+release = jsonpointer.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
diff --git a/jsonpointer.py b/jsonpointer.py
index e45a205..dfb494e 100644
--- a/jsonpointer.py
+++ b/jsonpointer.py
@@ -33,10 +33,10 @@
""" Identify specific nodes in a JSON document (RFC 6901) """
# Will be parsed by setup.py to determine package metadata
-__author__ = 'Stefan Kögl <stefan@skoegl.net>'
-__version__ = '1.0'
-__website__ = 'https://github.com/stefankoegl/python-json-pointer'
-__license__ = 'Modified BSD License'
+__author__ = u'Stefan Kögl <stefan@skoegl.net>'
+__version__ = u'1.0'
+__website__ = u'https://github.com/stefankoegl/python-json-pointer'
+__license__ = u'Modified BSD License'
try: