From 9ca34b97dd1e30cb3da48a1fdfcd556b8a82da57 Mon Sep 17 00:00:00 2001 From: Marcel Telka <marcel@telka.sk> Date: Thu, 21 Dec 2023 17:25:58 +0100 Subject: [PATCH] python/httpx: update to 0.26.0 --- components/python/httpx/patches/01-no-trio.patch | 31 ++++++++++++++++++++++++++++--- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/components/python/httpx/patches/01-no-trio.patch b/components/python/httpx/patches/01-no-trio.patch index 5ae6e69..5bc3048 100644 --- a/components/python/httpx/patches/01-no-trio.patch +++ b/components/python/httpx/patches/01-no-trio.patch @@ -1,8 +1,8 @@ We have no trio pacakged yet. ---- httpx-0.25.2/pyproject.toml.orig -+++ httpx-0.25.2/pyproject.toml -@@ -119,8 +119,6 @@ +--- httpx-0.26.0/pyproject.toml.orig ++++ httpx-0.26.0/pyproject.toml +@@ -115,8 +115,6 @@ filterwarnings = [ "error", "ignore: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.:RuntimeWarning", @@ -11,3 +11,28 @@ ] markers = [ "copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup", +--- httpx-0.26.0/requirements.txt.orig ++++ httpx-0.26.0/requirements.txt +@@ -25,7 +25,5 @@ + types-certifi==2021.10.8.2 + pytest==7.4.3 + ruff==0.1.6 +-trio==0.22.2 +-trio-typing==0.10.0 + trustme==1.1.0 + uvicorn==0.24.0.post1 +--- httpx-0.26.0/tests/concurrency.py.orig ++++ httpx-0.26.0/tests/concurrency.py +@@ -5,11 +5,7 @@ + import asyncio + + import sniffio +-import trio + + + async def sleep(seconds: float) -> None: +- if sniffio.current_async_library() == "trio": +- await trio.sleep(seconds) # pragma: no cover +- else: +- await asyncio.sleep(seconds) ++ await asyncio.sleep(seconds) -- Gitblit v1.9.3