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

Update proxy argument in httpx Client/AsyncClient #1447

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aschollmeier-gcmlp
Copy link

@TB99930
Copy link

TB99930 commented Dec 11, 2024

This looks good to me. Just needs @mvantellingen to merge when he gets a chance. Releasing this soon is important because anyone installing zeep[async] currently has a completely broken experience without this change.

@@ -183,15 +183,17 @@ def __init__(

self._close_session = False
self.cache = cache
proxy_kwarg_name = "proxy" if httpx.__version__ >= "0.26.0" else "proxies"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong check version, example

>>> "0.3.0" >= "0.26.0"
True

need to do something like this

>>> import packaging.version
>>> packaging.version.parse("0.3.0") >= packaging.version.parse("0.26.0")
False

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you. I updated the version check.

@imperiuse
Copy link

This looks good to me. Just needs @mvantellingen to merge when he gets a chance. Releasing this soon is important because anyone installing zeep[async] currently has a completely broken experience without this change.

At least one person is waiting for this—me. =)
I encountered this problem today... =(

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.

Incompatibility with httpx 0.28.0
4 participants