Skip to content

Commit

Permalink
remove reference to pkg_resources (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored Aug 1, 2024
1 parent e188743 commit 99e7059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crds/jwst/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

# import yaml DEFERRED

from pkg_resources import parse_version
from packaging.version import Version

# --------------------------------------------------------------------------------------

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 99e7059

Please sign in to comment.