astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
19.95k stars 591 forks source link

`uv lock` and platform-specific resolution #6503

Open SamyAB opened 3 weeks ago

SamyAB commented 3 weeks ago

The documentation says:

By default, uv's pip interface, i.e., uv pip compile, produces a resolution that is platform-specific, like pip-tools. There is no way to use platform-specific resolution in the uv's project interface.

Does the last sentence mean that there is currently no way to create a platform-specific lockfile with uv lock, or there will never be one?

If it's the latter, I am curious to know why.

The reason I am asking this is because it happens quite often that I work on both x86 and armv7l architectures, and having a lockfile for x86 that points to pypi-like registry and a lockfile for armv7l that points to a piwheels-like registry is very useful.

Thank you for the awesome work!

zanieb commented 3 weeks ago

There actually is since https://github.com/astral-sh/uv/pull/6210 — we need to update the documentation to clarify this.

SamyAB commented 3 weeks ago

That gets me 95% of the way there, thanks!