Skip to content

Update to use HTTPX2#1

Merged
CasperWA merged 5 commits into
developfrom
cwa/use-httpx2
Jun 2, 2026
Merged

Update to use HTTPX2#1
CasperWA merged 5 commits into
developfrom
cwa/use-httpx2

Conversation

@CasperWA

@CasperWA CasperWA commented Jun 2, 2026

Copy link
Copy Markdown

AI Summary

This pull request migrates the codebase from httpx to httpx2, updates the package/module naming accordingly, and introduces several improvements to project configuration and developer tooling. The migration affects all authentication classes and AWS4Auth, ensuring compatibility with httpx2 and its API. Additionally, the pre-commit hooks and CI workflows are modernized, and documentation and licensing are updated.

Key changes include:

Migration to httpx2 and Package Renaming

  • All authentication classes (Basic, HeaderApiKey, QueryApiKey, etc.) and AWS4Auth are updated to use httpx2 instead of httpx, including type annotations, imports, and class inheritance. The package is renamed from httpx_auth to httpx2_auth throughout the codebase. (httpx2_auth/_authentication.py, httpx2_auth/_aws.py, httpx2_auth/__init__.py, [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

  • The main module and all import paths are renamed from httpx_auth to httpx2_auth, and the test workflow and packaging scripts are updated to use the new name. (.github/workflows/test.yml, .github/workflows/test.ymlL3-R47)

Developer Tooling and CI Enhancements

  • The pre-commit configuration is expanded to include general hygiene hooks, pyupgrade, black, blacken-docs, ruff, bandit, and mypy for improved code quality, security, and formatting. (.pre-commit-config.yaml, .pre-commit-config.yamlL2-R69)

  • The GitHub Actions test workflow is updated to only run on pushes to master and pull requests, drops Python 3.9 support, and switches all references from httpx_auth to httpx2_auth. (.github/workflows/test.yml, .github/workflows/test.ymlL3-R47)

Documentation and Licensing

  • Minor formatting improvements are made to CONTRIBUTING.md for consistency in list formatting. (CONTRIBUTING.md, [1] [2]

  • The license is updated to extend the copyright years to 2026. (LICENSE, LICENSEL3-R3)

  • The Jekyll theme setting is removed from _config.yml, possibly to defer to a default or external configuration. (_config.yml, _config.ymlL1)

CasperWA added 3 commits June 2, 2026 10:46
Rename package and project name.
Update README.
Update dependencies - add pre-commit in a new 'dev' extra.
Remove Python 3.9 support.
Update related dev tools' configuration.

Run all dev tools and update code base for automatic fixes.
Utilized Claude Opus 4.8 to mitigate the pre-commit dev tool errors and
update the test suite as well.
Manually updated test suite's imports of httpx -> httpx2 and
pytest_httpx -> pytest_httpx2.
@CasperWA
CasperWA requested a review from Copilot June 2, 2026 11:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@CasperWA
CasperWA merged commit ebfc179 into develop Jun 2, 2026
8 checks passed
@CasperWA
CasperWA deleted the cwa/use-httpx2 branch June 2, 2026 11:45
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.

2 participants