Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setuptools/config/_apply_pyprojecttoml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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?
Expand Down
6 changes: 3 additions & 3 deletions setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand All @@ -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.
Expand Down
Loading