uv/crates
Severen Redwood f8bda467fa
Lift requirement that .egg-info filenames must include version (#6179)
## Summary

PR #4533 introduced (almost) spec compliant parsing of `.egg-info`
filenames, but added the overly strict requirement that the distribution
version must be present. This causes various `uv pip` operations to fail
in environments where there are `.egg-info` files without a version
component, so loosen this check by making the version component optional
and reading the version from the egg metadata when it is not present.

As an example of the issue, running `uv pip list` on my system currently
results in
```
error: Failed to read metadata from: `/usr/lib/python3.12/site-packages/PySide6.egg-info`
  Caused by: The `.egg-info` filename "PySide6.egg-info" is missing a version
```
whereas regular `pip list` succeeds:
```
$ pip list | rg -S pyside
PySide6                   6.7.2
```

## Test Plan

This has been tested by altering the `.egg-info` filename tests as
needed and ensuring the full test suite passes locally.
2024-08-18 13:04:40 -04:00
..
bench Store environment-markers in solve order (#6078) 2024-08-14 09:20:12 -04:00
cache-key Use hasher to compute resolution hash (#5495) 2024-07-26 23:24:09 +00:00
distribution-filename Lift requirement that .egg-info filenames must include version (#6179) 2024-08-18 13:04:40 -04:00
distribution-types Lift requirement that .egg-info filenames must include version (#6179) 2024-08-18 13:04:40 -04:00
install-wheel-rs Add env var to --link-mode=copy warning (#6103) 2024-08-15 03:14:53 +00:00
once-map Use FxHash in uv-auth (#6149) 2024-08-16 13:14:51 -04:00
pep440-rs Normalize python_version markers to python_full_version (#6126) 2024-08-15 21:42:15 -04:00
pep508-rs Respect release-only semantics of python_full_version when constructing markers (#6171) 2024-08-17 19:29:57 +00:00
platform-tags Process completed Python installs and uninstalls as a stream (#5203) 2024-07-19 12:50:38 +00:00
pypi-types Use sets rather than vectors for lockfile requirements (#6107) 2024-08-15 13:00:35 +00:00
requirements-txt Normalize python_version markers to python_full_version (#6126) 2024-08-15 21:42:15 -04:00
uv Show generate-shell-completion command in uv help (#6180) 2024-08-18 08:13:29 -05:00
uv-auth Use FxHash in uv-auth (#6149) 2024-08-16 13:14:51 -04:00
uv-build Support no-build-isolation-package (#5894) 2024-08-08 01:35:56 +00:00
uv-cache Enforce extension validity at parse time (#5888) 2024-08-08 21:39:47 -04:00
uv-cli Hide global option in uv generate-shell-completion (#6170) 2024-08-17 13:34:34 -05:00
uv-client Support relative path wheels (#5969) 2024-08-09 21:57:16 +00:00
uv-configuration Remove uses of Option<MarkerTree> (#5978) 2024-08-10 13:23:29 -04:00
uv-dev Show uv generate-shell-completion in CLI documentation reference (#6146) 2024-08-16 11:40:05 -05:00
uv-dispatch Respect release-only semantics of python_full_version when constructing markers (#6171) 2024-08-17 19:29:57 +00:00
uv-distribution Avoid displaying "failed to download" on build failures for local source distributions (#6075) 2024-08-14 17:27:55 -05:00
uv-extract Enforce extension validity at parse time (#5888) 2024-08-08 21:39:47 -04:00
uv-fs Capture portable path serialization in a struct (#5652) 2024-07-31 16:00:37 +00:00
uv-git Redact Git credentials from pyproject.toml (#6074) 2024-08-14 01:30:02 +00:00
uv-installer Use consistent canonicalization for URLs (#5980) 2024-08-09 21:43:36 -04:00
uv-macros Autogenerate possible values for enums in reference documentation (#5137) 2024-07-17 12:37:33 -04:00
uv-normalize Support dev dependencies in virtual workspace roots (#5709) 2024-08-01 21:04:30 +00:00
uv-options-metadata Autogenerate possible values for enums in reference documentation (#5137) 2024-07-17 12:37:33 -04:00
uv-pubgrub Implement marker trees using algebraic decision diagrams (#5898) 2024-08-09 13:40:02 -04:00
uv-python Update Pythons to include Python 3.12.5 (#6087) 2024-08-14 15:18:01 +00:00
uv-requirements Avoid displaying "failed to download" on build failures for local source distributions (#6075) 2024-08-14 17:27:55 -05:00
uv-resolver Respect release-only semantics of python_full_version when constructing markers (#6171) 2024-08-17 19:29:57 +00:00
uv-scripts Misc. edits to script parsing (#5999) 2024-08-10 22:07:05 -04:00
uv-settings Make more informative warning message when failed to parse pyproject.toml (#6009) 2024-08-11 21:13:14 +00:00
uv-shell fix(venv): make relocatable activation scripts support ksh (#5640) 2024-07-31 12:18:11 -04:00
uv-state Cache tool environments in uv tool run (#4784) 2024-07-03 19:25:39 -04:00
uv-tool Retain and respect settings in tool upgrades (#5937) 2024-08-09 18:21:49 +00:00
uv-trampoline Update Rust crate dunce to v1.0.5 (#6019) 2024-08-12 01:25:55 +00:00
uv-types Support no-build-isolation-package (#5894) 2024-08-08 01:35:56 +00:00
uv-version Bump version to v0.2.37 (#6134) 2024-08-15 22:13:03 -04:00
uv-virtualenv fix(venv): make relocatable activation scripts support ksh (#5640) 2024-07-31 12:18:11 -04:00
uv-warnings Upgrade to Rust 1.80.0 (#5472) 2024-07-27 01:49:47 +00:00
uv-workspace Avoid overwriting dependencies with different markers in uv add (#6010) 2024-08-16 20:46:47 +00:00
README.md Use prettier to format the documentation (#5708) 2024-08-02 08:58:31 -05: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.

uv-workspace

Workspace abstractions for uv.

requirements-txt

Functionality for parsing requirements.txt files.