@@ -333,22 +333,25 @@ You can also specify the format explicitly, like this:
333333``license `` and ``license-files ``
334334---------------------------------
335335
336- As per :pep: `639 `, licenses should be declared with two fields:
336+ The :ref: `Core Metadata specification <core-metadata-license-expression >` defines
337+ two fields for modern license metadata. They serve different purposes and can be
338+ used independently:
337339
338- - ``license `` is an :term: `SPDX license expression <License Expression> `
340+ - ``license `` declares an :term: `SPDX license expression <License Expression> `
339341 consisting of one or more :term: `license identifiers <License Identifier> `.
340- - ``license-files `` is a list of license file glob patterns.
342+ - ``license-files `` specifies glob patterns matching license files and other
343+ legal notices to include in distribution archives.
341344
342345A previous PEP had specified ``license `` to be a table with a ``file `` or a
343346``text `` key, this format is now deprecated. Most :term: `build backends<build
344347backend> ` now support the new format as shown in the following table.
345348
346- .. list-table :: build backend versions that introduced :pep:`639` support
349+ .. list-table :: build backend versions supporting the standardized license fields
347350 :header-rows: 1
348351
349352 * - hatchling
350353 - setuptools
351- - flit-core [ #flit-core-pep639 ]_
354+ - flit-core
352355 - pdm-backend
353356 - poetry-core
354357 - uv-build
@@ -359,6 +362,9 @@ backend>` now support the new format as shown in the following table.
359362 - 2.2.0
360363 - 0.7.19
361364
365+ The table lists minimum backend versions for these fields; prefer a current
366+ supported backend release when possible.
367+
362368
363369.. _license :
364370
@@ -618,9 +624,6 @@ A full example
618624 like ``requires-python = "<= 3.10" `` here. `This blog post <requires-python-blog-post _>`_
619625 contains some information regarding possible problems.
620626
621- .. [#flit-core-pep639 ] flit-core `does not yet <flit-issue-735 _>`_ support WITH in SPDX license expressions.
622-
623- .. _flit-issue-735 : https://github.com/pypa/flit/issues/735
624627 .. _gfm : https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
625628.. _setuptools : https://setuptools.pypa.io
626629.. _poetry : https://python-poetry.org
0 commit comments