Skip to content

Commit 66dcd4e

Browse files
jcfrFabioLuporini
andcommitted
fix: Ensure importlib_metadata runtime dependency installed with Python < 3.10
Fixes a regression introduced in 5f068d5 ("chore(build): move to scikitbuild-core (#455)", 2024-03-01) Reported-by: Agriya Khetarpal <[email protected]> Reported-by: Shizhi Tang <[email protected]> Co-authored-by: Fabio Luporini <[email protected]>
1 parent 85a457b commit 66dcd4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ classifiers = [
2424
"Topic :: Software Development :: Build Tools",
2525
"Typing :: Typed"
2626
]
27+
dependencies = [
28+
"importlib_metadata>=2.0; python_version<'3.10'",
29+
]
2730
dynamic = ["version"]
2831
requires-python = ">=3.7"
2932

@@ -37,7 +40,6 @@ Source = "https://github.com/scikit-build/cmake-python-distributions"
3740
[project.optional-dependencies]
3841
test = [
3942
"coverage>=4.2",
40-
"importlib_metadata>=2.0; python_version<'3.10'",
4143
"pytest>=3.0.3",
4244
"pytest-cov>=2.4.0",
4345
]

0 commit comments

Comments
 (0)