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 c22d9d1 commit 28e55e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions micromagnetictests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""Test computational magnetism tools."""
import pkg_resources
import importlib.metadata

import pytest

import micromagnetictests.calculatortests

from .get_tests import get_tests

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


def test():
Expand Down

0 comments on commit 28e55e7

Please sign in to comment.