Skip to content

Commit 2d90e85

Browse files
committed
fix: handle irregular python tags
Signed-off-by: Frost Ming <me@frostming.com>
1 parent 1308f2d commit 2d90e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dep_logic/tags/tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _evaluate_python(
155155
self, python_tag: str, abi_tag: str
156156
) -> tuple[int, int, int] | None:
157157
"""Return a tuple of (major, minor, abi) if the wheel is compatible with the environment, or None otherwise."""
158-
impl, major, minor = python_tag[:2], python_tag[2], python_tag[3:]
158+
impl, major, minor = python_tag[:2], python_tag[2:3], python_tag[3:]
159159
if self.implementation is not None and impl not in [
160160
self.implementation.short,
161161
"py",

0 commit comments

Comments
 (0)