From 1d18b16f4f3f960110acb8f4a8ba43d6513fd2c6 Mon Sep 17 00:00:00 2001 From: Ali Gholami Date: Sun, 8 Sep 2024 13:56:59 +0200 Subject: [PATCH] update python version constraint to install async-timeout. async-timeout library has effectively been upstreamed into Python 3.11+. installing it for python >= 3.11 should not be necessary. this will enable packaging valkey-py for fedora 39, which comes with python 3.12 and does not conatin async-timeout 4.0.3 package. see the deprecation notice: https://github.com/aio-libs/async-timeout?tab=readme-ov-file#deprecated --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3274a80f..cdfdc493 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -async-timeout>=4.0.3 +async-timeout>=4.0.3; python_version<"3.11" diff --git a/setup.py b/setup.py index cf07da97..1cffb6d0 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ author_email="valkey-py@lists.valkey.io", python_requires=">=3.8", install_requires=[ - 'async-timeout>=4.0.3; python_version<="3.12"', + 'async-timeout>=4.0.3; python_version<"3.11"', ], classifiers=[ "Development Status :: 5 - Production/Stable",