From 58d7b2d07e363a6c82d04639c8022300aee9be96 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 28 Jun 2009 13:00:33 +0000 Subject: docs: more robust version number introspec & qthelp target --- doc/source/conf.py | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/source/conf.py') diff --git a/doc/source/conf.py b/doc/source/conf.py index 1fbd0c60e..b610470de 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -45,6 +45,7 @@ copyright = '2008-2009, The Scipy community' import numpy # The short X.Y version (including .devXXXX, rcX, b1 suffixes if present) version = re.sub(r'(\d+\.\d+)\.\d+(.*)', r'\1\2', numpy.__version__) +version = re.sub(r'(\.dev\d+).*?$', r'\1', version) # The full version, including alpha/beta/rc tags. release = numpy.__version__ print version, release -- cgit v1.2.1