Skip to content

Commit aa613f8

Browse files
committed
wip
1 parent 118590c commit aa613f8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

python/private/py_wheel_normalize_pep440.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,6 @@ def _new_version(*, epoch = 0, release, pre = "", post = "", dev = "", local = "
602602
gt = lambda x: _version_gt(self, x), # buildifier: disable=uninitialized
603603
le = lambda x: not _version_gt(self, x), # buildifier: disable=uninitialized
604604
ge = lambda x: not _version_lt(self, x), # buildifier: disable=uninitialized
605-
eqq = lambda x: _version_eqq(self, x), # buildifier: disable=uninitialized
606605
)
607606

608607
return self
@@ -619,7 +618,10 @@ def parse_version(version):
619618
Returns:
620619
string containing the normalized version.
621620
"""
622-
parser = _new(version.strip()) # PEP 440: Leading and Trailing Whitespace
621+
622+
# TODO @aignas 2025-05-04: this is discarding '.*', but per spec this should be only done
623+
# for public version segments
624+
parser = _new(version.strip(" .*")) # PEP 440: Leading and Trailing Whitespace
623625
accept(parser, _is("v"), "") # PEP 440: Preceding v character
624626

625627
parts = {}

0 commit comments

Comments
 (0)