Skip to content

Commit 388c07b

Browse files
committed
Merge pull request #225 from FFY00.
2 parents c4d228f + c18e967 commit 388c07b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
v5.1.4
2+
======
3+
4+
* #225: Require
5+
`zipp 3.1.0 <https://zipp.readthedocs.io/en/latest/history.html#v3-1-0>`_
6+
or later on Python prior to 3.10 to incorporate those fixes.
7+
18
v5.0.5
29
======
310

importlib_resources/_compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import pathlib
66
from contextlib import suppress
77

8-
try:
8+
if sys.version_info >= (3, 10):
99
from zipfile import Path as ZipPath # type: ignore
10-
except ImportError:
10+
else:
1111
from zipp import Path as ZipPath # type: ignore
1212

1313

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ packages = find_namespace:
2222
include_package_data = true
2323
python_requires = >=3.6
2424
install_requires =
25-
zipp >= 0.4; python_version < '3.8'
25+
zipp >= 3.1.0; python_version < '3.10'
2626
setup_requires = setuptools_scm[toml] >= 3.4.1
2727

2828
[options.packages.find]

0 commit comments

Comments
 (0)