Skip to content

Commit 638128c

Browse files
authored
Prevent accidental warning (#4559)
Prevent accidental warning from deprecated entrypoint in `pypa/wheel#631`
2 parents 7aa30d0 + e3cd584 commit 638128c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

newsfragments/4559.misc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Prevent deprecation warning from ``pypa/wheel#631`` to accidentally
2+
trigger when validating ``pyproject.toml``.

setuptools/config/_apply_pyprojecttoml.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ def _valid_command_options(cmdclass: Mapping = EMPTY) -> dict[str, set[str]]:
276276

277277

278278
def _load_ep(ep: metadata.EntryPoint) -> tuple[str, type] | None:
279+
if ep.value.startswith("wheel.bdist_wheel"):
280+
# Ignore deprecated entrypoint from wheel and avoid warning pypa/wheel#631
281+
# TODO: remove check when `bdist_wheel` has been fully removed from pypa/wheel
282+
return None
283+
279284
# Ignore all the errors
280285
try:
281286
return (ep.name, ep.load())

0 commit comments

Comments
 (0)