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 c28f4f6 commit ba43a4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ubermagutil/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"""Utilities used across Ubermag."""
import pkg_resources
import importlib.metadata

import pytest

from . import progress
from .basic_logging import setup_logging
from .inherit_docs import inherit_docs
from .tools import changedir, hysteresis_values

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


def test():
Expand Down

0 comments on commit ba43a4a

Please sign in to comment.