fix: rename gp242 identifier to gp311_242 (#2411)

This commit is contained in:
Matthieu Darbois
2025-05-26 15:49:59 -04:00
committed by GitHub
parent b1d944060a
commit 2d6b40d669
10 changed files with 36 additions and 27 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class BuildSelector:
def __call__(self, build_id: str) -> bool:
# Filter build selectors by python_requires if set
if self.requires_python is not None:
py_ver_str = build_id.split("-")[0]
py_ver_str = build_id.split("-")[0].split("_")[0]
py_ver_str = py_ver_str.removesuffix("t")
major = int(py_ver_str[2])
minor = int(py_ver_str[3:])