From 47fbd25666d3c671088fc6b069cb2612d7ccc21b Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Thu, 1 Aug 2024 12:41:26 -0400 Subject: [PATCH] remove reference to pkg_resources (#1057) --- 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")