This directory is named as {name}-{version}.dist-info, with name and version fields corresponding to Core metadata specifications. Both fields must be normalized (see the name normalization specification and the version normalization specification), and replace dash (-) characters with underscore (_) characters, so the .dist-info directory always has exactly one dash (-) character in its stem, separating the name and version fields.
Steps to Reproduce
run uv tool install babel
Actual Results
error: Failed to find dist-info directory `babel-2.15.0.dist-info` in environment at ~/.local/share/uv/tools/babel
Overview Description
The .dist-info does not follow Python Packaging User Guide guideline.
The .dist-info directory is outlined here:
This directory is named as {name}-{version}.dist-info, with name and version fields corresponding to Core metadata specifications. Both fields must be normalized (see the name normalization specification and the version normalization specification), and replace dash (-) characters with underscore (_) characters, so the .dist-info directory always has exactly one dash (-) character in its stem, separating the name and version fields.
Steps to Reproduce
uv tool install babel
Actual Results
Expected Results
installation succeed
Reproducibility
Additional Information
See