@@ -182,6 +182,7 @@ its version, e.g. ``1.0.0``, consist of:
182
182
``purelib `` or ``platlib `` as specified in ``WHEEL ``. ``purelib `` and
183
183
``platlib `` are usually both ``site-packages ``.
184
184
#. ``{distribution}-{version}.dist-info/ `` contains metadata.
185
+ #. :file: `{ distribution } -{ version } .dist-info/licenses/ ` contains license files.
185
186
#. ``{distribution}-{version}.data/ `` contains one subdirectory
186
187
for each non-empty install scheme key not already covered, where
187
188
the subdirectory name is an index into a dictionary of install paths
@@ -250,6 +251,16 @@ The .dist-info directory
250
251
mentioned and correctly hashed in RECORD.
251
252
252
253
254
+ The :file: `.dist-info/licenses/ ` directory
255
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
256
+
257
+ If the metadata version is 2.4 or greater and one or more ``License-File ``
258
+ fields is specified, the :file: `.dist-info/ ` directory MUST contain a
259
+ :file: `licenses/ ` subdirectory, which MUST contain the files listed in the
260
+ ``License-File `` fields in the :file: `METADATA ` file at their respective paths
261
+ relative to the :file: `licenses/ ` directory.
262
+
263
+
253
264
The .data directory
254
265
^^^^^^^^^^^^^^^^^^^
255
266
@@ -427,6 +438,8 @@ History
427
438
regular files (the expected behaviour of consuming tools when encountering
428
439
symlinks or subdirectories in this folder is not formally defined, and hence
429
440
may vary between tools).
441
+ - December 2024: The :file: `.dist-info/licenses/ ` directory was specified through
442
+ :pep: `639 `.
430
443
431
444
432
445
Appendix
0 commit comments