Ignore GraalPy devtag (#15013)

Allows [development builds of
GraalPy](https://github.com/graalvm/graal-languages-ea-builds) to work
with uv.

CC @timfel
This commit is contained in:
Michael Šimáček 2025-08-07 22:53:37 +02:00 committed by GitHub
parent d73edb019d
commit e5eec05783
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -1341,6 +1341,11 @@ jobs:
run: |
./uv pip install anyio
- name: "Check a GraalPy dev version (different version parsing)"
run: |
curl -sLf https://github.com/graalvm/graal-languages-ea-builds/releases/download/graalpy-25.0.0-ea.31/graalpy-25.0.0-ea.31-linux-amd64.tar.gz | tar xz
./uv run -p ./graalpy-25.0.0-dev-linux-amd64/bin/python python --version
integration-test-graalpy-windows-x86_64:
timeout-minutes: 10
needs: build-binary-windows-x86_64

View File

@ -41,7 +41,9 @@ if hasattr(sys, "implementation"):
import re
implementation_version = re.sub(
r"graalpy(\d)(\d+)-\d+", r"\1.\2", sys.implementation.cache_tag
r"graalpy(\d)(\d+)(?:dev[\da-f]+)?-\d+",
r"\1.\2",
sys.implementation.cache_tag,
)
else:
implementation_version = format_full_version(sys.implementation.version)