let sphinx extract version, author from source
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user