Skip to content

Commit

Permalink
chore: switch from deprecated pkg_resources to importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lang-m committed Oct 6, 2023
1 parent 67e646c commit a89d172
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oommfc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""OOMMF calculator."""
import pkg_resources
import importlib.metadata

import pytest

import oommfc.oommf
Expand All @@ -19,7 +20,7 @@
Xf_ThermSpinXferEvolver,
)

__version__ = pkg_resources.get_distribution(__name__).version
__version__ = importlib.metadata.version(__package__)

runner = oommfc.oommf.oommf.Runner()
"""Controls the default runner.
Expand Down

0 comments on commit a89d172

Please sign in to comment.