user [email protected]
usertags 1143752 + python3.15
tags 1143752 + patch
thanks
Hi!
While rebuilding the python related packages against the Python 3.15rc1
version we found that fastapi fails to build from source [1].
To fix the error, I had to apply the upstream patch that adds httpx2
test dependency [2] and then add httpx2 as a build-dependency.
I applied the upstream fix in the sandbox [3] to be able to build the
packages that depend on fastapi, please consider applying the patch to
support the upcoming 3.15 version.
Happy hacking,
[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4545140/
[2]:
https://github.com/fastapi/fastapi/commit/59d4a80fcf8a7b3a46b2560f75dc0d171e7ea8ff
[3]: https://debusine.debian.net/debian/r-python-python3.15/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
From 59d4a80fcf8a7b3a46b2560f75dc0d171e7ea8ff Mon Sep 17 00:00:00 2001
From: Yurii Motov <[email protected]>
Date: Wed, 27 May 2026 12:47:28 +0200
Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20`httpx2`=20test=20dependency?=
=?UTF-8?q?=20to=20avoid=20deprecation=20warning=20(#15603)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../test_header_param_models/test_tutorial001.py | 5 ++++-
.../test_header_param_models/test_tutorial003.py | 9 +++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial001.py b/tests/test_tutorial/test_header_param_models/test_tutorial001.py
index 8391bd119..cc274cd64 100644
--- a/tests/test_tutorial/test_header_param_models/test_tutorial001.py
+++ b/tests/test_tutorial/test_header_param_models/test_tutorial001.py
@@ -1,6 +1,7 @@
import importlib
import pytest
+from dirty_equals import IsOneOf
from fastapi.testclient import TestClient
from inline_snapshot import snapshot
@@ -68,7 +69,9 @@ def test_header_param_model_invalid(client: TestClient):
"x_tag": [],
"host": "testserver",
"accept": "*/*",
- "accept-encoding": "gzip, deflate",
+ "accept-encoding": IsOneOf(
+ "gzip, deflate", "gzip, deflate, zstd"
+ ),
"connection": "keep-alive",
"user-agent": "testclient",
},
diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial003.py b/tests/test_tutorial/test_header_param_models/test_tutorial003.py
index 7d0da24fd..de2fb87ec 100644
--- a/tests/test_tutorial/test_header_param_models/test_tutorial003.py
+++ b/tests/test_tutorial/test_header_param_models/test_tutorial003.py
@@ -1,6 +1,7 @@
import importlib
import pytest
+from dirty_equals import IsOneOf
from fastapi.testclient import TestClient
from inline_snapshot import snapshot
@@ -66,7 +67,9 @@ def test_header_param_model_no_underscore(client: TestClient):
"traceparent": "123",
"x_tag": [],
"accept": "*/*",
- "accept-encoding": "gzip, deflate",
+ "accept-encoding": IsOneOf(
+ "gzip, deflate", "gzip, deflate, zstd"
+ ),
"connection": "keep-alive",
"user-agent": "testclient",
"save-data": "true",
@@ -105,7 +108,9 @@ def test_header_param_model_invalid(client: TestClient):
"x_tag": [],
"host": "testserver",
"accept": "*/*",
- "accept-encoding": "gzip, deflate",
+ "accept-encoding": IsOneOf(
+ "gzip, deflate", "gzip, deflate, zstd"
+ ),
"connection": "keep-alive",
"user-agent": "testclient",
},
--
2.53.0