From edfcfa22a672d7d537a792b2e6679e89e6aa4eac Mon Sep 17 00:00:00 2001 From: Sveinbjorn Thordarson Date: Tue, 26 Sep 2023 11:25:14 +0000 Subject: [PATCH] Use importlib.metadata to get package version --- src/iceaddr/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/iceaddr/__init__.py b/src/iceaddr/__init__.py index 0afd77a..e5f1c59 100644 --- a/src/iceaddr/__init__.py +++ b/src/iceaddr/__init__.py @@ -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