Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace requests with httpx #15846

Closed
wants to merge 1 commit into from

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented May 14, 2021

This change replaces requests with httpx in the providers
that are derived from http provider. This change is related
to #15781 and was introduced initially to handle problem
described in:

https://issues.apache.org/jira/browse/LEGAL-572

However since we have a PR in progress to make chardet
an optional dependency in requests library

psf/requests#5797

and changing requests to http introduced backwards-incompatibility,
we might decide not to merge this PR - depending on how
quickly (if) requests library adopts the change.

Providers affected:

  • http
  • airbyte
  • apache.livy
  • opsgenie
  • slack

Depends on #15781


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@github-actions
Copy link

The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*.

@github-actions
Copy link

The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*.

@potiuk potiuk force-pushed the replace-requests-with-httpx branch from 5ed42b2 to 79505d7 Compare May 17, 2021 12:46
This change replaces `requests` with httpx in the providers
that are derived from http provider. This change is related
to apache#15781 and was introduced initially to handle problem
described in:

https://issues.apache.org/jira/browse/LEGAL-572

However since we have a PR in progress to make chardet
an optional dependency in `requests` library

psf/requests#5797

and changing `requests` to `http` introduced backwards-incompatibility,
we might decide not to merge this PR - depending on how
quickly (if) `requests` library adopts the change.

Providers affected:

* http
* airbyte
* apache.livy
* opsgenie
* slack

Depends on apache#15781
@potiuk potiuk force-pushed the replace-requests-with-httpx branch from 79505d7 to 4ba6f91 Compare May 17, 2021 17:00
@github-actions
Copy link

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the workflow link to check the reason.

@potiuk potiuk closed this Jul 11, 2021
@potiuk
Copy link
Member Author

potiuk commented Jul 11, 2021

Not needed after upcoming removal of chardet as mandatory dependency for requests: psf/requests#5797

@potiuk potiuk deleted the replace-requests-with-httpx branch July 29, 2022 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant