Skip to content

Consider migrating from httpx to httpx2 #146

Description

@chassing

Context

lightkube currently depends on httpx[http2] >= 0.28.1, < 1.0.0. The last release of httpx was in December 2024, and the project has become effectively unmaintained — issues and discussions are being closed without resolution.

The Python community is moving to httpx2, which is maintained by Pydantic Services Inc. httpx2 is API-compatible and serves as a drop-in replacement. Major projects like Starlette have already migrated, and others are following suit.

Proposal

Replace the httpx dependency with httpx2 to ensure lightkube continues to receive timely bug fixes and security updates, rather than depending on an unmaintained library.

Notes

  • httpx2 is API-compatible with httpx, so the migration should be straightforward
  • I'd be happy to submit a PR for this if you're open to the change

Would you be open to this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions