We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e676840 commit 9cf3295Copy full SHA for 9cf3295
doc/conf.py
@@ -48,11 +48,12 @@
48
# |version| and |release|, also used in various other places throughout the
49
# built documents.
50
#
51
-from ConfigParser import ConfigParser
52
-cfg = ConfigParser()
53
-cfg.read('../setup.cfg')
+with open('../quantities/version.py') as f:
+ for line in f:
+ if line.startswith('__version__'):
54
+ exec(line)
55
# The short X.Y version.
-version = cfg.get('metadata', 'version')
56
+version = __version__
57
# The full version, including alpha/beta/rc tags.
58
release = version
59
0 commit comments