Control: tags 1143752 + patch
Control: tags 1143752 + pending

Dear maintainer,

I've prepared an NMU for fastapi (versioned as 0.135.3-1.1) and
uploaded it to DELAYED/5. Diff is attached.

Please feel free to tell me if I should cancel it.

Best regards,

Sven

-- 
GPG Fingerprint
3DF5 E8AA 43FC 9FDF D086 F195 ADF5 0EDA F8AD D585
diff -Nru fastapi-0.135.3/debian/changelog fastapi-0.135.3/debian/changelog
--- fastapi-0.135.3/debian/changelog	2026-04-14 06:38:17.000000000 +0200
+++ fastapi-0.135.3/debian/changelog	2026-09-10 21:56:01.000000000 +0200
@@ -1,3 +1,12 @@
+fastapi (0.135.3-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add httpx2 test dependency (Closes: #1143752)
+    - debian/control: Add B-D python3-httpx2
+    - debian/patches/*: Add patch to make proper use of httpx2
+
+ -- Sven Geuer <[email protected]>  Thu, 10 Sep 2026 21:56:01 +0200
+
 fastapi (0.135.3-1) unstable; urgency=medium
 
   * New upstream release; Closes: #1132860
diff -Nru fastapi-0.135.3/debian/control fastapi-0.135.3/debian/control
--- fastapi-0.135.3/debian/control	2026-04-14 06:38:17.000000000 +0200
+++ fastapi-0.135.3/debian/control	2026-09-10 21:56:01.000000000 +0200
@@ -14,6 +14,7 @@
                python3-email-validator <!nocheck>,
                python3-flask <!nocheck>,
                python3-httpx (>= 0.23.1) <!nocheck>,
+               python3-httpx2 <!nocheck>,
                python3-inline-snapshot <!nocheck>,
                python3-jwt <!nocheck>,
                python3-multipart (<< 0.1) | python3-python-multipart <!nocheck>,
diff -Nru fastapi-0.135.3/debian/patches/httpx2-test-dependency.patch fastapi-0.135.3/debian/patches/httpx2-test-dependency.patch
--- fastapi-0.135.3/debian/patches/httpx2-test-dependency.patch	1970-01-01 01:00:00.000000000 +0100
+++ fastapi-0.135.3/debian/patches/httpx2-test-dependency.patch	2026-09-10 21:56:01.000000000 +0200
@@ -0,0 +1,70 @@
+Description: Add httpx2 test dependency
+Author: Sven Geuer <[email protected]>
+Origin: backport, https://github.com/fastapi/fastapi/commit/59d4a80
+Bug-Debian: https://bugs.debian.org/1143752
+Forwarded: not-needed
+Applied-Upstream: 0.137.0, https://github.com/fastapi/fastapi/commit/9a9c4ad
+Last-Update: 2026-09-10
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -148,6 +148,7 @@
+ ]
+ docs-tests = [
+     "httpx >=0.23.0,<1.0.0",
++    "httpx2>=2.0.0",
+     "ruff >=0.14.14",
+     # For UJSONResponse
+     "ujson >=5.8.0",
+--- 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 @@
+                         "x_tag": [],
+                         "host": "testserver",
+                         "accept": "*/*",
+-                        "accept-encoding": "gzip, deflate",
++                        "accept-encoding": IsOneOf(
++                            "gzip, deflate", "gzip, deflate, zstd"
++                        ),
+                         "connection": "keep-alive",
+                         "user-agent": "testclient",
+                     },
+--- 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 @@
+                         "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 @@
+                         "x_tag": [],
+                         "host": "testserver",
+                         "accept": "*/*",
+-                        "accept-encoding": "gzip, deflate",
++                        "accept-encoding": IsOneOf(
++                            "gzip, deflate", "gzip, deflate, zstd"
++                        ),
+                         "connection": "keep-alive",
+                         "user-agent": "testclient",
+                     },
diff -Nru fastapi-0.135.3/debian/patches/series fastapi-0.135.3/debian/patches/series
--- fastapi-0.135.3/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ fastapi-0.135.3/debian/patches/series	2026-09-10 21:56:01.000000000 +0200
@@ -0,0 +1 @@
+httpx2-test-dependency.patch

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to