mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
![]() Previously, `b` in the test case would have been incorrectly locked to the path of `a`. I've moved `relative_to` into uv-fs since it's now used in two different places. Previously failing lockfile when `a/pyproject.toml` and `a/b/pyproject.toml` exist (not in a workspace) and `a` was depending on `b`: ```toml version = 1 requires-python = ">=3.11, <3.13" [[distribution]] name = "b" version = "0.1.0" source = "directory+/home/konsti/projects/uv/a" sdist = { path = "/home/konsti/projects/uv/a" } [[distribution]] name = "black" version = "0.1.0" source = "editable+." sdist = { path = "." } [[distribution.dependencies]] name = "b" version = "0.1.0" source = "directory+/home/konsti/projects/uv/a" ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
Readme.md |
Reimplementation of wheel installing in rust. Supports both classical venvs and monotrail.
There are simple python bindings:
from install_wheel_rs import LockedVenv
locked_venv = LockedVenv("path/to/.venv")
locked_venv.install_wheel("path/to/some_tagged_wheel.whl")
and there's only one function: install_wheels_venv(wheels: List[str], venv: str)
, where wheels
is a list of paths to wheel files and venv
is the location of the venv to install the packages in.
See monotrail for benchmarks.