Skip to content

Commit 372be38

Browse files
committed
Revert "Replace zipp dependency with stdlib"
This reverts commit fc3f315.
1 parent fc3f315 commit 372be38

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ def children(self):
821821

822822
def zip_children(self):
823823
# deferred for performance (python/importlib_metadata#502)
824-
import zipfile
824+
from zipp.compat.overlay import zipfile
825825

826826
zip_path = zipfile.Path(self.root)
827827
names = zip_path.root.namelist()

mypy.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ disable_error_code =
1818
[mypy-pytest_perf.*]
1919
ignore_missing_imports = True
2020

21+
# jaraco/zipp#123
22+
[mypy-zipp.*]
23+
ignore_missing_imports = True
24+
2125
# jaraco/jaraco.test#7
2226
[mypy-jaraco.test.*]
2327
ignore_missing_imports = True

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ classifiers = [
2222
]
2323
requires-python = ">=3.9"
2424
license = "Apache-2.0"
25+
dependencies = [
26+
"zipp>=3.20",
27+
]
2528
dynamic = ["version"]
2629

2730
[project.urls]

0 commit comments

Comments
 (0)