Skip to content

Commit 87099b2

Browse files
mgornykonstin
andauthored
Remove variant label length limitation (#41)
Signed-off-by: Michał Górny <mgorny@quansight.com> Co-authored-by: konsti <konstin@mailbox.org>
1 parent efbf1b7 commit 87099b2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

peps/pep-0825.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ to:
137137
138138
Variant wheels MUST include the variant label component. Conversely,
139139
wheels without variant label are non-variant wheels. The variant label
140-
MUST consist only of ``0-9``, ``a-z``, ``_`` and ``.`` ASCII characters,
141-
and be 1-16 characters long (``^[0-9a-z_.]{1,16}$``).
140+
MUST be non-empty and consist only of ``0-9``, ``a-z``, ``_`` and ``.``
141+
ASCII characters (``^[0-9a-z_.]+$``).
142142

143143
Every variant label MUST uniquely correspond to a specific set of
144144
variant properties, which MUST be the same for all wheels using the same
@@ -841,6 +841,12 @@ commonly used today reject it:
841841
numpy-2.3.2-cp313-cp313t-musllinux_1_2_x86_64-x86_64_v3.whl
842842
^^^^^
843843
844+
The addition of the variant label increases the filename length. On platforms
845+
with a low total path length limit such as Windows, long filenames are a
846+
concern. However, given that the name and version components are already
847+
unrestricted, we do not set a specific limit in this PEP. Others, such as PyPI,
848+
may set a limit for total filename length.
849+
844850
Aside from this explicit incompatibility, the specification makes
845851
minimal and non-intrusive changes to the binary package format. The
846852
`variant metadata`_ is stored in a separate file in the ``.dist-info``
@@ -965,6 +971,7 @@ Change History
965971
best value that is compatible with the system, for every feature,
966972
rather than all compatible values, and add a fallback to ordering
967973
on variant label.
974+
- Removed the variant label length limitation.
968975

969976

970977
Appendices

0 commit comments

Comments
 (0)