Skip to content

Commit c0b43b5

Browse files
committed
Address review comments: text precision, remove version change, flit footnote
1 parent 9d0cf2b commit c0b43b5

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

‎source/guides/writing-pyproject-toml.rst‎

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -333,39 +333,37 @@ You can also specify the format explicitly, like this:
333333
``license`` and ``license-files``
334334
---------------------------------
335335

336-
The :ref:`Core Metadata specification <core-metadata-license>` defines two fields
337-
for modern license metadata. They serve different purposes and can be used
338-
independently:
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:
339339

340340
- ``license`` declares an :term:`SPDX license expression <License Expression>`
341341
consisting of one or more :term:`license identifiers <License Identifier>`.
342-
- ``license-files`` declares the license and other legal files that should be
343-
included in distribution metadata, using a list of glob patterns.
342+
- ``license-files`` specifies glob patterns matching license files and other
343+
legal notices to include in distribution archives.
344344

345345
A previous PEP had specified ``license`` to be a table with a ``file`` or a
346346
``text`` key, this format is now deprecated. Most :term:`build backends<build
347347
backend>` now support the new format as shown in the following table.
348348

349-
.. list-table:: build backend versions introducing the standardized license fields
349+
.. list-table:: build backend versions supporting the standardized license fields
350350
:header-rows: 1
351351

352352
* - hatchling
353353
- setuptools
354-
- flit-core [#flit-core-pep639]_
354+
- flit-core
355355
- pdm-backend
356356
- poetry-core
357357
- uv-build
358358
* - 1.27.0
359-
- 77.0.0
359+
- 77.0.3
360360
- 3.12
361361
- 2.4.0
362362
- 2.2.0
363363
- 0.7.19
364364

365-
The table records the first backend release implementing the license fields
366-
in the :ref:`Core Metadata specification <core-metadata-license>`; it is not
367-
a recommendation to pin projects to those historical versions. Prefer a
368-
current supported backend release when possible.
365+
The table lists minimum backend versions for these fields; prefer a current
366+
supported backend release when possible.
369367

370368

371369
.. _license:
@@ -626,9 +624,6 @@ A full example
626624
like ``requires-python = "<= 3.10"`` here. `This blog post <requires-python-blog-post_>`_
627625
contains some information regarding possible problems.
628626
629-
.. [#flit-core-pep639] flit-core `does not yet <flit-issue-735_>`_ support WITH in SPDX license expressions.
630-
631-
.. _flit-issue-735: https://github.com/pypa/flit/issues/735
632627
.. _gfm: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
633628
.. _setuptools: https://setuptools.pypa.io
634629
.. _poetry: https://python-poetry.org

0 commit comments

Comments
 (0)