Skip to content

Commit 15ed7c8

Browse files
committed
Clarify filename rules in wheel spec
1 parent 8a54b40 commit 15ed7c8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎source/specifications/binary-distribution-format.rst‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,14 @@ this character cannot appear within any component. This is handled as follows:
161161
- In distribution names, any run of ``-_.`` characters (HYPHEN-MINUS, LOW LINE
162162
and FULL STOP) should be replaced with ``_`` (LOW LINE). This is equivalent
163163
to :pep:`503` normalisation followed by replacing ``-`` with ``_``.
164-
- Version numbers should be normalised according to :pep:`440`, and then ``-``
165-
characters should be replaced with ``_`` (LOW LINE). Normalised version
166-
numbers cannot contain ``_``, so the replacement does not lose information.
164+
- Version numbers should be normalised according to :pep:`440`. Normalised
165+
version numbers cannot contain ``-``.
167166
- The remaining components may not contain ``-`` characters, so no escaping
168167
is necessary.
169168

169+
Tools producing wheels should verify that the filename components do not contain
170+
``-``, as the resulting file may not be processed correctly if they do.
171+
170172
The archive filename is Unicode. It will be some time before the tools
171173
are updated to support non-ASCII filenames, but they are supported in
172174
this specification.

0 commit comments

Comments
 (0)