Skip to content

Commit 24d9605

Browse files
committed
Document version of setuptools introducing support for PEP 639
1 parent 7c859e0 commit 24d9605

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/userguide/pyproject_config.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ The ``project`` table contains metadata fields as described by the
7070
# ... other project metadata fields as listed in:
7171
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
7272
73+
.. important::
74+
Support for
75+
:doc:`project.license-files <PyPUG:pecifications/pyproject-toml/#license-files>`
76+
and SPDX license expressions in
77+
:doc:`project.license <PyPUG:pecifications/pyproject-toml/#license>` (:pep:`639`)
78+
were introduced in version 71.0.0.
79+
80+
7381
.. _setuptools-table:
7482

7583
Setuptools-specific configuration

setuptools/config/_apply_pyprojecttoml.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _apply_tool_table(dist: Distribution, config: dict, filename: StrPath):
100100
pypa_guides = "guides/writing-pyproject-toml/#license-files"
101101
SetuptoolsDeprecationWarning.emit(
102102
"'tool.setuptools.license-files' is deprecated in favor of "
103-
"'project.license-files'",
103+
"'project.license-files' (available on setuptools>=71.0.0).",
104104
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
105105
due_date=(2026, 2, 18), # Warning introduced on 2025-02-18
106106
)
@@ -211,7 +211,8 @@ def _license(dist: Distribution, val: str | dict, root_dir: StrPath | None):
211211
SetuptoolsDeprecationWarning.emit(
212212
"`project.license` as a TOML table is deprecated",
213213
"Please use a simple string containing a SPDX expression for "
214-
"`project.license`. You can also use `project.license-files`.",
214+
"`project.license`. You can also use `project.license-files`. "
215+
"(Both options available on setuptools>=71.0.0).",
215216
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
216217
due_date=(2026, 2, 18), # Introduced on 2025-02-18
217218
)

0 commit comments

Comments
 (0)