Skip to content

Using requires_python skips GraalPy identifiers #2410

@mayeut

Description

@mayeut

Description

Found while testing 3.0.0b1 on pybase64 https://github.com/mayeut/pybase64/actions/runs/15225239809/job/42826448795

Adding graalpy to enable in pyproject.toml had no effect on the build because it's filtered by requires_python:

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 = py_ver_str.removesuffix("t")
major = int(py_ver_str[2])
minor = int(py_ver_str[3:])
version = Version(f"{major}.{minor}.99")
if not self.requires_python.contains(version):
return False

The requires_python filter expects build identifier to be in the form f{impl}{pyver}t? but for GraalPy, the version used is not the one of Python & it's being filtered out.

Build log

https://github.com/mayeut/pybase64/actions/runs/15225239809/job/42826448795

CI config

https://github.com/mayeut/pybase64/blob/graalpy/.github/workflows/build-upload.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions