use pkg_resources from setuptools-69.0.3

This commit is contained in:
rembo10
2024-01-18 14:56:54 +05:30
parent 3685d32a7d
commit ad6a4f570e
85 changed files with 15912 additions and 8262 deletions

View File

@@ -58,7 +58,8 @@ class VendorImporter:
"""Return a module spec for vendored names."""
return (
importlib.util.spec_from_loader(fullname, self)
if self._module_matches_namespace(fullname) else None
if self._module_matches_namespace(fullname)
else None
)
def install(self):
@@ -69,5 +70,11 @@ class VendorImporter:
sys.meta_path.append(self)
names = 'packaging', 'pyparsing', 'appdirs'
names = (
'packaging',
'platformdirs',
'jaraco',
'importlib_resources',
'more_itertools',
)
VendorImporter(__name__, names).install()