Skip to content

Commit 07cddd1

Browse files
authored
Merge branch 'main' into pep-794
2 parents 67b407b + 2b13449 commit 07cddd1

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

source/specifications/core-metadata.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,12 @@ Text string that is a valid SPDX
483483
:term:`license expression <License Expression>`,
484484
as 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+
486492
Examples::
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

source/specifications/pyproject-toml.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ Text string that is a valid SPDX
261261
as specified in :doc:`/specifications/license-expression`.
262262
Tools 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+
264270
Legacy 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

0 commit comments

Comments
 (0)