Skip to content

Commit 2212422

Browse files
authored
Make the validation test for entry-points work with Python 3.13+ (#4357)
2 parents e66f94c + c6266e4 commit 2212422

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools/_entry_points.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def ensure_valid(ep):
1717
"""
1818
try:
1919
ep.extras
20-
except AttributeError as ex:
20+
except (AttributeError, AssertionError) as ex:
21+
# Why both? See https://github.com/python/importlib_metadata/issues/488
2122
msg = (
2223
f"Problems to parse {ep}.\nPlease ensure entry-point follows the spec: "
2324
"https://packaging.python.org/en/latest/specifications/entry-points/"

0 commit comments

Comments
 (0)