Closed ali-gholami-aiven closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.12%. Comparing base (
1c6ce95
) to head (a315de8
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @ali-gholami-aiven @aiven-sal quick question about this one
are we saying that, in this PR, v6.0.1 is no longer usable with Python 3.11.0? That is what I'm on rn, and bc of this block in valkey/asyncio/connection.py
if sys.version_info >= (3, 11, 3):
from asyncio import timeout as async_timeout
else:
from async_timeout import timeout as async_timeout
this code now fails by trying to import an async_timeout that doesn't exist. Which is fine, I can upgrade all my systems up in Python version but just wanted to get a recommendation here
Hey @nirav-ark-biotech,
Hmm that sounds odd. It should be usable still.
Does it help if you do pip install async_timeout
first?
EDIT: Sorry I probably misunderstood the problem here. Could you run the python RESP and try to execute
from asyncio import timeout as async_timeout
? Will this work for you?
yeah that works I'll just pip install async timeout first, which fixes it. maybe all this codebase needs is a documentation update
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
Pull Request check-list
Description of change