build(deps): Replace httpx with httpx2 (DM-4106) - #2818
Open
haakonvt wants to merge 14 commits into
Open
Conversation
httpx with httpx2 (DM-4106)httpx with httpx2 (DM-4106)
Contributor
There was a problem hiding this comment.
Code Review
This pull request migrates the SDK's underlying HTTP library from httpx to httpx2 across the codebase and test suites. A critical issue was found in the Pyodide patching helper where calling get_global_async_httpx_client directly can raise a RuntimeError if no event loop is running, which can be resolved by dynamically wrapping the client getter.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2818 +/- ##
==========================================
+ Coverage 93.12% 93.13% +0.01%
==========================================
Files 516 516
Lines 53701 53686 -15
==========================================
- Hits 50008 50001 -7
+ Misses 3693 3685 -8
🚀 New features to boost your workflow:
|
Contributor
Author
|
|
haakonvt
force-pushed
the
replace-httpx-with-httpx2
branch
from
September 7, 2026 15:07
e012d51 to
d80e6d0
Compare
…rsion Verified locally against Pyodide 0.26.3 (stlite), 0.29.0, and 314.0.0.
haakonvt
force-pushed
the
replace-httpx-with-httpx2
branch
from
September 7, 2026 15:21
d80e6d0 to
87b8b79
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate SDK from unmaintained
httpxtohttpx2to resolve e.g.authlibdeprecation warnings.Changes
httpxwithhttpx2andpytest-httpxwithhttpx2-pytest.pyodide-httpxpatches in favor of nativehttpx2browser transport (httpx2-jsfetch).