Skip to content

Commit

Permalink
Rely on zipp overlay for zipfile.Path.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 20, 2024
1 parent d968f62 commit 56b61b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from itertools import starmap
from typing import Any, Iterable, List, Mapping, Match, Optional, Set, cast

import zipp
from zipp.compat.overlay import zipfile

from . import _meta
from ._collections import FreezableDefaultDict, Pair
Expand Down Expand Up @@ -768,7 +768,7 @@ def children(self):
return []

def zip_children(self):
zip_path = zipp.Path(self.root)
zip_path = zipfile.Path(self.root)
names = zip_path.root.namelist()
self.joinpath = zip_path.joinpath

Expand Down
1 change: 1 addition & 0 deletions newsfragments/+d7832466.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rely on zipp overlay for zipfile.Path.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ classifiers = [
]
requires-python = ">=3.8"
dependencies = [
"zipp>=0.5",
"zipp>=3.20",
'typing-extensions>=3.6.4; python_version < "3.8"',
]
dynamic = ["version"]
Expand Down

0 comments on commit 56b61b3

Please sign in to comment.