From d095608f2bf752c87ca7cf77e0b8b8037bf29797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 24 Mar 2022 10:44:57 +0100 Subject: [PATCH] Make typing_extensions conditional to Python < 3.8 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. --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 7f0ebf0c69..c40eca70e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ async-timeout>=4.0.2 deprecated>=1.2.3 packaging>=20.4 -typing-extensions +typing-extensions; python_version<"3.8" diff --git a/setup.py b/setup.py index a3293addb2..0e7b1f5801 100644 --- a/setup.py +++ b/setup.py @@ -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=[