Skip to content

Commit 406b8bf

Browse files
committed
Get doc version from module
1 parent 1b3e2a6 commit 406b8bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
import sys
1616
import os
1717

18-
__version__ = '0.2.1'
18+
sys.path.insert(0, os.path.abspath('..'))
19+
import maxminddb
20+
21+
22+
__version__ = maxminddb.__version__
1923

2024
# If extensions (or modules to document with autodoc) are in another directory,
2125
# add these directories to sys.path here. If the directory is relative to the

0 commit comments

Comments
 (0)