From 396be815f772f124c67a453b9437e7fd6c3c0232 Mon Sep 17 00:00:00 2001 From: CodyCBakerPhD Date: Fri, 6 Sep 2024 12:32:52 -0400 Subject: [PATCH] fix import --- src/nwbinspector/version/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nwbinspector/version/__init__.py b/src/nwbinspector/version/__init__.py index 3127748f2..ba6d8d0b1 100644 --- a/src/nwbinspector/version/__init__.py +++ b/src/nwbinspector/version/__init__.py @@ -1,3 +1,5 @@ +import importlib.metadata + import warnings message = ( @@ -9,4 +11,4 @@ # Still keep imports functional with warning for soft deprecation cycle # TODO: remove after 9/15/2024 -from .._version import __version__ +__version__ = importlib.metadata.version(distribution_name="nwbinspector")