|
137 | 137 |
|
138 | 138 | Variant wheels MUST include the variant label component. Conversely, |
139 | 139 | 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_.]+$``). |
142 | 142 |
|
143 | 143 | Every variant label MUST uniquely correspond to a specific set of |
144 | 144 | variant properties, which MUST be the same for all wheels using the same |
@@ -841,6 +841,12 @@ commonly used today reject it: |
841 | 841 | numpy-2.3.2-cp313-cp313t-musllinux_1_2_x86_64-x86_64_v3.whl |
842 | 842 | ^^^^^ |
843 | 843 |
|
| 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 | + |
844 | 850 | Aside from this explicit incompatibility, the specification makes |
845 | 851 | minimal and non-intrusive changes to the binary package format. The |
846 | 852 | `variant metadata`_ is stored in a separate file in the ``.dist-info`` |
@@ -965,6 +971,7 @@ Change History |
965 | 971 | best value that is compatible with the system, for every feature, |
966 | 972 | rather than all compatible values, and add a fallback to ordering |
967 | 973 | on variant label. |
| 974 | + - Removed the variant label length limitation. |
968 | 975 |
|
969 | 976 |
|
970 | 977 | Appendices |
|
0 commit comments