astral-sh/uv
Add a hint when free-threaded selector is used in `requires-python`
开放
#16,963 创建于 2025年12月3日
enhancementerror messageshelp wanted
仓库指标
- 星标
- (84,934 个星标)
- PR 合并指标
- (平均合并 7天 16小时) (30 天内合并 259 个 PR)
描述
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