From eae46e3ec7ca397a9742060db909e2388ce16d5f Mon Sep 17 00:00:00 2001 From: Stepan Burlakov Date: Thu, 7 Sep 2023 13:36:32 +0300 Subject: [PATCH 1/3] remove redundant hack --- src/firebolt/client/client.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/firebolt/client/client.py b/src/firebolt/client/client.py index c341e82cc01..bee05787834 100644 --- a/src/firebolt/client/client.py +++ b/src/firebolt/client/client.py @@ -1,6 +1,5 @@ from typing import Any, Optional -from anyio._core._eventloop import get_asynclib from async_property import async_cached_property # type: ignore from httpx import URL from httpx import AsyncClient as HttpxAsyncClient @@ -22,15 +21,6 @@ mixin_for, ) -# Explicitly import all available backend not get into -# anyio race condition during backend import -for backend in ("asyncio", "trio"): - try: - get_asynclib(backend) - except ModuleNotFoundError: - # Not all backends might be installed - pass - FireboltClientMixinBase = mixin_for(HttpxClient) # type: Any From 6eab009db1ab6d8ceab2e818f1def1ac576e8d3c Mon Sep 17 00:00:00 2001 From: Stepan Burlakov Date: Thu, 7 Sep 2023 13:37:07 +0300 Subject: [PATCH 2/3] release anyio version --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 582523acd53..81c187155b6 100755 --- a/setup.cfg +++ b/setup.cfg @@ -24,7 +24,7 @@ project_urls = packages = find: install_requires = aiorwlock==1.1.0 - anyio<4.0.0 + anyio>=4.0.0 appdirs>=1.4.4 appdirs-stubs>=0.1.0 async-generator>=1.10 From 62aff2743e7ff35a019fd67e4d7854f01990f424 Mon Sep 17 00:00:00 2001 From: Stepan Burlakov Date: Thu, 7 Sep 2023 13:44:51 +0300 Subject: [PATCH 3/3] lower minimal version --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 81c187155b6..578c4812fbd 100755 --- a/setup.cfg +++ b/setup.cfg @@ -24,7 +24,7 @@ project_urls = packages = find: install_requires = aiorwlock==1.1.0 - anyio>=4.0.0 + anyio>=3.7.1 appdirs>=1.4.4 appdirs-stubs>=0.1.0 async-generator>=1.10