uv/crates/uv-distribution/src
Charlie Marsh d8f1de6134
Use separate path types for directories and files (#4285)
## Summary

This is what I consider to be the "real" fix for #8072. We now treat
directory and path URLs as separate `ParsedUrl` types and
`RequirementSource` types. This removes a lot of `.is_dir()` forking
within the `ParsedUrl::Path` arms and makes some states impossible
(e.g., you can't have a `.whl` path that is editable). It _also_ fixes
the `direct_url.json` for direct URLs that refer to files. Previously,
we wrote out to these as if they were installed as directories, which is
just wrong.
2024-06-12 15:59:21 -04:00
..
index Support locking relative paths (#4205) 2024-06-11 11:58:03 +00:00
metadata Use separate path types for directories and files (#4285) 2024-06-12 15:59:21 -04:00
source Use separate path types for directories and files (#4285) 2024-06-12 15:59:21 -04:00
archive.rs Store IDs rather than paths in the cache (#2985) 2024-04-10 21:07:51 -04:00
distribution_database.rs Add support for local directories with `--index-url` (#4226) 2024-06-10 22:27:04 -04:00
download.rs Add hash-checking support to `install` and `sync` (#2945) 2024-04-10 19:09:03 +00:00
error.rs Use separate path types for directories and files (#4285) 2024-06-12 15:59:21 -04:00
lib.rs Initial implementation of `uv add` and `uv remove` (#4193) 2024-06-11 09:21:28 -04:00
locks.rs Remove unnecessary uses of `DashMap` and `Arc` (#3413) 2024-05-06 22:30:43 -04:00
pyproject.rs Use separate path types for directories and files (#4285) 2024-06-12 15:59:21 -04:00
pyproject_mut.rs Initial implementation of `uv add` and `uv remove` (#4193) 2024-06-11 09:21:28 -04:00
reporter.rs Concurrent progress bars (#3252) 2024-05-27 01:21:07 +00:00
workspace.rs Use separate path types for directories and files (#4285) 2024-06-12 15:59:21 -04:00