@@ -182,6 +182,7 @@ its version, e.g. ``1.0.0``, consist of:
182182 ``purelib `` or ``platlib `` as specified in ``WHEEL ``. ``purelib `` and
183183 ``platlib `` are usually both ``site-packages ``.
184184#. ``{distribution}-{version}.dist-info/ `` contains metadata.
185+ #. :file: `{ distribution } -{ version } .dist-info/licenses/ ` contains license files.
185186#. ``{distribution}-{version}.data/ `` contains one subdirectory
186187 for each non-empty install scheme key not already covered, where
187188 the subdirectory name is an index into a dictionary of install paths
@@ -250,6 +251,16 @@ The .dist-info directory
250251 mentioned and correctly hashed in RECORD.
251252
252253
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+
253264The .data directory
254265^^^^^^^^^^^^^^^^^^^
255266
@@ -427,6 +438,8 @@ History
427438 regular files (the expected behaviour of consuming tools when encountering
428439 symlinks or subdirectories in this folder is not formally defined, and hence
429440 may vary between tools).
441+ - December 2024: The :file: `.dist-info/licenses/ ` directory was specified through
442+ :pep: `639 `.
430443
431444
432445Appendix
0 commit comments