mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-02 12:59:45 +00:00
## Summary This PR attempts to use a similar trick to that we added in https://github.com/astral-sh/uv/pull/1878, but for post-releases. In https://github.com/astral-sh/uv/pull/1878, we added a fake "minimum" version to enable us to treat `< 1.0.0` as _excluding_ pre-releases of 1.0.0. Today, on `main`, we accept post-releases and local versions in `> 1.0.0`. But per PEP 440, that should _exclude_ post-releases and local versions, unless the specifier is itself a pre-release, in which case, pre-releases are allowed (e.g., `> 1.0.0.post0` should allow `> 1.0.0.post1`). To support this, we add a fake "maximum" version that's greater than all the post and local releases for a given version. This leverages our last remaining free bit in the compact representation. |
||
|---|---|---|
| .. | ||
| bench | ||
| benchmarks | ||
| bootstrap | ||
| editable-installs | ||
| popular_packages | ||
| release | ||
| requirements | ||
| scenarios | ||
| wheels | ||
| check_system_python.py | ||