@@ -507,12 +507,11 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
507
507
SetuptoolsDeprecationWarning .emit (
508
508
f"Pattern { pattern !r} cannot contain '..'" ,
509
509
"""
510
- According to the new PyPA standards, this glob pattern is invalid.
511
510
Please ensure the files specified are contained by the root
512
511
of the Python package (normally marked by `pyproject.toml`).
513
512
""" ,
514
513
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
516
515
# Replace with InvalidConfigError after deprecation
517
516
)
518
517
if pattern .startswith ((os .sep , "/" )) or ":\\ " in pattern :
@@ -525,7 +524,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
525
524
"Pattern {pattern!r} contains invalid characters." ,
526
525
pattern = pattern ,
527
526
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
529
528
)
530
529
531
530
found = glob (pattern , recursive = True )
@@ -535,7 +534,7 @@ def _find_pattern(pattern: str, enforce_match: bool = True) -> list[str]:
535
534
"Cannot find any files for the given pattern." ,
536
535
"Pattern {pattern!r} did not match any files." ,
537
536
pattern = pattern ,
538
- due_date = (2026 , 2 , 20 ), # Introduced in 2025-02-20
537
+ due_date = (2026 , 3 , 20 ), # Introduced in 2025-02-20
539
538
# PEP 639 requires us to error, but as a transition period
540
539
# we will only issue a warning to give people time to prepare.
541
540
# After the transition, this should raise an InvalidConfigError.
0 commit comments