astral-sh/uv

Add a hint when free-threaded selector is used in `requires-python`

Aberta

#16.963 aberto em 3 de dez. de 2025

 (5 comentários) (1 reação) (0 responsável)Rust (3.111 forks)batch import
enhancementerror messageshelp wanted

Métricas do repositório

Stars
 (84.934 estrelas)
Métricas de merge de PR
 (Mesclagem média 7d 16h) (259 fundiu PRs em 30d)

Description

Summary

See https://github.com/astral-sh/uv/issues/16951

We should be able to suggest a resolution here

Example

error: Failed to parse: `pyproject.toml`
  Caused by: TOML parse error at line 4, column 19
  |
4 | requires-python = ">=3.14t"
  |                   ^^^^^^^^^
Failed to parse version: after parsing `3.14`, found `t`, which is not part of a valid version:
>=3.14t
^^^^^^^

hint: `requires-python` cannot include a free-threaded selector, consider using `uv python pin 3.14t` instead

Guia do colaborador