uv/crates
Jo 0acb6165dc
Sort ManagedPythonInstallation by version (#5140)
## Summary
Resolves #5139

`PythonInstallationKey` was sorted as a string, which caused `3.8` to
appear before `3.11`. This update changes the sorting of
`PythonInstallationKey` to be a descending order by version.

## Test Plan
```sh
$ cargo run -- python install 3.8 3.12
$ cargo run -- tool run -v python -V
DEBUG uv 0.2.25
warning: `uv tool run` is experimental and may change without warning.
DEBUG Searching for Python interpreter in managed installations, system path, or `py` launcher
DEBUG Searching for managed installations at `C:\Users\xx\AppData\Roaming\uv\data\python`
DEBUG Found managed Python `cpython-3.12.3-windows-x86_64-none`
DEBUG Found cpython 3.12.3 at `C:\Users\xx\AppData\Roaming\uv\data\python\cpython-3.12.3-windows-x86_64-none\install\python.exe` (managed installations)
DEBUG Using request timeout of 30s
DEBUG Using request timeout of 30s
DEBUG Acquired lock for `C:\Users\nigel\AppData\Roaming\uv\data\tools`
DEBUG Using existing environment for tool `httpx`: C:\Users\xx\AppData\Roaming\uv\data\tools\httpx
DEBUG Using existing tool `httpx`
DEBUG Running `httpx -v`
```
2024-07-17 09:48:04 -05:00
..
bench Switch to Current-Thread Tokio Runtime (#4934) 2024-07-09 18:21:16 -04:00
cache-key Cache tool environments in uv tool run (#4784) 2024-07-03 19:25:39 -04:00
distribution-filename Filter out none ABI wheels with mismatched Python versions (#5087) 2024-07-15 21:41:13 -04:00
distribution-types Support workspace to workspace path dependencies (#4833) 2024-07-16 20:38:46 +00:00
install-wheel-rs Lock directories to synchronize wheel-install copies (#4978) 2024-07-12 00:53:20 +00:00
once-map Use lockfile to prefill resolver index (#4495) 2024-07-12 18:49:28 -04:00
pep440-rs pep508: add MarkerTree::negate 2024-07-12 04:37:36 -07:00
pep508-rs Support workspace to workspace path dependencies (#4833) 2024-07-16 20:38:46 +00:00
platform-tags fix: add missing ppc64le alias for powerpc64le (#3963) 2024-06-02 13:15:24 -04:00
pypi-types Respect tool upgrades in uv tool install (#4736) 2024-07-02 16:46:31 -04:00
requirements-txt Preserve verbatim URLs for --find-links (#4838) 2024-07-05 16:57:40 -05:00
uv Indicate that uv lock --upgrade has updated the lock file (#5110) 2024-07-17 01:14:20 +00:00
uv-auth Enable workspace lint configuration in remaining crates (#4329) 2024-06-18 03:02:28 +00:00
uv-build Add a custom error message for --no-build-isolation torch dependencies (#5041) 2024-07-13 21:12:26 +00:00
uv-cache Add reference documentation for global settings (#5123) 2024-07-16 20:50:04 +00:00
uv-cli Add --no-progress global option to hide all progress animations (#5098) 2024-07-16 16:48:57 -05:00
uv-client Cache downloaded wheel when range requests aren't supported (#5089) 2024-07-16 09:21:47 -04:00
uv-configuration Add manylinux_2_31 to supported --python-platform (#4965) 2024-07-10 16:30:35 +00:00
uv-dev Add reference documentation for global settings (#5123) 2024-07-16 20:50:04 +00:00
uv-dispatch Switch to Current-Thread Tokio Runtime (#4934) 2024-07-09 18:21:16 -04:00
uv-distribution Add reference documentation for global settings (#5123) 2024-07-16 20:50:04 +00:00
uv-extract Download wheel to disk when streaming unzip failed with HTTP streaming error (#5094) 2024-07-16 09:00:46 -04:00
uv-fs Support workspace to workspace path dependencies (#4833) 2024-07-16 20:38:46 +00:00
uv-git fix(git): lock cache on resolve (#5051) 2024-07-16 16:06:06 -04:00
uv-installer Add reference documentation for global settings (#5123) 2024-07-16 20:50:04 +00:00
uv-macros Generate API reference for options documentation (#5072) 2024-07-15 19:48:40 +00:00
uv-normalize uv-resolver: add TRACE dump of resolver output 2024-07-16 09:51:54 -07:00
uv-options-metadata Generate API reference for options documentation (#5072) 2024-07-15 19:48:40 +00:00
uv-python Sort ManagedPythonInstallation by version (#5140) 2024-07-17 09:48:04 -05:00
uv-requirements Support workspace to workspace path dependencies (#4833) 2024-07-16 20:38:46 +00:00
uv-resolver Indicate that uv lock --upgrade has updated the lock file (#5110) 2024-07-17 01:14:20 +00:00
uv-scripts Add PEP 723 support to uv run (#4656) 2024-07-01 08:20:24 -04:00
uv-settings Add reference documentation for pip settings (#5125) 2024-07-16 21:14:27 +00:00
uv-shell Add Windows path updates for uv tool (#5029) 2024-07-13 01:55:05 +00:00
uv-state Cache tool environments in uv tool run (#4784) 2024-07-03 19:25:39 -04:00
uv-tool Remove non-existent feature (#5049) 2024-07-14 19:49:22 -04:00
uv-trampoline Update windows binaries, again (#4864) 2024-07-07 18:58:22 -04:00
uv-types Add reference documentation for global settings (#5123) 2024-07-16 20:50:04 +00:00
uv-version Bump version to v0.2.25 (#5083) 2024-07-15 22:38:59 +00:00
uv-virtualenv Add pypy executables when calling uv venv (#5047) 2024-07-15 13:28:31 -05:00
uv-warnings Fix a bug where no warning is output when parsing of workspace settings fails. (#4014) 2024-06-04 09:21:19 -04:00
README.md Move shell manipulation into its own crate (#5028) 2024-07-12 21:12:58 -04:00

Crates

bench

Functionality for benchmarking uv.

cache-key

Generic functionality for caching paths, URLs, and other resources across platforms.

distribution-filename

Parse built distribution (wheel) and source distribution (sdist) filenames to extract structured metadata.

distribution-types

Abstractions for representing built distributions (wheels) and source distributions (sdists), and the sources from which they can be downloaded.

install-wheel-rs

Install built distributions (wheels) into a virtual environment.]

once-map

A waitmap-like concurrent hash map for executing tasks exactly once.

pep440-rs

Utilities for interacting with Python version numbers and specifiers.

pep508-rs

Utilities for interacting with PEP 508 dependency specifiers.

platform-host

Functionality for detecting the current platform (operating system, architecture, etc.).

platform-tags

Functionality for parsing and inferring Python platform tags as per PEP 425.

uv

Command-line interface for the uv package manager.

uv-build

A PEP 517-compatible build frontend for uv.

uv-cache

Functionality for caching Python packages and associated metadata.

uv-client

Client for interacting with PyPI-compatible HTTP APIs.

uv-dev

Development utilities for uv.

uv-dispatch

A centralized struct for resolving and building source distributions in isolated environments. Implements the traits defined in uv-types.

uv-distribution

Client for interacting with built distributions (wheels) and source distributions (sdists). Capable of fetching metadata, distribution contents, etc.

uv-extract

Utilities for extracting files from archives.

uv-fs

Utilities for interacting with the filesystem.

uv-git

Functionality for interacting with Git repositories.

uv-installer

Functionality for installing Python packages into a virtual environment.

uv-python

Functionality for detecting and leveraging the current Python interpreter.

uv-normalize

Normalize package and extra names as per Python specifications.

uv-package

Types and functionality for working with Python packages, e.g., parsing wheel files.

uv-requirements

Utilities for reading package requirements from pyproject.toml and requirements.txt files.

uv-resolver

Functionality for resolving Python packages and their dependencies.

uv-shell

Utilities for detecting and manipulating shell environments.

uv-types

Shared traits for uv, to avoid circular dependencies.

pypi-types

General-purpose type definitions for types used in PyPI-compatible APIs.

uv-virtualenv

A venv replacement to create virtual environments in Rust.

uv-warnings

User-facing warnings for uv.

requirements-txt

Functionality for parsing requirements.txt files.