Skip to content

Commit 22ecb88

Browse files
authored
Migrate from setuptools/pkg_resources to importlib (#107)
1 parent f4aef40 commit 22ecb88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spox/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pkg_resources
1+
import importlib.metadata
22

33
from spox._public import argument, build, inline
44
from spox._type_system import Optional, Sequence, Tensor, Type
@@ -16,6 +16,6 @@
1616
]
1717

1818
try:
19-
__version__ = pkg_resources.get_distribution(__name__).version
19+
__version__ = importlib.metadata.distribution(__name__).version
2020
except Exception:
2121
__version__ = "unknown"

0 commit comments

Comments
 (0)