diff --git a/newsfragments/4492.misc.rst b/newsfragments/4492.misc.rst new file mode 100644 index 0000000000..9da07e43f9 --- /dev/null +++ b/newsfragments/4492.misc.rst @@ -0,0 +1 @@ +Now backports in ``core`` dependencies are installed only on Python versions requiring them. diff --git a/pyproject.toml b/pyproject.toml index db64f2bebd..717431bd81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,9 +110,9 @@ core = [ "ordered-set>=3.1.1", "more_itertools>=8.8", "jaraco.text>=3.7", - "importlib_resources>=5.10.2", - "importlib_metadata>=6", - "tomli>=2.0.1", + "importlib_resources>=5.10.2; python_version < '3.9'", + "importlib_metadata>=6; python_version < '3.10'", + "tomli>=2.0.1; python_version < '3.11'", "wheel>=0.43.0", # pkg_resources