-
Notifications
You must be signed in to change notification settings - Fork 277
fix: rename gp242
identifier to gp311_242
#2411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cc @timfel |
@@ -147,7 +147,11 @@ def update_version(self, identifier: str, spec: Specifier) -> AnyConfig: | |||
msg = f"{identifier} not supported yet on GraalPy" | |||
raise RuntimeError(msg) | |||
|
|||
gpspec_str = identifier.split("-")[0].split("_")[1] | |||
gpspec = Specifier("==24.2.*") if gpspec_str == "242" else Specifier(f"=={gpspec_str}.*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is likely to need an update once a new GraalPy version is released
Nice catch. This solution makes sense to me. |
Looks good to me as well. I took a note to update the update_pythons.py script when we move to 25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just missing the update to the table at https://cibuildwheel.pypa.io/en/latest/options/#build-skip
(i added the row in a parallel PR)
Yes, I noticed that too. Should we merge this and then update in the parallel PR? |
Oh, I think I see what you mean, okay, I can update it. |
fixes pypa#2410 This normalises identifiers to always start with `{impl}{pyver}`. It's one way of fixing pypa#2410 The rationale behind this solution is while there's only one python version supported by GraalPy for a given version, if PyPy starts to ship a new ABI, we'll probably end-up using `pp311_{ABI_VERSION}` and identifiers will be consistent in between PyPy & GraalPy even if a bit more verbose than needed for GraalPy.
Signed-off-by: Henry Schreiner <[email protected]>
fixes #2410
This normalises identifiers to always start with
{impl}{pyver}
. It's one way of fixing #2410The rationale behind this solution is while there's only one python version supported by GraalPy for a given version, if PyPy starts to ship a new ABI, we'll probably end-up using
pp311_{ABI_VERSION}
and identifiers will be consistent in between PyPy & GraalPy even if a bit more verbose than needed for GraalPy.