diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index a7230931..207aa4ba 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -78,7 +78,7 @@ jobs: max-parallel: 15 fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.11.1', '3.12', 'pypy-3.9', 'pypy-3.10'] test-type: ['standalone', 'cluster'] connection-type: ['libvalkey', 'plain'] protocol-version: ['2','3'] @@ -168,7 +168,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.11.1', '3.12', 'pypy-3.9', 'pypy-3.10'] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/requirements.txt b/requirements.txt index cdfdc493..c919607e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -async-timeout>=4.0.3; python_version<"3.11" +async-timeout>=4.0.3; python_version<"3.11.3" diff --git a/setup.py b/setup.py index 87a86377..a388c95a 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.11"', + 'async-timeout>=4.0.3; python_version<"3.11.3"', ], classifiers=[ "Development Status :: 5 - Production/Stable", diff --git a/valkey/_parsers/base.py b/valkey/_parsers/base.py index 0f9b10b1..f3af7ecc 100644 --- a/valkey/_parsers/base.py +++ b/valkey/_parsers/base.py @@ -3,7 +3,7 @@ from asyncio import IncompleteReadError, StreamReader, TimeoutError from typing import List, Optional, Union -if sys.version_info.major >= 3 and sys.version_info.minor >= 11: +if sys.version_info >= (3, 11, 3): from asyncio import timeout as async_timeout else: from async_timeout import timeout as async_timeout diff --git a/valkey/_parsers/libvalkey.py b/valkey/_parsers/libvalkey.py index ecd96a68..bf91c82c 100644 --- a/valkey/_parsers/libvalkey.py +++ b/valkey/_parsers/libvalkey.py @@ -3,7 +3,7 @@ import sys from typing import Callable, List, Optional, TypedDict, Union -if sys.version_info.major >= 3 and sys.version_info.minor >= 11: +if sys.version_info >= (3, 11, 3): from asyncio import timeout as async_timeout else: from async_timeout import timeout as async_timeout