From 80a2ec60a5996da056026116d866df140d9107bf Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Mon, 25 Nov 2024 10:35:00 -0500 Subject: [PATCH] pkg_resources has been removed by python 3.12+ --- pysiaf/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pysiaf/__init__.py b/pysiaf/__init__.py index 46cd39c5..20dcb2aa 100644 --- a/pysiaf/__init__.py +++ b/pysiaf/__init__.py @@ -10,12 +10,7 @@ # Configure logging logger = logging.getLogger(__name__) -from pkg_resources import get_distribution, DistributionNotFound -try: - __version__ = get_distribution(__name__).version -except DistributionNotFound: - # package is not installed - __version__ = 'unknown' +from .version import __version__ from .aperture import Aperture, HstAperture, JwstAperture, RomanAperture from .constants import JWST_PRD_VERSION, JWST_PRD_DATA_ROOT, JWST_PRD_DATA_ROOT_EXCEL, HST_PRD_VERSION, \