mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-31 15:57:26 +00:00
![]() ## 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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |