File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111# All configuration values have a default; values that are commented out
1212# serve to show the default.
1313import os
14+ import re
1415import sys
1516
1617
@@ -63,10 +64,15 @@ def __getattr__(self, name):
6364# |version| and |release|, also used in various other places throughout the
6465# built documents.
6566#
66- # The short X.Y version.
67- version = '2.0'
6867# The full version, including alpha/beta/rc tags.
69- release = '2.0.1'
68+ release = ''
69+ here = os .path .abspath (os .path .dirname (__file__ ))
70+ with open (os .path .join (here , '..' , 'kazoo' , 'version.py' )) as f :
71+ release = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
72+ f .read (), re .MULTILINE ).group (1 )
73+
74+ # The short X.Y version.
75+ version = '.' .join (release .split ('.' )[:- 1 ])
7076
7177# The language for content autogenerated by Sphinx. Refer to documentation
7278# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments