From: W. Trevor King Date: Mon, 19 Nov 2012 10:05:46 +0000 (-0500) Subject: doc:source:conf.py: import FFT-tools version number (vs. hardcoding it) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d8bc564093bd8c2cb05a82e709bc35d58240faf2;p=FFT-tools.git doc:source:conf.py: import FFT-tools version number (vs. hardcoding it) --- diff --git a/doc/source/conf.py b/doc/source/conf.py index 2b2a660..a97ad3b 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -24,6 +24,9 @@ _doc_dir = os.path.dirname(_this_dir) _base_dir = os.path.dirname(_doc_dir) sys.path.insert(0, _base_dir) +from FFT_tools import __version__ + + # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. @@ -65,7 +68,7 @@ copyright = '2008-2012, {}'.format(author) # built documents. # # The short X.Y version. -version = '0.4' +version = __version__ # The full version, including alpha/beta/rc tags. release = version