uv/crates/uv-python
Eric Mark Martin c49c7bdf97 Implement PEP 440-compliant local version semantics (#8797)
Implement a full working version of local version semantics. The (AFAIA)
major move towards this was implemented in #2430. This added support
such that the version specifier `torch==2.1.0+cpu` would install
`torch@2.1.0+cpu` and consider `torch@2.1.0+cpu` a valid way to satisfy
the requirement `torch==2.1.0` in further dependency resolution.

In this feature, we more fully support local version semantics. Namely,
we now allow `torch==2.1.0` to install `torch@2.1.0+cpu` regardless of
whether `torch@2.1.0` (no local tag) actually exists.

We do this by adding an internal-only `Max` value to local versions that
compare greater to all other local versions. Then we can translate
`torch==2.1.0` into bounds: greater than 2.1.0 with no local tag and
less than 2.1.0 with the `Max` local tag.

Depends on https://github.com/astral-sh/packse/pull/227.
2024-11-07 14:29:54 -06:00
..
python Use base executable to set virtualenv Python path (#8481) 2024-11-07 14:29:54 -06:00
src Implement PEP 440-compliant local version semantics (#8797) 2024-11-07 14:29:54 -06:00
Cargo.toml Add support for installing versioned Python executables on Windows (#8663) 2024-10-31 15:58:35 +00:00
download-metadata.json Fix a typo in fetch-download-metadata.py (#8515) 2024-10-24 07:33:14 -05:00
fetch-download-metadata.py Fix a typo in fetch-download-metadata.py (#8515) 2024-10-24 07:33:14 -05:00
template-download-metadata.py Add support for managed installs of free-threaded Python (#8100) 2024-10-14 15:18:52 -05:00