From 69a4577f44cd3b5a2be63832ad7e9b247469862c Mon Sep 17 00:00:00 2001 From: kennyballou Date: Fri, 1 Mar 2013 21:12:54 -0700 Subject: Refactor Versioning Xnt now has a version module that all other modules shall use when requesting version information --- docs/source/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/source/conf.py b/docs/source/conf.py index f299930..244af97 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,6 +19,8 @@ import sys, os #sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('../../xnt')) +import xnt.version + # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. @@ -52,9 +54,9 @@ copyright = u'2012, Kenny Ballou' # built documents. # # The short X.Y version. -version = '0.5' +version = '.'.join(map(str, xnt.version.__version_info__[:2])) # The full version, including alpha/beta/rc tags. -release = '0.5.0' +release = xnt.version.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. -- cgit v1.2.1