From 476642872b9c1968d478b7a8486fe3b08cb0a8ac Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Tue, 10 Nov 2026 23:47:43 +0200 Subject: [PATCH] writing-pyproject-toml: link to the canonical spec instead of PEP 621 Since the referenced information is contained in the canonical `pyproject.toml` spec (and the wording is newer as well), it makes more sense to link there. --- source/guides/writing-pyproject-toml.rst | 3 ++- source/specifications/pyproject-toml.rst | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/guides/writing-pyproject-toml.rst b/source/guides/writing-pyproject-toml.rst index b0532c131..06d792332 100644 --- a/source/guides/writing-pyproject-toml.rst +++ b/source/guides/writing-pyproject-toml.rst @@ -375,7 +375,8 @@ The full license list is available at the .. note:: If you get a build error that ``license`` should be a dict/table, your build backend doesn't yet support the new format. See the `above section `_ for more context. - The now deprecated format is `described in PEP 621 `__. + The now deprecated format is described in + :ref:`the pyproject.toml specification `. As a general rule, it is a good idea to use a standard, well-known license, both to avoid confusion and because some organizations avoid software diff --git a/source/specifications/pyproject-toml.rst b/source/specifications/pyproject-toml.rst index 92243bf42..43fdb4b84 100644 --- a/source/specifications/pyproject-toml.rst +++ b/source/specifications/pyproject-toml.rst @@ -277,6 +277,8 @@ and all distribution files created by a build backend using the expression will differ then it should either be specified as dynamic or not set at all. +.. _pyproject-toml-license-legacy: + Legacy specification ''''''''''''''''''''