uv/crates/uv-resolver/src/lock
konsti 5b0133c0ec
Hint at tool.uv.required-environments (#13575)
For the case where there was no matching wheel on sync, we previously
added a note about which wheels are available vs. on which platform you
are on. We extend this error message to link directly towards
`tool.uv.required-environments`, which otherwise has a discovery
problem.

On Linux (Setting `tool.uv.required-environments` doesn't help here
either, but it's a clear example):

```
[project]
name = "debug"
version = "0.1.0"
requires-python = "==3.10.*"
dependencies = ["tensorflow-macos>=2.13.1"]
```

```
Resolved 41 packages in 24ms
error: Distribution `tensorflow-macos==2.16.2 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on Linux (`manylinux_2_39_x86_64`), but there are no wheels for the current platform, consider configuring `tool.uv.required-environments`.
hint: `tensorflow-macos` (v2.16.2) only has wheels for the following platform: `macosx_12_0_arm64`.
```


![image](https://github.com/user-attachments/assets/b6b49461-10d6-4e1d-bc0a-5d35d98e33d0)

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
2025-06-06 19:15:52 +00:00
..
export PEP 751 uv export supports --no-editable (#13852) 2025-06-06 07:52:14 -04:00
snapshots Add upload time to uv.lock (#12968) 2025-04-20 21:58:12 -04:00
installable.rs Avoid reinstalling dependency group members with --all-packages (#13678) 2025-05-27 08:43:07 -04:00
map.rs Parallelize network requests in uv tree --outdated (#9280) 2024-11-20 16:45:14 +00:00
mod.rs Hint at tool.uv.required-environments (#13575) 2025-06-06 19:15:52 +00:00
tree.rs Bump MSRV to 1.84 (#12670) 2025-04-04 11:49:26 -04:00