uv/crates/uv-resolver
Charlie Marsh fda378fd29
Avoid preferring constrained over unconstrained packages (#3148)
## Summary

pip prefers somewhat-constrained over unconstrained packages... but only
if they're at equal depths in the tree. We don't have a way to track the
latter property yet (I've added a TODO), so for now, we should remove
this constraint -- it seems to be counter-productive.

I've filed https://github.com/astral-sh/uv/issues/3149 as a follow-up.

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

## Test Plan

- `git clone https://github.com/drivendataorg/zamba.git`
- `cat "-e .[tests]" > req.in`
- `cargo run venv && cargo run pip compile req.in --refresh -n
--python-platform linux --python-version 3.8`
2024-04-19 23:30:08 +00:00
..
src Avoid preferring constrained over unconstrained packages (#3148) 2024-04-19 23:30:08 +00:00
tests Move ExcludeNewer into its own type (#3041) 2024-04-15 20:24:08 +00:00
Cargo.toml Add JSON Schema support (#3046) 2024-04-17 17:24:41 +00:00