uv/crates
Eduardo Rittner Coelho 2d4d93a350
ProgressReporter: align progress bars by largest name length (#13266)
## Summary

Related to https://github.com/astral-sh/uv/issues/12492

This change makes all progress bars vertically aligned. This is still a
WIP and so is not complete, in the current design I store `max_len` in
`BarState` and update it on every `on_request_start`, however this is
problematic since order matters, and if the largest name is not sent
first, the alignment is not complete. To mitigate this we'd probably
have to update all previous bars by "iterating" through the `bars` field
in `BarState` and update all request bars.

Below is an image of what happens when the largest name
(`nvidia-cusparselt-cu12`) is not the first (in this case, it was the
second to last).


![2025-05-02T10:56:54-03:00](https://github.com/user-attachments/assets/ac6f2205-5f30-4fe3-a2c3-f980e36b7cf7)


## Test Plan

There are currently no tests, and I'm not sure how to design them since
from what I gather the `uv_snapshot` facilities record the final output,
not the intermediate stages.

---------

Co-authored-by: konstin <konstin@mailbox.org>
2025-05-15 09:32:36 +02:00
..
uv ProgressReporter: align progress bars by largest name length (#13266) 2025-05-15 09:32:36 +02:00
uv-auth Redact credentials when displaying URLs (#13333) 2025-05-12 18:58:25 +02:00
uv-bench Move static feature out of perf features (#13265) 2025-05-02 15:56:40 +00:00
uv-build Bump verison to 0.7.3 (#13337) 2025-05-07 14:37:22 -05:00
uv-build-backend Build backend: Allow escaping in globs (#13313) 2025-05-07 18:31:41 +02:00
uv-build-frontend Bump MSRV to 1.84 (#12670) 2025-04-04 11:49:26 -04:00
uv-cache Retain dot-separated wheel tags during cache prune (#13379) 2025-05-10 18:39:11 +00:00
uv-cache-info Avoid allocations for default cache keys (#12063) 2025-03-17 19:59:32 -04:00
uv-cache-key Avoid panics for cannot-be-a-base URLs (#13406) 2025-05-12 22:29:26 -04:00
uv-cli uv export docs: "export" instead of "install" (#13430) 2025-05-13 15:53:10 +02:00
uv-client Redact credentials when displaying URLs (#13333) 2025-05-12 18:58:25 +02:00
uv-configuration Suggest uv self update if required version is newer (#13305) 2025-05-08 00:09:29 +00:00
uv-console Bump MSRV to 1.84 (#12670) 2025-04-04 11:49:26 -04:00
uv-dev Move static feature out of perf features (#13265) 2025-05-02 15:56:40 +00:00
uv-dirs Add support for global uv python pin (#12115) 2025-03-13 13:48:37 +01:00
uv-dispatch Move lowered requirement source type out of uv-pypi-types (#12356) 2025-03-20 21:16:12 -04:00
uv-distribution Move static feature out of perf features (#13265) 2025-05-02 15:56:40 +00:00
uv-distribution-filename Fix .tgz parsing to respect true extension (#13382) 2025-05-10 20:55:28 +00:00
uv-distribution-types Deduplicate fetched index URLs (#13205) 2025-05-02 10:29:07 +02:00
uv-extract Fix .tgz parsing to respect true extension (#13382) 2025-05-10 20:55:28 +00:00
uv-fs Use fs_err for paths in symlinking errors (#13303) 2025-05-05 16:29:27 +00:00
uv-git Redact credentials when displaying URLs (#13333) 2025-05-12 18:58:25 +02:00
uv-git-types Redact credentials when displaying URLs (#13333) 2025-05-12 18:58:25 +02:00
uv-globfilter Build backend: Allow escaping in globs (#13313) 2025-05-07 18:31:41 +02:00
uv-install-wheel Add more context to errors in high level crates. (#13351) 2025-05-12 11:04:41 +00:00
uv-installer Add more context to errors in high level crates. (#13351) 2025-05-12 11:04:41 +00:00
uv-macros Build backend: Add reference docs and schema (#12803) 2025-04-21 12:27:49 +02:00
uv-metadata only warn if CRC appears to be missing (#12722) 2025-04-07 12:49:05 -05:00
uv-normalize Refactor ExtraSpecification to support default-extras (#12964) 2025-04-28 13:30:14 -04:00
uv-once-map Bump MSRV to 1.84 (#12670) 2025-04-04 11:49:26 -04:00
uv-options-metadata Upgrade minimum Rust version to 1.83 (#9815) 2024-12-11 10:06:19 -06:00
uv-pep440 Address #12836 review comment (#12873) 2025-04-14 08:10:34 +00:00
uv-pep508 Fix panic with invalid last char in PEP 508 name (#13105) 2025-04-25 14:56:46 +02:00
uv-performance-memory-allocator Update Rust crate mimalloc to v0.1.46 (#12863) 2025-04-14 10:10:12 +02:00
uv-platform-tags Accept musllinux_1_0 as a valid platform tag (#13289) 2025-05-05 08:53:41 +02:00
uv-publish Revert fix handling of authentication when encountering redirects (#13215) 2025-04-30 10:53:10 +02:00
uv-pypi-types Add support for BLAKE2b-256 (#13204) 2025-04-29 18:39:41 -04:00
uv-python Avoid panics for cannot-be-a-base URLs (#13406) 2025-05-12 22:29:26 -04:00
uv-redacted Redact credentials when displaying URLs (#13333) 2025-05-12 18:58:25 +02:00
uv-requirements Remove unused source tree variant (#13422) 2025-05-13 07:07:10 +00:00
uv-requirements-txt Add more context to errors in high level crates. (#13351) 2025-05-12 11:04:41 +00:00
uv-resolver Be more precise in unpinned packages warning (#13426) 2025-05-13 07:25:05 +00:00
uv-scripts Retain trailing comments after PEP 723 metadata block (#13460) 2025-05-14 21:54:20 +00:00
uv-settings Add python-downloads-json-url option for uv.toml to configure custom Python installations via JSON URL (#12974) 2025-04-30 15:52:11 -04:00
uv-shell Add support for Windows legacy scripts via uv tool run (#12079) 2025-03-11 09:02:17 -05:00
uv-small-str Edition 2024 prep: Escape r#gen and remove redundant ref (#11922) 2025-03-03 11:13:56 +00:00
uv-state Add uv-dirs to consolidate directory lookup methods (#8453) 2024-10-22 11:33:25 -05:00
uv-static Optional managed Python archive download cache (#12175) 2025-04-28 12:09:09 +02:00
uv-tool Improve error message when a virtual environment Python symlink is broken (#12168) 2025-05-07 13:24:53 -05:00
uv-torch Disallow mixing requirements across PyTorch indexes (#13179) 2025-04-28 20:06:18 +00:00
uv-trampoline Update Rust crate windows to 0.61.0 (#13159) 2025-04-28 13:36:29 +02:00
uv-trampoline-builder Add more context to errors in high level crates. (#13351) 2025-05-12 11:04:41 +00:00
uv-types Use a boxed slice for extras and groups (#12391) 2025-03-22 11:53:36 -04:00
uv-version Bump verison to 0.7.3 (#13337) 2025-05-07 14:37:22 -05:00
uv-virtualenv Use fs_err for paths in symlinking errors (#13303) 2025-05-05 16:29:27 +00:00
uv-warnings chore: Move all integration tests to a single binary (#8093) 2024-10-11 16:41:35 +02:00
uv-workspace Fix detection of sorted dependencies when include-group is used (#13354) 2025-05-10 14:00:27 -04:00
README.md Link to Dependency specifiers instead of PEP 508 (#8411) 2024-10-21 14:43:38 -04:00

Crates

uv-bench

Functionality for benchmarking uv.

uv-cache-key

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

uv-distribution-filename

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

uv-distribution-types

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

uv-install-wheel-rs

Install built distributions (wheels) into a virtual environment.

uv-once-map

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

uv-pep440-rs

Utilities for interacting with Python version numbers and specifiers.

uv-pep508-rs

Utilities for parsing and evaluating dependency specifiers, previously known as PEP 508.

uv-platform-tags

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

uv-cli

Command-line interface for the uv package manager.

uv-build-frontend

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-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.

uv-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.

uv-workspace

Workspace abstractions for uv.

uv-requirements-txt

Functionality for parsing requirements.txt files.