Skip to content

Commit 685778d

Browse files
committed
Extend deprecation period so that users have 1 entire year
1 parent a1f35ae commit 685778d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

setuptools/dist.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,11 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
507507
SetuptoolsDeprecationWarning.emit(
508508
f"Pattern {pattern!r} cannot contain '..'",
509509
"""
510-
According to the new PyPA standards, this glob pattern is invalid.
511510
Please ensure the files specified are contained by the root
512511
of the Python package (normally marked by `pyproject.toml`).
513512
""",
514513
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
515-
due_date=(2026, 2, 20), # Introduced in 2025-03-20
514+
due_date=(2026, 3, 20), # Introduced in 2025-03-20
516515
# Replace with InvalidConfigError after deprecation
517516
)
518517
if pattern.startswith((os.sep, "/")) or ":\\" in pattern:
@@ -525,7 +524,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
525524
"Pattern {pattern!r} contains invalid characters.",
526525
pattern=pattern,
527526
see_url=f"https://packaging.python.org/en/latest/{pypa_guides}",
528-
due_date=(2026, 2, 20), # Introduced in 2025-02-20
527+
due_date=(2026, 3, 20), # Introduced in 2025-02-20
529528
)
530529

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

0 commit comments

Comments
 (0)