We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e817b78 commit 16af533Copy full SHA for 16af533
docs/source/conf.py
@@ -6,10 +6,11 @@
6
# full list see the documentation:
7
# http://www.sphinx-doc.org/en/master/config
8
9
-# -- Path Setup --------------------------------------------------------------
10
-
11
import sys
12
from pathlib import Path
+from setuptools_scm import version_from_scm
+
13
+# -- Path Setup --------------------------------------------------------------
14
15
here = Path(__file__).parent
16
@@ -28,7 +29,9 @@
28
29
30
import idom # noqa
31
-release = idom.__version__
32
+print(str(here.parent))
33
+_scm_version = version_from_scm(str(here.parent.parent))
34
+release = _scm_version.tag.base_version
35
version = release.rsplit(".", 1)[0]
36
37
# -- General configuration ---------------------------------------------------
0 commit comments