From 3e391fc8e39bc8a646a329d84b2c428f0997faab Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 10 Oct 2010 02:33:03 -0400 Subject: [PATCH] Auto version usage. --- docs/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index b340f43..f51c9dc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,11 +12,12 @@ # serve to show the default. import sys, os +import tablib # 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 # documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('..')) # -- General configuration ----------------------------------------------------- @@ -48,9 +49,9 @@ copyright = u'2010, Kenneth Reitz' # built documents. # # The short X.Y version. -version = '0.8.3' +version = tablib.core.__version__ # The full version, including alpha/beta/rc tags. -release = '0.8.3' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.