uv/crates/distribution-types
Charlie Marsh e39f5f72fe
Allow non-file:// paths to serve as --index-url values (#4524)
## Summary

pip allows these with the following logic:

```python
if os.path.exists(location):  # Is a local path.
    url = path_to_url(location)
    path = location
elif location.startswith("file:"):  # A file: URL.
    url = location
    path = url_to_path(location)
elif is_url(location):
    url = location
```

Closes https://github.com/astral-sh/uv/issues/4510.

## Test Plan

`cargo run pip install --index-url ../packse/index/simple-html/
example-a-961b4c22 --reinstall --no-cache --no-deps`
2024-06-25 17:57:12 +00:00
..
src Allow non-file:// paths to serve as --index-url values (#4524) 2024-06-25 17:57:12 +00:00
Cargo.toml Add support for tool.uv into distribution building (#3904) 2024-05-31 02:42:03 +00:00