Skip to content

Commit

Permalink
Use importlib.metadata to get package version
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 26, 2023
1 parent d0fd426 commit edfcfa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/iceaddr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
"""

import importlib.metadata

__author__ = "Sveinbjorn Thordarson"
__version__ = "0.5.7" # Also update setup.py
__copyright__ = "(C) 2018-2023 Sveinbjorn Thordarson"
__version__ = importlib.metadata.version("iceaddr")

from .addresses import * # noqa: F403
from .placenames import * # noqa: F403
Expand Down

0 comments on commit edfcfa2

Please sign in to comment.