Skip to content

Commit ba8b245

Browse files
authored
fix version in docs (#38)
1 parent 04920b9 commit ba8b245

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

docs/conf.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@
2222
copyright = '2018, Evgeni Golov'
2323
author = 'Evgeni Golov'
2424

25-
# The short X.Y version
26-
version = ''
27-
# The full version, including alpha/beta/rc tags
28-
release = '0.0.1'
25+
try:
26+
import pkg_resources
27+
package = pkg_resources.require("apypie")[0]
28+
version = package.version
29+
release = package.version
30+
except Exception:
31+
# The short X.Y version
32+
version = ''
33+
# The full version, including alpha/beta/rc tags
34+
release = ''
2935

3036

3137
# -- General configuration ---------------------------------------------------

requirements-docs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-e .
2+
sphinx

0 commit comments

Comments
 (0)