Skip to content

Commit ce0da3c

Browse files
committed
Fixes for version and doc warning
1 parent b03d300 commit ce0da3c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/userguide/pyproject_config.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ The ``project`` table contains metadata fields as described by the
7272
7373
.. important::
7474
Support for
75-
:doc:`project.license-files <PyPUG:specifications/pyproject-toml/#license-files>`
75+
:ref:`project.license-files <PyPUG:pyproject-toml-license-files>`
7676
and SPDX license expressions in
77-
:doc:`project.license <PyPUG:specifications/pyproject-toml/#license>` (:pep:`639`)
78-
were introduced in version 71.0.0.
77+
:doc:`project.license <PyPUG:specifications/pyproject-toml>` (:pep:`639`)
78+
were introduced in version 77.0.0.
7979

8080

8181
.. _setuptools-table:

setuptools/config/_apply_pyprojecttoml.py

Lines changed: 2 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' (available on setuptools>=71.0.0).",
103+
"'project.license-files' (available on setuptools>=77.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
)
@@ -212,7 +212,7 @@ def _license(dist: Distribution, val: str | dict, root_dir: StrPath | None):
212212
"`project.license` as a TOML table is deprecated",
213213
"Please use a simple string containing a SPDX expression for "
214214
"`project.license`. You can also use `project.license-files`. "
215-
"(Both options available on setuptools>=71.0.0).",
215+
"(Both options available on setuptools>=77.0.0).",
216216
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
217217
due_date=(2026, 2, 18), # Introduced on 2025-02-18
218218
)

0 commit comments

Comments
 (0)