Skip to content

Get rid of requests as core dependency#15875

Closed
jhtimmins wants to merge 1 commit intomasterfrom
vendor-in-connexion-test
Closed

Get rid of requests as core dependency#15875
jhtimmins wants to merge 1 commit intomasterfrom
vendor-in-connexion-test

Conversation

@jhtimmins
Copy link
Copy Markdown
Contributor

Testing @potiuk's branch #15781 to see if rebasing it on master will cause tests to pass.

This change gets rid of requests as core dependency. We have to
change requests to become an optional dependency because it
(so far) pulls in chardet as dependency and chardet is
LGPL, which is not allowed to be mandatory dependency by
ASF policies.

More info here:

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

The changes:

* connexion is vendored-in (and requests usage is replaced with httpx)
* Http Provider is turned into optional provider (not preinstalled)
* Few places where requests were used in core and in cloud_sql provider
  which did not cause compatibility problem, it was replaced by httpx.
* new extra added for deprecated experimental API (which is disabled
  by default and optional)
* tests are fixed (using pytest-httpx fixture package)
* The providers: http, airbyte, apache.livy, opsgenie, slack (all depend
  on http) now explicitely depend on `requirements`.
@jhtimmins jhtimmins force-pushed the vendor-in-connexion-test branch from bd8c596 to e239ac1 Compare May 15, 2021 20:08
@potiuk
Copy link
Copy Markdown
Member

potiuk commented May 16, 2021

We seemed to have some heavy problems with our CI infra. I am going to take a look at that today and fix as soon as the current MAJOR OUTAGE of Github Actions is solved :( https://www.githubstatus.com/incidents/zbpwygxwb3gw

@potiuk
Copy link
Copy Markdown
Member

potiuk commented May 16, 2021

Closing for now. I rebased my PR in the meantime

@potiuk potiuk closed this May 16, 2021
@ashb ashb deleted the vendor-in-connexion-test branch May 17, 2021 11:41
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.

2 participants