python-babel / babel

The official repository for Babel, the Python Internationalization Library
http://babel.pocoo.org/
BSD 3-Clause "New" or "Revised" License
1.34k stars 448 forks source link

The .dist-info does not follow Python Packaging User Guide guideline #1109

Closed RomainBrault closed 4 months ago

RomainBrault commented 4 months ago

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

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

Expected Results

installation succeed

Reproducibility

Additional Information

See