Skip to content

Commit

Permalink
Make typing_extensions conditional to Python < 3.8 (#2062)
Browse files Browse the repository at this point in the history
All the typing features used by redis-py are available in Python 3.8+,
so typing_extensions is not used at all in newer versions of Python.
Adjust the dependencies accordingly.
  • Loading branch information
mgorny authored Mar 31, 2022
1 parent ef4caf5 commit 9cfcaa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
async-timeout>=4.0.2
deprecated>=1.2.3
packaging>=20.4
typing-extensions
typing-extensions; python_version<"3.8"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"deprecated>=1.2.3",
"packaging>=20.4",
'importlib-metadata >= 1.0; python_version < "3.8"',
"typing-extensions",
'typing-extensions; python_version<"3.8"',
"async-timeout>=4.0.2",
],
classifiers=[
Expand Down

0 comments on commit 9cfcaa4

Please sign in to comment.