From e61c8d4cbabacb9b5b504e314cd89c98752fa63e Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 11 Nov 2015 07:35:31 -0800 Subject: [PATCH] Update documentation config --- doc/conf.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 8074e1b0..33eb87e5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -56,14 +56,11 @@ copyright = u'2012-2014, Victor Zverovich' # The short X.Y version. # Get version from CMakeLists.txt. -version = {} with open('../CMakeLists.txt') as f: for line in f: - m = re.match(r'set\(CPACK_PACKAGE_VERSION_([A-Z]+) ([0-9]+)\)', line.strip()) + m = re.match(r'set\(CPPFORMAT_VERSION (.+)\)', line.strip()) if m: - kind, value = m.groups() - version[kind] = value -version = '{}.{}.{}'.format(version['MAJOR'], version['MINOR'], version['PATCH']) + version = m.group(1) # The full version, including alpha/beta/rc tags. release = version