Skip to content

Commit

Permalink
rm deprecated pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
rkingsbury committed Jan 5, 2024
1 parent b047271 commit b0076d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/maggma/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
""" Primary Maggma module """
from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound: # pragma: no cover
__version__ = version('maggma')
except PackageNotFoundError: # pragma: no cover
# package is not installed
pass

0 comments on commit b0076d7

Please sign in to comment.