Skip to content

Commit db02304

Browse files
committed
Rely on importlib_metadata for Python 3.9 and earlier. Fixes pypa#630.
1 parent 7d7bee9 commit db02304

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"pyproject_hooks",
3737
# not actually a runtime dependency, only supplied as there is not "recommended dependency" support
3838
'colorama; os_name == "nt"',
39-
'importlib-metadata >= 0.22; python_version < "3.8"',
39+
'importlib-metadata >= 4.6; python_version < "3.10"',
4040
'tomli >= 1.1.0; python_version < "3.11"',
4141
]
4242

src/build/_importlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22

33

4-
if sys.version_info >= (3, 8):
4+
if sys.version_info >= (3, 10):
55
from importlib import metadata
66
else:
77
import importlib_metadata as metadata

0 commit comments

Comments
 (0)