Skip to content

Commit ab38346

Browse files
authored
Remove setuptools fallback
1 parent f792a3a commit ab38346

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/validate_pyproject/formats.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,7 @@ def int(value: builtins.int) -> bool:
379379

380380

381381
try:
382-
try:
383-
from packaging import licenses as _licenses
384-
except ImportError: # pragma: no cover
385-
# let's try setuptools vendored version
386-
from setuptools._vendor.packaging import ( # type: ignore[no-redef]
387-
licenses as _licenses,
388-
)
382+
from packaging import licenses as _licenses
389383

390384
def SPDX(value: str) -> bool:
391385
"""See :ref:`PyPA's license specifiers <pypa:#license>`

0 commit comments

Comments
 (0)