uv/crates/uv-resolver/src
Charlie Marsh b6f470416e
Match wheel tags against Requires-Python major-minor (#5289)
## Summary

Given `Requires-Python: ">=3.12.3"`, we were rejecting wheels like
`dearpygui-1.11.1-cp312-cp312-win_amd64.whl`, since `3.12.0` is not
included in `>=3.12.3`. We instead need to test against the major-minor
version of `Requires-Python`.

The easiest way to do this, I think, is the use the `RequiresPython`
struct, which has a single bound that we can truncate the major-minor.
This also means that we now allow
`dearpygui-1.11.1-cp312-cp312-win_amd64.whl` for specifiers like
`Requires-Python: "==3.10.*"`. This is incorrect on the surface, but it
does match our semantics for `Requires-Python` elsewhere: we treat it as
a lower bound.

Closes https://github.com/astral-sh/uv/issues/5287.
2024-07-22 14:33:53 +00:00
..
pubgrub Respect local versions for all user requirements (#5232) 2024-07-19 16:56:09 -05:00
resolution Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
resolver Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
snapshots Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
bare.rs Add support for parsing unnamed URL requirements (#2567) 2024-03-21 03:28:58 +00:00
candidate_selector.rs Log origin of version selection (#5186) 2024-07-19 08:15:45 +00:00
dependency_mode.rs Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
dependency_provider.rs Update pubgrub to new add_incompatibility_from_dependencies (#4062) 2024-06-05 20:46:00 +02:00
error.rs Handle universal vs. fork markers with ResolverMarkers (#5099) 2024-07-17 18:59:33 +02:00
exclude_newer.rs Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
exclusions.rs Allow constraints to be provided in --upgrade-package (#4952) 2024-07-09 20:09:13 -07:00
flat_index.rs Key hash policy on version, rather than package (#5169) 2024-07-17 19:01:49 -04:00
fork_urls.rs Handle universal vs. fork markers with ResolverMarkers (#5099) 2024-07-17 18:59:33 +02:00
lib.rs Handle universal vs. fork markers with ResolverMarkers (#5099) 2024-07-17 18:59:33 +02:00
lock.rs Match wheel tags against Requires-Python major-minor (#5289) 2024-07-22 14:33:53 +00:00
manifest.rs Apply extra to overrides and constraints (#4829) 2024-07-09 20:37:24 +02:00
marker.rs uv-resolver: add support for incomplete markers 2024-07-15 10:09:01 -07:00
options.rs Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
pins.rs uv-resolver: implement merging of forked resolutions 2024-05-30 14:23:14 -04:00
preferences.rs Remove trailing period from user-facing messages (#5218) 2024-07-19 10:43:49 -04:00
prerelease_mode.rs Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
python_requirement.rs uv-resolver: partially revert Requires-Python version narrowing 2024-07-08 09:56:59 -07:00
redirect.rs Preserve fragments when applying verbatim redirects (#4038) 2024-06-05 03:53:23 +00:00
requires_python.rs Match wheel tags against Requires-Python major-minor (#5289) 2024-07-22 14:33:53 +00:00
resolution_mode.rs Store resolution options in lockfile (#5264) 2024-07-22 08:28:22 -04:00
version_map.rs Match wheel tags against Requires-Python major-minor (#5289) 2024-07-22 14:33:53 +00:00
yanks.rs Key hash policy on version, rather than package (#5169) 2024-07-17 19:01:49 -04:00