Skip to content

Commit 16af533

Browse files
committed
grab scm tag not infered dev version in docs
1 parent e817b78 commit 16af533

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/source/conf.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
# full list see the documentation:
77
# http://www.sphinx-doc.org/en/master/config
88

9-
# -- Path Setup --------------------------------------------------------------
10-
119
import sys
1210
from pathlib import Path
11+
from setuptools_scm import version_from_scm
12+
13+
# -- Path Setup --------------------------------------------------------------
1314

1415
here = Path(__file__).parent
1516

@@ -28,7 +29,9 @@
2829

2930
import idom # noqa
3031

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
3235
version = release.rsplit(".", 1)[0]
3336

3437
# -- General configuration ---------------------------------------------------

0 commit comments

Comments
 (0)