Skip to content

Commit

Permalink
Use importlib.metadata to get the version number in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 22, 2024
1 parent ef03eea commit 37e9a26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imgviz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# flake8: noqa

__version__ = "1.7.5"
import importlib.metadata

__version__ = importlib.metadata.version("imgviz")

from . import _io as io
from . import data
Expand Down

0 comments on commit 37e9a26

Please sign in to comment.