Skip to content

Conversation

@kaxil
Copy link
Contributor

@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
@kaxil
Copy link
Contributor Author

kaxil commented Oct 22, 2025

@austind Any chance to get this in and have a released version this week?

No worries if not -- just need to know since we are releasing Airflow 3.1.1 and 3.1.2 soon

@austind
Copy link
Owner

austind commented Oct 23, 2025

@kaxil Should have a release in the next few minutes. thanks for the contribution!

@austind austind merged commit 9a5a875 into austind:develop Oct 23, 2025
1 check passed
@austind austind mentioned this pull request Oct 23, 2025
austind added a commit that referenced this pull request Oct 23, 2025
* Add Python 3.13 support, drop 3.8 (#29)

* Fix optional dependencies to avoid forcing installation of both httpx and requests (#26)

- 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

* Add support for aiohttp (#28)

Co-authored-by: Austin de Coup-Crank <austindcc@gmail.com>

* Release v1.4.0

---------

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
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