@@ -628,17 +628,16 @@ def _enforce_underscore(self, opt: str, section: str) -> str:
628
628
629
629
underscore_opt = opt .replace ('-' , '_' )
630
630
affected = f"(Affected: { self .metadata .name } )." if self .metadata .name else ""
631
- SetuptoolsDeprecationWarning .emit (
631
+ InformationOnly .emit (
632
632
f"Invalid dash-separated key { opt !r} in { section !r} (setup.cfg), "
633
633
f"please use the underscore name { underscore_opt !r} instead." ,
634
634
f"""
635
- Usage of dash-separated { opt !r} will not be supported in future
636
- versions . Please use the underscore name { underscore_opt !r} instead.
635
+ Usage of dash-separated { opt !r} is not supported by Python packaging
636
+ specifications . Please use the underscore name { underscore_opt !r} instead.
637
637
{ affected }
638
638
""" ,
639
639
see_docs = "userguide/declarative_config.html" ,
640
- due_date = (2026 , 3 , 3 ),
641
- # Warning initially introduced in 3 Mar 2021
640
+ # Changed from warning to info after https://github.com/pypa/setuptools/issues/4910
642
641
)
643
642
return underscore_opt
644
643
@@ -648,17 +647,17 @@ def _enforce_option_lowercase(self, opt: str, section: str) -> str:
648
647
649
648
lowercase_opt = opt .lower ()
650
649
affected = f"(Affected: { self .metadata .name } )." if self .metadata .name else ""
651
- SetuptoolsDeprecationWarning .emit (
650
+ InformationOnly .emit (
652
651
f"Invalid uppercase key { opt !r} in { section !r} (setup.cfg), "
653
652
f"please use lowercase { lowercase_opt !r} instead." ,
654
653
f"""
655
- Usage of uppercase key { opt !r} in { section !r} will not be supported in
656
- future versions. Please use lowercase { lowercase_opt !r} instead.
654
+ Usage of uppercase key { opt !r} in { section !r} is not supported
655
+ by Python packaging specifications. Please use lowercase { lowercase_opt !r}
656
+ instead.
657
657
{ affected }
658
658
""" ,
659
659
see_docs = "userguide/declarative_config.html" ,
660
- due_date = (2026 , 3 , 3 ),
661
- # Warning initially introduced in 6 Mar 2021
660
+ # Changed from warning to info after https://github.com/pypa/setuptools/issues/4910
662
661
)
663
662
return lowercase_opt
664
663
0 commit comments