Skip to content

Commit

Permalink
Migrate from setuptools/pkg_resources to importlib (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourjau authored Oct 9, 2023
1 parent f4aef40 commit 22ecb88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkg_resources
import importlib.metadata

from spox._public import argument, build, inline
from spox._type_system import Optional, Sequence, Tensor, Type
Expand All @@ -16,6 +16,6 @@
]

try:
__version__ = pkg_resources.get_distribution(__name__).version
__version__ = importlib.metadata.distribution(__name__).version
except Exception:
__version__ = "unknown"

0 comments on commit 22ecb88

Please sign in to comment.