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 d90588c commit 0e3f209
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions micromagneticdata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Analyse micromagnetic data."""
import pkg_resources
import importlib.metadata

import pytest

from .abstract_drive import AbstractDrive
Expand All @@ -9,7 +10,7 @@
from .mumax3drive import Mumax3Drive
from .oommfdrive import OOMMFDrive

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


def test():
Expand Down

0 comments on commit 0e3f209

Please sign in to comment.