dask / dask-gateway

A multi-tenant server for securely deploying and managing Dask clusters.
https://gateway.dask.org/
BSD 3-Clause "New" or "Revised" License
135 stars 87 forks source link

Make dependency on async-timeout explicit and conditional to python 3.10 and older #772

Closed consideRatio closed 8 months ago

consideRatio commented 8 months ago

dask-gateway-server was depending on async-timeout without explicitly listing it as a dependency, causing it to fail installing since our dependency aiohttp removed it as an explicit dependency for python 3.11+ in https://github.com/aio-libs/aiohttp/pull/7556.

In this PR dask-gateway-server now does what aiohttp did, they transition to rely on the asyncio base library's timeout function that in Py311+, that now also act as a context manager in with statements.