Skip to content

Commit

Permalink
Clearly specify that the name and version should be normalized for `.…
Browse files Browse the repository at this point in the history
…dist-info` and `.data` directories in wheels

It's implied by https://packaging.python.org/en/latest/specifications/recording-installed-packages/#the-dist-info-directory as the resulting directory upon unpacking is supposed to be normalized.
  • Loading branch information
brettcannon authored Jan 15, 2025
1 parent 11f13d0 commit f14dab6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/specifications/binary-distribution-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ File contents
'''''''''''''

The contents of a wheel file, where {distribution} is replaced with the
name of the package, e.g. ``beaglevote`` and {version} is replaced with
its version, e.g. ``1.0.0``, consist of:
:ref:`normalized name <name-normalization>` of the package, e.g.
``beaglevote`` and {version} is replaced
with its :ref:`normalized version <version-specifiers-normalization>`,
e.g. ``1.0.0``, consist of:

#. ``/``, the root of the archive, contains all files to be installed in
``purelib`` or ``platlib`` as specified in ``WHEEL``. ``purelib`` and
Expand Down

0 comments on commit f14dab6

Please sign in to comment.