component(developer/golang-123): Add Component
[oi-userland.git] / components / python / anyio / patches / 01-no-trio.patch
blob99e056b965a0e6a8e3fed4584122c7907664601f
1 We have no trio packaged yet.
2 https://github.com/python-trio/trio/issues/1437
4 --- anyio-4.2.0/src/anyio/_core/_eventloop.py.orig
5 +++ anyio-4.2.0/src/anyio/_core/_eventloop.py
6 @@ -19,7 +19,7 @@
7 from ..abc import AsyncBackend
9 # This must be updated when new backends are introduced
10 -BACKENDS = "asyncio", "trio"
11 +BACKENDS = "asyncio",
13 T_Retval = TypeVar("T_Retval")
14 PosArgsT = TypeVarTuple("PosArgsT")
15 --- anyio-4.2.0/pyproject.toml.orig
16 +++ anyio-4.2.0/pyproject.toml
17 @@ -43,7 +43,6 @@
18 [project.optional-dependencies]
19 trio = ["trio >= 0.23"]
20 test = [
21 - "anyio[trio]",
22 "coverage[toml] >= 7",
23 "exceptiongroup >= 1.2.0",
24 "hypothesis >= 4.0",
25 --- anyio-4.2.0/tests/test_taskgroups.py.orig
26 +++ anyio-4.2.0/tests/test_taskgroups.py
27 @@ -67,7 +67,6 @@
28 "module",
30 pytest.param(asyncio, id="asyncio"),
31 - pytest.param(pytest.importorskip("trio"), id="trio"),
34 def test_run_natively(module: Any) -> None:
35 --- anyio-4.2.0/tests/conftest.py.orig
36 +++ anyio-4.2.0/tests/conftest.py
37 @@ -40,7 +40,6 @@
38 marks=uvloop_marks,
39 id="asyncio+uvloop",
41 - pytest.param("trio"),
44 def anyio_backend(request: SubRequest) -> tuple[str, dict[str, Any]]: