Add GraalPy 25 and remove workarounds for that version. (#2597)

This commit is contained in:
Tim Felgentreff
2025-09-22 21:23:29 +01:00
committed by GitHub
parent b8a4fbc237
commit 7a67c6b5a9
10 changed files with 31 additions and 15 deletions
+3 -1
View File
@@ -127,7 +127,9 @@ class GraalPyVersions:
raise RuntimeError(msg)
gpspec_str = identifier.split("-")[0].split("_")[1]
gpspec = Specifier("==24.2.*") if gpspec_str == "242" else Specifier(f"=={gpspec_str}.*")
if "." not in gpspec_str and len(gpspec_str) == 3:
gpspec_str = gpspec_str[:2] + "." + gpspec_str[-1]
gpspec = Specifier(f"=={gpspec_str}.*")
releases = [r for r in self.releases if spec.contains(r["python_version"])]
releases = [r for r in self.releases if gpspec.contains(r["graalpy_version"])]