From cd659996fd714dd8823fe49e01bbf9e51b5c0120 Mon Sep 17 00:00:00 2001 From: Keith James Date: Wed, 6 Nov 2024 15:11:50 +0000 Subject: [PATCH] Add version function --- src/npg/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/npg/__init__.py diff --git a/src/npg/__init__.py b/src/npg/__init__.py new file mode 100644 index 0000000..27a5a18 --- /dev/null +++ b/src/npg/__init__.py @@ -0,0 +1,8 @@ +import importlib.metadata + +__version__ = importlib.metadata.version("npg-python-lib") + + +def version() -> str: + """Return the current version.""" + return __version__