Repository navigation
Prefer stable releases for explicit pre-release requirements - #20302
charliermarsh merged 6 commits into
Conversation
There was a problem hiding this comment.
We don't have the proxy and the authorization anymore here
4c394d2 to
1a28ba1
Compare
4c67e88 to
5bef129
Compare
uv test inventory changesThis PR changes the tests when compared with the latest
|
f862b05 to
7944399
Compare
3e9e4a0
into
charlie/transitive-prerelease-pubgrub
Merging this PR will not alter performance
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression with the CodSpeed MCP and your agent. Comparing Footnotes
|
## Summary Stacked on #19993. The parent PR treats an explicit pre-release specifier as authorization for matching pre-releases to participate in normal version ordering. For example, when `c==1.0` and `c==2.0a1` are available, `c>=0.5a1` can select the newer pre-release even though a compatible stable release exists. This changes the default and deprecated `explicit` policies to prefer every compatible stable candidate before falling back to pre-releases. Exact pre-release pins and ranges with no compatible stable candidate still select pre-releases, and the ordering is consistent for direct and transitive requirements regardless of discovery order. Since explicit requirements no longer change candidate ordering, the pre-release PubGrub proxy and its priority, pinning, and diagnostic plumbing are unnecessary and are removed. The candidate universe remains fixed per package identity: `allow` uses normal version ordering, `disallow` excludes pre-releases, and the default policy performs stable and then pre-release passes. Scenario expectations, user-facing documentation, and the generated schema are updated to match.
Summary
Stacked on #19993.
The parent PR treats an explicit pre-release specifier as authorization for matching pre-releases to participate in normal version ordering. For example, when
c==1.0andc==2.0a1are available,c>=0.5a1can select the newer pre-release even though a compatible stable release exists.This changes the default and deprecated
explicitpolicies to prefer every compatible stable candidate before falling back to pre-releases. Exact pre-release pins and ranges with no compatible stable candidate still select pre-releases, and the ordering is consistent for direct and transitive requirements regardless of discovery order.Since explicit requirements no longer change candidate ordering, the pre-release PubGrub proxy and its priority, pinning, and diagnostic plumbing are unnecessary and are removed. The candidate universe remains fixed per package identity:
allowuses normal version ordering,disallowexcludes pre-releases, and the default policy performs stable and then pre-release passes. Scenario expectations, user-facing documentation, and the generated schema are updated to match.