Skip to content

Commit 8608d38

Browse files
committed
Add Python version specifiers to [core] dependencies
Add Python version specifiers to importlib_metadata, importlib_resources and tomli dependencies, to require them only on Python versions on which they are actually used.
1 parent fbba8de commit 8608d38

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

newsfragments/4492.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Now backports in ``core`` dependencies are installed only on Python versions requiring them.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ core = [
107107
"ordered-set>=3.1.1",
108108
"more_itertools>=8.8",
109109
"jaraco.text>=3.7",
110-
"importlib_resources>=5.10.2",
111-
"importlib_metadata>=6",
112-
"tomli>=2.0.1",
110+
"importlib_resources>=5.10.2; python_version < '3.9'",
111+
"importlib_metadata>=6; python_version < '3.10'",
112+
"tomli>=2.0.1; python_version < '3.11'",
113113
"wheel>=0.43.0",
114114

115115
# pkg_resources

0 commit comments

Comments
 (0)