Skip to content

Commit 6a62fe4

Browse files
authored
Merge pull request #53 from 6E006B/main
Change deprecated pkg_resources to importlib
2 parents e7a1b6d + 1c9bc36 commit 6a62fe4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import os, pkg_resources, sys, time
1+
import os, sys, time
2+
from importlib import metadata
3+
24
sys.path.insert(0, os.path.abspath('../../'))
35
sys.path.insert(0, os.path.abspath('../../usb_protocol'))
46

@@ -14,7 +16,7 @@
1416
copyright = time.strftime('2021-%Y, Great Scott Gadgets')
1517
author = 'Great Scott Gadgets'
1618

17-
version = pkg_resources.get_distribution('usb_protocol').version
19+
version = metadata.version("usb_protocol")
1820
release = ''
1921

2022

0 commit comments

Comments
 (0)