From 18ca2528423708103860a0dfd480d3426dc52a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Sat, 13 Apr 2013 18:19:59 +0200 Subject: let sphinx extract version, author from source --- doc/conf.py | 9 ++++++--- jsonpointer.py | 8 ++++---- 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 ' -__version__ = '1.0' -__website__ = 'https://github.com/stefankoegl/python-json-pointer' -__license__ = 'Modified BSD License' +__author__ = u'Stefan Kögl ' +__version__ = u'1.0' +__website__ = u'https://github.com/stefankoegl/python-json-pointer' +__license__ = u'Modified BSD License' try: -- cgit v1.2.1