diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4cb1dc9..5a63e0dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.0 + rev: v0.15.2 hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -83,7 +83,7 @@ repos: - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.36.1 + rev: 0.36.2 hooks: - id: check-dependabot - id: check-github-actions diff --git a/cibuildwheel/selector.py b/cibuildwheel/selector.py index 29ad204b..06e94313 100644 --- a/cibuildwheel/selector.py +++ b/cibuildwheel/selector.py @@ -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("-", maxsplit=1)[0].split("_")[0] + py_ver_str = build_id.split("-", maxsplit=1)[0].split("_", maxsplit=1)[0] py_ver_str = py_ver_str.removesuffix("t") major = int(py_ver_str[2]) minor = int(py_ver_str[3:])