Skip to content

Commit

Permalink
pkg_resources is deprecated (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbittarello committed Jul 19, 2023
1 parent 28aad1f commit e0ecbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/glum/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkg_resources
import importlib.metadata

from ._distribution import (
BinomialDistribution,
Expand All @@ -16,7 +16,7 @@
from ._link import CloglogLink, IdentityLink, Link, LogitLink, LogLink, TweedieLink

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

Expand Down

0 comments on commit e0ecbc5

Please sign in to comment.