Skip to content

Commit e034575

Browse files
committed
Postpone deprecation warnings related to PEP 639 to 2027-Feb-18
1 parent d198e86 commit e034575

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

setuptools/config/_apply_pyprojecttoml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _apply_tool_table(dist: Distribution, config: dict, filename: StrPath):
102102
"'tool.setuptools.license-files' is deprecated in favor of "
103103
"'project.license-files' (available on setuptools>=77.0.0).",
104104
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
105-
due_date=(2026, 2, 18), # Warning introduced on 2025-02-18
105+
due_date=(2027, 2, 18), # Warning introduced on 2025-02-18
106106
)
107107

108108
for field, value in tool_table.items():
@@ -214,7 +214,7 @@ def _license(dist: Distribution, val: str | dict, root_dir: StrPath | None):
214214
"`project.license`. You can also use `project.license-files`. "
215215
"(Both options available on setuptools>=77.0.0).",
216216
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
217-
due_date=(2026, 2, 18), # Introduced on 2025-02-18
217+
due_date=(2027, 2, 18), # Introduced on 2025-02-18
218218
)
219219
if "file" in val:
220220
# XXX: Is it completely safe to assume static?

setuptools/dist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
512512
of the Python package (normally marked by `pyproject.toml`).
513513
""",
514514
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
515-
due_date=(2026, 3, 20), # Introduced in 2025-03-20
515+
due_date=(2027, 2, 18), # Introduced in 2025-03-20
516516
# Replace with InvalidConfigError after deprecation
517517
)
518518
if pattern.startswith((os.sep, "/")) or ":\\" in pattern:
@@ -525,7 +525,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
525525
"Pattern {pattern!r} contains invalid characters.",
526526
pattern=pattern,
527527
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
528-
due_date=(2026, 3, 20), # Introduced in 2025-02-20
528+
due_date=(2027, 2, 18), # Introduced in 2025-02-20
529529
)
530530

531531
found = glob(pattern, recursive=True)
@@ -535,7 +535,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
535535
"Cannot find any files for the given pattern.",
536536
"Pattern {pattern!r} did not match any files.",
537537
pattern=pattern,
538-
due_date=(2026, 3, 20), # Introduced in 2025-02-20
538+
due_date=(2027, 2, 18), # Introduced in 2025-02-20
539539
# PEP 639 requires us to error, but as a transition period
540540
# we will only issue a warning to give people time to prepare.
541541
# After the transition, this should raise an InvalidConfigError.

0 commit comments

Comments
 (0)