diff --git a/ants/__init__.py b/ants/__init__.py index c60a176d..f353033d 100644 --- a/ants/__init__.py +++ b/ants/__init__.py @@ -1,5 +1,12 @@ -__version__ = '0.6.3' +from importlib.metadata import PackageNotFoundError as _PackageNotFoundError +from importlib.metadata import version as _version + +try: + __version__ = _version("antspyx") +except _PackageNotFoundError: + # Documentation builds import the source tree without installing antspyx. + __version__ = "unknown" from .core import * from .label import * diff --git a/pyproject.toml b/pyproject.toml index 3cebf219..14541f9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ version = "0.6.4" description = "A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more." license = { text = "Apache-2.0" } readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" authors = [ { name = "Brian B. Avants", email = "stnava@gmail.com" } ]