We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e7a1b6d + 1c9bc36 commit 6a62fe4Copy full SHA for 6a62fe4
1 file changed
docs/source/conf.py
@@ -1,4 +1,6 @@
1
-import os, pkg_resources, sys, time
+import os, sys, time
2
+from importlib import metadata
3
+
4
sys.path.insert(0, os.path.abspath('../../'))
5
sys.path.insert(0, os.path.abspath('../../usb_protocol'))
6
@@ -14,7 +16,7 @@
14
16
copyright = time.strftime('2021-%Y, Great Scott Gadgets')
15
17
author = 'Great Scott Gadgets'
18
-version = pkg_resources.get_distribution('usb_protocol').version
19
+version = metadata.version("usb_protocol")
20
release = ''
21
22
0 commit comments