We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2c2f9 commit ef6718dCopy full SHA for ef6718d
1 file changed
docs/conf.py
@@ -11,7 +11,6 @@
11
# All configuration values have a default; values that are commented out
12
# serve to show the default.
13
import os
14
-import re
15
import sys
16
17
@@ -65,11 +64,8 @@ def __getattr__(self, name):
65
64
# built documents.
66
#
67
# The full version, including alpha/beta/rc tags.
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)
+from kazoo import version
+release = version.__version__
73
74
# The short X.Y version.
75
version = '.'.join(release.split('.')[:-1])
0 commit comments