Skip to content

Commit

Permalink
Rely on importlib_metadata for Python 3.9 and earlier. Fixes pypa#630.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 27, 2023
1 parent e4795c2 commit fa21abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies = [
"pyproject_hooks",
# not actually a runtime dependency, only supplied as there is not "recommended dependency" support
'colorama; os_name == "nt"',
'importlib-metadata >= 0.22; python_version < "3.8"',
'importlib-metadata >= 4.6; python_version < "3.10"',
'tomli >= 1.1.0; python_version < "3.11"',
]

Expand Down
2 changes: 1 addition & 1 deletion src/build/_importlib.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys


if sys.version_info >= (3, 8):
if sys.version_info >= (3, 10):
from importlib import metadata
else:
import importlib_metadata as metadata
Expand Down

0 comments on commit fa21abb

Please sign in to comment.