Skip to content

Commit

Permalink
Add Python version specifiers to [core] dependencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgorny committed Jul 19, 2024
1 parent fbba8de commit 8608d38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions newsfragments/4492.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Now backports in ``core`` dependencies are installed only on Python versions requiring them.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,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
Expand Down

0 comments on commit 8608d38

Please sign in to comment.