From 7e3123148b381ad7708d2b837f3da16f1ef01ea1 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Thu, 1 Aug 2024 11:03:37 -0400 Subject: [PATCH] remove reference to pkg_resources --- crds/jwst/pipeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crds/jwst/pipeline.py b/crds/jwst/pipeline.py index a1ad777d9..77ace2a49 100644 --- a/crds/jwst/pipeline.py +++ b/crds/jwst/pipeline.py @@ -82,7 +82,7 @@ # import yaml DEFERRED -from pkg_resources import parse_version +from packaging.version import Version # -------------------------------------------------------------------------------------- @@ -330,7 +330,7 @@ def _reduce_ver(ver): >>> _reduce_ver("1.2.3.4") (1, 2, 3) """ - ver = parse_version(ver).base_version + ver = Version(ver).base_version parts = ver.split(".") while len(parts) < 3: parts.append("0")