Skip to content

Commit 56b61b3

Browse files
committed
Rely on zipp overlay for zipfile.Path.
1 parent d968f62 commit 56b61b3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

importlib_metadata/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from itertools import starmap
2121
from typing import Any, Iterable, List, Mapping, Match, Optional, Set, cast
2222

23-
import zipp
23+
from zipp.compat.overlay import zipfile
2424

2525
from . import _meta
2626
from ._collections import FreezableDefaultDict, Pair
@@ -768,7 +768,7 @@ def children(self):
768768
return []
769769

770770
def zip_children(self):
771-
zip_path = zipp.Path(self.root)
771+
zip_path = zipfile.Path(self.root)
772772
names = zip_path.root.namelist()
773773
self.joinpath = zip_path.joinpath
774774

newsfragments/+d7832466.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rely on zipp overlay for zipfile.Path.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
]
1919
requires-python = ">=3.8"
2020
dependencies = [
21-
"zipp>=0.5",
21+
"zipp>=3.20",
2222
'typing-extensions>=3.6.4; python_version < "3.8"',
2323
]
2424
dynamic = ["version"]

0 commit comments

Comments
 (0)