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

@ -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)