uv/crates/install-wheel-rs/src
konsti 30126950fe
Fix relative and absolute path handling in lockfiles (#4266)
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"
```
2024-06-13 11:51:08 -04:00
..
lib.rs Support x86 windows (#3873) 2024-05-28 16:07:39 +00:00
linker.rs Allow local versions in wheel filenames (#3596) 2024-05-15 00:02:09 +00:00
metadata.rs Loosen .dist-info validation to accept arbitrary versions (#2441) 2024-03-14 09:04:39 -04:00
record.rs Remove some unused code from install-wheel-rs (#2001) 2024-02-27 04:27:25 +00:00
script.rs Future-proof pip entrypoints special case (#1982) 2024-03-01 10:05:50 +01:00
uninstall.rs Fix existing typos and enable typos in CI (#4184) 2024-06-10 01:50:54 +00:00
wheel.rs Fix relative and absolute path handling in lockfiles (#4266) 2024-06-13 11:51:08 -04:00