Skip to content

Commit

Permalink
__init__.py: use importlib for version
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jun 11, 2024
1 parent ce53585 commit 7b225d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions h5sparse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkg_resources
from .h5sparse import Group, File, Dataset, get_format_str # noqa: F401

__version__ = pkg_resources.get_distribution("h5sparse-tensor").version
from importlib.metadata import version
__version__ = version('h5sparse-tensor')

0 comments on commit 7b225d7

Please sign in to comment.