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

Switch from hyper to httpx (for Python 3.10 support) #149

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

salty-horse
Copy link

@salty-horse salty-horse commented Oct 29, 2022

Hyper is unmaintained and no longer compatible with recent Python releases. This PR switches to the httpx library.

It's based on the work done in this PR, which only added support for certificate-based authentication, and adds support for credentials-based authentication.

I've only tested the credentials-based authentication, with Python 3.10 (not 3.11). I assume the certificate authentication is used by the original author. As mentioned in the other PR, request multiplexing isn't supported by httpx, so it was removed.

The tests has not been updated with the library switch, so they fail.
If this is merged, I suggest squashing the commits.

smorgan-brainomix and others added 2 commits August 4, 2022 12:32
* ES-7755 Simple HTTPX implementation

* ES-7755 Add http2 extras to httpx
@CNKCQ
Copy link

CNKCQ commented Nov 20, 2022

error msg -- KeyError: '{"reason":"MissingProviderToken"}'

@salty-horse
Copy link
Author

@CNKCQ Can you provide some more context? Can you share a code sample of how you're using the library? Does it work with the published version of the package?

apns2/client.py Outdated Show resolved Hide resolved
apns2/credentials.py Outdated Show resolved Hide resolved
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.

5 participants