File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,12 @@ Text string that is a valid SPDX
483483:term: `license expression <License Expression> `,
484484as specified in :doc: `/specifications/license-expression `.
485485
486+ Note that the expression in this field only applies to the
487+ :term: `Distribution Archive ` containing the metadata with this field (e.g.,
488+ :term: `Source Distribution <Source Distribution (or "sdist")> ` or :term: `Wheel `),
489+ not the project overall or other files related to the project (including other
490+ distribution archives).
491+
486492Examples::
487493
488494 License-Expression: MIT
@@ -1061,6 +1067,9 @@ History
10611067
10621068 - Added the ``Import-Name `` field.
10631069 - Added the ``Import-Namespace `` field.
1070+
1071+ - October 2025: Clarified that ``License-Expression `` applies to the containing
1072+ distribution file and not the project itself.
10641073
10651074----
10661075
Original file line number Diff line number Diff line change @@ -261,6 +261,12 @@ Text string that is a valid SPDX
261261as specified in :doc: `/specifications/license-expression `.
262262Tools SHOULD validate and perform case normalization of the expression.
263263
264+ This key should **only ** be specified if the license expression for any
265+ and all distribution files created by a build backend using the
266+ :file: `pyproject.toml ` is the same as the one specified. If the license
267+ expression will differ then it should either be specified as dynamic or
268+ not set at all.
269+
264270Legacy specification
265271''''''''''''''''''''
266272
@@ -633,8 +639,10 @@ History
633639- December 2024: The ``license `` key was redefined, the ``license-files `` key was
634640 added and ``License:: `` classifiers were deprecated through :pep: `639 `.
635641
636- - September 2025: The `` import-names `` and ``import-namespaces `` keys were added
637- through :pep: ` 794 ` .
642+ - September 2025: Clarity that the ``license `` key applies to all distribution
643+ files generated from the :file: ` pyproject.toml ` file .
638644
645+ - October 2025: The ``import-names `` and ``import-namespaces `` keys were added
646+ through :pep: `794 `.
639647
640648.. _TOML : https://toml.io
You can’t perform that action at this time.
0 commit comments