We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eef8fd commit 5478885Copy full SHA for 5478885
docs/conf.py
@@ -14,6 +14,7 @@
14
import os
15
from pathlib import Path
16
from textwrap import dedent
17
+from pkg_resources import get_distribution
18
19
sys.path.insert(0, os.path.abspath('..'))
20
@@ -52,7 +53,7 @@
52
53
author = 'Adrien Morison, Martina Ulvrova, Stéphane Labrosse'
54
55
# The full version, including alpha/beta/rc tags.
-release = stagpy.__version__
56
+release = get_distribution("stagpy").version
57
# The short X.Y version.
58
version = '.'.join(release.split('.')[:2])
59
0 commit comments