summaryrefslogtreecommitdiff
path: root/dev-python/httpx
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-02-17 06:53:57 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-02-17 06:53:57 +0000
commit6c84bfcad2d05e619190e2b5c5d99230d7eefe42 (patch)
tree3982ae16c24a5f83d7559c7d0b275a3e2f7f7c16 /dev-python/httpx
parent165886e7f909438909cedb202ba33f49304be278 (diff)
downloadbaldeagleos-repo-6c84bfcad2d05e619190e2b5c5d99230d7eefe42.tar.gz
baldeagleos-repo-6c84bfcad2d05e619190e2b5c5d99230d7eefe42.tar.xz
baldeagleos-repo-6c84bfcad2d05e619190e2b5c5d99230d7eefe42.zip
Adding metadata
Diffstat (limited to 'dev-python/httpx')
-rw-r--r--dev-python/httpx/files/httpx-0.28.1-httptools-test.patch13
-rw-r--r--dev-python/httpx/httpx-0.28.1.ebuild7
2 files changed, 18 insertions, 2 deletions
diff --git a/dev-python/httpx/files/httpx-0.28.1-httptools-test.patch b/dev-python/httpx/files/httpx-0.28.1-httptools-test.patch
new file mode 100644
index 000000000000..2170c3674647
--- /dev/null
+++ b/dev-python/httpx/files/httpx-0.28.1-httptools-test.patch
@@ -0,0 +1,13 @@
+diff --git a/tests/conftest.py b/tests/conftest.py
+index 970c353..1ea3aa9 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -304,7 +304,7 @@ def serve_in_thread(server: Server):
+
+ @pytest.fixture(scope="session")
+ def server() -> typing.Iterator[TestServer]:
+- config = Config(app=app, lifespan="off", loop="asyncio")
++ config = Config(app=app, lifespan="off", loop="asyncio", http="h11")
+ server = TestServer(config=config)
+ yield from serve_in_thread(server)
+
diff --git a/dev-python/httpx/httpx-0.28.1.ebuild b/dev-python/httpx/httpx-0.28.1.ebuild
index b246271f74c9..b7b30c90caeb 100644
--- a/dev-python/httpx/httpx-0.28.1.ebuild
+++ b/dev-python/httpx/httpx-0.28.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -52,7 +52,6 @@ BDEPEND="
$(python_gen_cond_dep '
dev-python/trio[${PYTHON_USEDEP}]
' 3.{10..13})
- !!dev-python/httptools[${PYTHON_USEDEP}]
)
"
@@ -61,6 +60,10 @@ distutils_enable_tests pytest
src_prepare() {
local PATCHES=(
"${FILESDIR}/${PN}-0.27.0-opt-trio.patch"
+ # fix test failures when httptools are installed
+ # https://github.com/encode/httpx/discussions/3429
+ # https://gitlab.archlinux.org/archlinux/packaging/packages/python-httpx/-/blob/main/uvicorn-test-server-use-h11.diff
+ "${FILESDIR}/${PN}-0.28.1-httptools-test.patch"
)
if ! use cli; then