uv
5ac0b98e - Respect release-only semantics of python_full_version when constructing markers (#6171)

Commit
1 year ago
Respect release-only semantics of python_full_version when constructing markers (#6171) ## Summary In the resolver, we use release-only semantics to normalize `python_full_version`. So, if we see `python_full_version < '3.13'`, we treat that as `(Unbounded, Exclude(3.13))`. `3.13b0` evaluates as `true` to that range, so we were accepting pre-releases for these markers. Instead, we need to exclude pre-release segments when performing these evaluations. Closes https://github.com/astral-sh/uv/issues/6169. ## Test Plan Hard to write a test for this because you need a pre-release Python locally... so: `echo "sqlalchemy==2.0.32" | cargo run pip compile - --python 3.13 -n`
Author
Parents
Loading