uv/scripts
Charlie Marsh e69b76bc72
Make > operator exclude post and local releases (#2471)
## 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.
2024-03-15 14:02:06 +00:00
..
bench fix: remove uv version from uv pip compile header (#1716) 2024-02-19 20:26:53 +00:00
benchmarks Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
bootstrap Add musl to python bootstrapping script (#1758) 2024-02-22 10:46:48 +01:00
editable-installs Use local package instead of transitive_url_dependency.zip (#2396) 2024-03-12 22:56:00 +00:00
popular_packages Finish install-many with pypi 10k most dependents (#732) 2023-12-27 09:42:51 -05:00
release Update the lockfile in release/bump.sh (#1924) 2024-02-23 13:45:46 -06:00
requirements Replace boto3.in with slow scenario (#2451) 2024-03-14 09:58:01 +00:00
scenarios Make > operator exclude post and local releases (#2471) 2024-03-15 14:02:06 +00:00
wheels Win Trampoline: Use Python executable path encoded in binary (#1803) 2024-02-22 16:10:02 +01:00
check_system_python.py Add system install test for alpine (#2371) 2024-03-12 14:26:05 +00:00