Skip to content

Commit 9cf3295

Browse files
committed
fix version info in doc/
1 parent e676840 commit 9cf3295

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@
4848
# |version| and |release|, also used in various other places throughout the
4949
# built documents.
5050
#
51-
from ConfigParser import ConfigParser
52-
cfg = ConfigParser()
53-
cfg.read('../setup.cfg')
51+
with open('../quantities/version.py') as f:
52+
for line in f:
53+
if line.startswith('__version__'):
54+
exec(line)
5455
# The short X.Y version.
55-
version = cfg.get('metadata', 'version')
56+
version = __version__
5657
# The full version, including alpha/beta/rc tags.
5758
release = version
5859

0 commit comments

Comments
 (0)