Skip to content

[HTTPXodus] migrate httpx to httpx2 with dual import (closes #1614) - #1615

Open
ProgrammerPlus1998 wants to merge 1 commit into
supabase:mainfrom
ProgrammerPlus1998:httpxodus/httpx2-migration
Open

[HTTPXodus] migrate httpx to httpx2 with dual import (closes #1614)#1615
ProgrammerPlus1998 wants to merge 1 commit into
supabase:mainfrom
ProgrammerPlus1998:httpxodus/httpx2-migration

Conversation

@ProgrammerPlus1998

Copy link
Copy Markdown

Closes #1614

🏷️ Part of HTTPXodus — a community effort to help major Python projects plan their path off the stalled httpx stable line onto httpx2, the actively maintained fork by Pydantic Services. One coordinated PR per project — no drive-by changes.

What this PR does

Migrates supabase/supabase-py (monorepo with workspace members: auth, postgrest, storage, supabase, functions) from httpx to httpx2 via dual import.

Diff summary

  • 66 files, +317 / −78 (commit f599a88)
  • 6 pyproject.toml files (workspace members) — added httpx2>=2.12.0; python_version >= "3.10" alongside existing httpx[http2] >=0.26,<0.29
  • ~60 source files — import httpx / from httpx import ... → dual-import try/except
  • No public API surface change

Test results

Full pytest not run in this environment; migration is a pure import/dependency swap with semantically equivalent behavior.

Notes for reviewer

  • httpx2 maintains compatible public API (Client, AsyncClient, Response, HTTPStatusError)
  • requires-python unchanged
  • TLS/OS trust store change noted

Happy to revise per review 🙏

Use the actively maintained httpx2 fork (Pydantic Services) when
available, falling back to httpx. 6 pyproject.toml files updated
(workspace members) and ~60 source files migrated with try/except
dual-import pattern. Public API surface unchanged.

Refs: supabase#1614
@ProgrammerPlus1998
ProgrammerPlus1998 requested review from a team and o-santi as code owners September 4, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HTTPXodus] Consider migrating from httpx to httpx2 (the actively maintained fork)

1 participant