diff --git a/setuptools/config/_apply_pyprojecttoml.py b/setuptools/config/_apply_pyprojecttoml.py index 9088bc1383..2a59446042 100644 --- a/setuptools/config/_apply_pyprojecttoml.py +++ b/setuptools/config/_apply_pyprojecttoml.py @@ -102,7 +102,7 @@ def _apply_tool_table(dist: Distribution, config: dict, filename: StrPath): "'tool.setuptools.license-files' is deprecated in favor of " "'project.license-files' (available on setuptools>=77.0.0).", see_url=f"https://packaging.python.org/en/latest/{pypa_guides}", - due_date=(2026, 2, 18), # Warning introduced on 2025-02-18 + due_date=(2027, 2, 18), # Warning introduced on 2025-02-18 ) for field, value in tool_table.items(): @@ -214,7 +214,7 @@ def _license(dist: Distribution, val: str | dict, root_dir: StrPath | None): "`project.license`. You can also use `project.license-files`. " "(Both options available on setuptools>=77.0.0).", see_url=f"https://packaging.python.org/en/latest/{pypa_guides}", - due_date=(2026, 2, 18), # Introduced on 2025-02-18 + due_date=(2027, 2, 18), # Introduced on 2025-02-18 ) if "file" in val: # XXX: Is it completely safe to assume static? diff --git a/setuptools/dist.py b/setuptools/dist.py index d2d95b9854..a3d1e5f91e 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -512,7 +512,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]: of the Python package (normally marked by `pyproject.toml`). """, see_url=f"https://packaging.python.org/en/latest/{pypa_guides}", - due_date=(2026, 3, 20), # Introduced in 2025-03-20 + due_date=(2027, 2, 18), # Introduced in 2025-03-20 # Replace with InvalidConfigError after deprecation ) if pattern.startswith((os.sep, "/")) or ":\\" in pattern: @@ -525,7 +525,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]: "Pattern {pattern!r} contains invalid characters.", pattern=pattern, see_url=f"https://packaging.python.org/en/latest/{pypa_guides}", - due_date=(2026, 3, 20), # Introduced in 2025-02-20 + due_date=(2027, 2, 18), # Introduced in 2025-02-20 ) found = glob(pattern, recursive=True) @@ -535,7 +535,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]: "Cannot find any files for the given pattern.", "Pattern {pattern!r} did not match any files.", pattern=pattern, - due_date=(2026, 3, 20), # Introduced in 2025-02-20 + due_date=(2027, 2, 18), # Introduced in 2025-02-20 # PEP 639 requires us to error, but as a transition period # we will only issue a warning to give people time to prepare. # After the transition, this should raise an InvalidConfigError.