Required by `python-mcp`, which is in turn one of dependencies of `python-mistral-vibe`. OBS-URL: https://build.opensuse.org/request/show/1327289 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx-sse?expand=0&rev=1
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
Index: httpx-sse-0.4.0/README.md
|
|
===================================================================
|
|
--- httpx-sse-0.4.0.orig/README.md
|
|
+++ httpx-sse-0.4.0/README.md
|
|
@@ -95,7 +95,7 @@ async def auth_events(request):
|
|
app = Starlette(routes=[Route("/sse/auth/", endpoint=auth_events)])
|
|
|
|
async def main():
|
|
- async with httpx.AsyncClient(app=app) as client:
|
|
+ async with httpx.AsyncClient(transport=httpx.ASGITransport(app=app)) as client:
|
|
async with aconnect_sse(
|
|
client, "GET", "http://localhost:8000/sse/auth/"
|
|
) as event_source:
|
|
Index: httpx-sse-0.4.0/tests/test_asgi.py
|
|
===================================================================
|
|
--- httpx-sse-0.4.0.orig/tests/test_asgi.py
|
|
+++ httpx-sse-0.4.0/tests/test_asgi.py
|
|
@@ -29,7 +29,7 @@ def app() -> ASGIApp:
|
|
|
|
@pytest_asyncio.fixture
|
|
async def client(app: ASGIApp) -> AsyncIterator[httpx.AsyncClient]:
|
|
- async with httpx.AsyncClient(app=app) as client:
|
|
+ async with httpx.AsyncClient(transport=httpx.ASGITransport(app=app)) as client:
|
|
yield client
|
|
|
|
|