Skip to content

Commit

Permalink
Replace pkg_resources with importlib.metadata (#971)
Browse files Browse the repository at this point in the history
pkg_resources is deprecated in Python 3.12
  • Loading branch information
ubaumann authored Aug 26, 2024
1 parent c11079e commit 1c2a88f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nornir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pkg_resources
from importlib.metadata import version

from nornir.init_nornir import InitNornir

__version__ = pkg_resources.get_distribution("nornir").version
__version__ = version("nornir")

__all__ = ("InitNornir", "__version__")

0 comments on commit 1c2a88f

Please sign in to comment.