This commit is contained in:
ton
2024-10-07 10:13:40 +07:00
parent aa1631742f
commit 3a7d696db6
9729 changed files with 1832837 additions and 161742 deletions

View File

@@ -1,13 +1,14 @@
import functools
import operator
import itertools
import operator
from jaraco.functools import pass_none
from jaraco.text import yield_lines
from more_itertools import consume
from .errors import OptionError
from .extern.jaraco.text import yield_lines
from .extern.jaraco.functools import pass_none
from ._importlib import metadata
from ._itertools import ensure_unique
from .extern.more_itertools import consume
from .errors import OptionError
def ensure_valid(ep):
@@ -17,7 +18,8 @@ def ensure_valid(ep):
"""
try:
ep.extras
except AttributeError as ex:
except (AttributeError, AssertionError) as ex:
# Why both? See https://github.com/python/importlib_metadata/issues/488
msg = (
f"Problems to parse {ep}.\nPlease ensure entry-point follows the spec: "
"https://packaging.python.org/en/latest/specifications/entry-points/"