Skip to content

Commit 5fce380

Browse files
committed
Use URL with detailed clarifications in deprecation warning
1 parent 3250c25 commit 5fce380

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setuptools/dist.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,11 @@ def _enforce_underscore(self, opt: str, section: str) -> str:
635635
Usage of dash-separated {opt!r} will not be supported in future
636636
versions. Please use the underscore name {underscore_opt!r} instead.
637637
{affected}
638+
639+
Available configuration options are listed in:
640+
https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
638641
""",
639-
see_docs="userguide/declarative_config.html",
642+
see_url="https://github.com/pypa/setuptools/discussions/5011",
640643
due_date=(2026, 3, 3),
641644
# Warning initially introduced in 3 Mar 2021
642645
)
@@ -655,8 +658,11 @@ def _enforce_option_lowercase(self, opt: str, section: str) -> str:
655658
Usage of uppercase key {opt!r} in {section!r} will not be supported in
656659
future versions. Please use lowercase {lowercase_opt!r} instead.
657660
{affected}
661+
662+
Available configuration options are listed in:
663+
https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
658664
""",
659-
see_docs="userguide/declarative_config.html",
665+
see_url="https://github.com/pypa/setuptools/discussions/5011",
660666
due_date=(2026, 3, 3),
661667
# Warning initially introduced in 6 Mar 2021
662668
)

0 commit comments

Comments
 (0)