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 71fe895 commit ed4b6c8Copy full SHA for ed4b6c8
doc/conf.py
@@ -21,7 +21,7 @@
21
import sys
22
sys.path.insert(0, os.path.abspath('..'))
23
24
-from pkg_resources import get_distribution
+from importlib.metadata import version
25
26
# Import read_the_docs theme
27
import sphinx_rtd_theme
@@ -65,7 +65,7 @@
65
# built documents.
66
#
67
# The full version, including alpha/beta/rc tags.
68
-release = get_distribution('labgrid').version
+release = version('labgrid')
69
# The short X.Y version.
70
version = '.'.join(release.split('.')[:2])
71
0 commit comments