Skip to content

Commit 53b6a42

Browse files
authored
Merge pull request #1908 from brettcannon/clarify-license-pyproject
Clarify that the `license` key in `pyproject.toml` should only be set if it is consistent across all distribution files
2 parents a875592 + 8d61716 commit 53b6a42

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/specifications/pyproject-toml.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ Text string that is a valid SPDX
259259
as specified in :doc:`/specifications/license-expression`.
260260
Tools SHOULD validate and perform case normalization of the expression.
261261

262+
This key should **only** be specified if the license expression for any
263+
and all distribution files created by a build backend using the
264+
:file:`pyproject.toml` is the same as the one specified. If the license
265+
expression will differ then it should either be specified as dynamic or
266+
not set at all.
267+
262268
Legacy specification
263269
''''''''''''''''''''
264270

@@ -540,5 +546,8 @@ History
540546
- December 2024: The ``license`` key was redefined, the ``license-files`` key was
541547
added and ``License::`` classifiers were deprecated through :pep:`639`.
542548

549+
- September 2025: Clarity that the ``license`` key applies to all distribution
550+
files generated from the :file:`pyproject.toml` file.
551+
543552

544553
.. _TOML: https://toml.io

0 commit comments

Comments
 (0)