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")