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 324a323 commit 70d7dae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions micromagneticmodel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Domain-specific language for computational magnetism."""
import pkg_resources
import importlib.metadata

import pytest

import micromagneticmodel.abstract
Expand All @@ -24,7 +25,7 @@
from .runner import ExternalRunner
from .system import System

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


def test():
Expand Down

0 comments on commit 70d7dae

Please sign in to comment.