uv/crates/uv-resolver
Charlie Marsh bc8002e26e
Avoid narrowing requires-python marker with disjunctions (#10704)
## Summary

A bug in `requires_python` (which infers the Python requirement from a
marker) was leading us to break an invariant around the relationship
between the marker environment and the Python requirement. This, in
turn, was leading us to drop parts of the environment space when
solving.

Specifically, in the linked example, we generated a fork for
`python_full_version < '3.10' or platform_python_implementation !=
'CPython'`, which was later split into `python_full_version == '3.8.*'`
and `python_full_version == '3.9.*'`, losing the
`platform_python_implementation != 'CPython'` portion.

Closes https://github.com/astral-sh/uv/issues/10669.
2025-01-17 16:25:32 +00:00
..
src Avoid narrowing requires-python marker with disjunctions (#10704) 2025-01-17 16:25:32 +00:00
Cargo.toml Avoid narrowing requires-python marker with disjunctions (#10704) 2025-01-17 16:25:32 +00:00