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

fix: update urllib3 to >= 2.0.5 #1389

Merged
merged 3 commits into from
Sep 26, 2023
Merged

fix: update urllib3 to >= 2.0.5 #1389

merged 3 commits into from
Sep 26, 2023

Conversation

arithmetic1728
Copy link
Contributor

fixes #1365

urllib3 added back the pyopenssl support and removed the depreciation warning since 2.0.5, so we can upgrade the urllib3 dependency version now.

urllib3 made RequestMethods class private since 2.0.0 (changed from urllib3.request.RequestMethods to urllib3._request_methods.RequestMethods). We could copy the whole class and the related code into google-auth, but that would be a lot of code, so we let AuthorizedHttp inherit the private class instead, which seems to be the best solution so far.

@arithmetic1728 arithmetic1728 merged commit a99f3bb into main Sep 26, 2023
14 checks passed
@arithmetic1728 arithmetic1728 deleted the urllib3 branch September 26, 2023 21:00
@danmoz
Copy link

danmoz commented Sep 27, 2023

Just a heads up, this is going to cause a lot of pain -- some major packages (for example, botocore) in the python ecosystem require urllib3<2.0. By requiring a version >= 2.0.5, we'll create an unresolvable dependency conflict.

An example of this is botocore, which pins to <1.27

@arithmetic1728
Copy link
Contributor Author

@danmoz thank you for the heads up, I will fix it asap.

@arithmetic1728
Copy link
Contributor Author

problem is fixed in release 2.23.2, #1391

hauntsaninja added a commit to hauntsaninja/python that referenced this pull request Oct 4, 2023
This was added in kubernetes-client@27459d5.

Note that google-auth now requires urllib3>=2 in googleapis/google-auth-library-python#1389

(I'm also not sure that I follow the logic in kubernetes-client#2105, since dependency resolvers will be able to work it out)
dirrao pushed a commit to dirrao/python that referenced this pull request Nov 28, 2023
This was added in kubernetes-client@27459d5.

Note that google-auth now requires urllib3>=2 in googleapis/google-auth-library-python#1389

(I'm also not sure that I follow the logic in kubernetes-client#2105, since dependency resolvers will be able to work it out)
bh717 pushed a commit to bh717/python-dapp that referenced this pull request Apr 1, 2024
This was added in kubernetes-client/python@27459d5.

Note that google-auth now requires urllib3>=2 in googleapis/google-auth-library-python#1389

(I'm also not sure that I follow the logic in kubernetes-client/python#2105, since dependency resolvers will be able to work it out)
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.

Support for urllib3 2
3 participants