Skip to content

Conversation

kaxil
Copy link

@kaxil kaxil commented Oct 17, 2025

Hi, Apache Airflow committer here 👋 . We are using retryhttp as one of our dependency. We found out that when installed, retryhttp brings in requests too -- which we don't use it in Airflow project -- which adds 30+mb memory footprint as mentioned in this PR. While the README.md here says we don't need both httpx and requests -- it still lists both as required deps. This PR fixes it.

Changes:

  • Move httpx and requests from core dependencies to optional extras
  • Add 'all' extra for users who want both libraries
  • Update README to reflect new installation instructions
  • Update noxfile to install both extras for testing

Previously, both httpx and requests were always installed even when users only wanted one library. Now users can install only what they need:

  • retryhttp[all] for both libraries
  • retryhttp[httpx] for httpx only
  • retryhttp[requests] for requests only

… and requests

- Move httpx and requests from core dependencies to optional extras
- Add 'all' extra for users who want both libraries
- Update README to reflect new installation instructions
- Update noxfile to install both extras for testing

Previously, both httpx and requests were always installed even when users
only wanted one library. Now users can install only what they need:
- retryhttp[all] for both libraries
- retryhttp[httpx] for httpx only
- retryhttp[requests] for requests only
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.

1 participant