From e5eec05783ed0d56d792d1a7473a7bdb759b8858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20=C5=A0im=C3=A1=C4=8Dek?= Date: Thu, 7 Aug 2025 22:53:37 +0200 Subject: [PATCH] Ignore GraalPy devtag (#15013) Allows [development builds of GraalPy](https://github.com/graalvm/graal-languages-ea-builds) to work with uv. CC @timfel --- .github/workflows/ci.yml | 5 +++++ crates/uv-python/python/get_interpreter_info.py | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60f388d0d..98242fe2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/crates/uv-python/python/get_interpreter_info.py b/crates/uv-python/python/get_interpreter_info.py index 8e9fc37fd..b58e3365a 100644 --- a/crates/uv-python/python/get_interpreter_info.py +++ b/crates/uv-python/python/get_interpreter_info.py @@ -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)