Skip to content

Commit

Permalink
pkg_resources is deprecated (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbittarello committed Oct 3, 2023
1 parent c2a5953 commit a6c0562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/glum_benchmarks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pkg_resources
import importlib.metadata

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

Expand Down

0 comments on commit a6c0562

Please sign in to comment.