-
Notifications
You must be signed in to change notification settings - Fork 179
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
hyper dependency is no longer maintained #126
Comments
also |
My conflict was with Twisted and the http2 extras installed. (Twisted[http2]) |
Also bothered by this... |
I started looking into what it would take to port from hyper -> httpx, and it's not THAT bad, but, it does take some knowledge of the innerworkings of both packages. Is anyone doing this? Now knowing hyper or httpx, I'm probably not the best person to do it, but, I do need it done . . . ;-) Thoughts? -Dave |
Yes, I know, @CodeMonk specifically says CodeMonk@a1a3d59 is completely untested and dangerous, but if anybody would have means how to test it, it would be better if the patch was known. |
I tested it, and declined the PR. Wasn't even close to a full solution. If anyone knows hyper or httpx, they could better evaluate how much the lift would be. I may have some cycles to try to improve my port later. |
@CodeMonk I have a proper testing environment (staging env with sandboxed apps to play with) and am willing to help, bcz we badly need it. What's the status on your PR? Why did you decline it? |
FYI, found 2 forks where hyper was replaced with httpx: |
Good find, @erwan-lemonnier ! Please do share your experience here if you try either of those. I took a look at the first link and the footprint appears to be reasonably small. |
pocketlabs@f1220b8 doesn’t let PyAPNs2 pass its test suite. https://github.com/karlwnw/PyAPNs2/tree/feature/httpx seems like MUCH more invasive and the last commit is still marked as WIP. |
https://github.com/CodeMonk/PyAPNs2/tree/feature/port-to-httpx is @CodeMonk's port. https://github.com/chrigu/PyAPNs2/tree/feature/httpx is another port by @chrigu Worth noting that several libraries using apns2 have switched to using https://github.com/Fatal1ty/aioapns , which only depends on |
ping everyone , has any of these ports progressed at all? |
@jayvdb I just made the parts working that I needed for my project and my port won't be developed any further. |
And we replaced PyAPNs2 with aioapns, which required a bit of extra work to make sure threads are properly initialised but works really well with python >= 3.8 |
Any chance of a release? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
There is some progress at #149 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This is still an issue |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This is still an issue |
Still an issue! |
Don't expect much to happen when you announce it's still an issue on a stale issue of an unmaintained package. You're welcome to use my PR, which works on modern versions of Python. (I suggest forking it because I can't guarantee my branch will live forever) |
Yea, looks like for anyone having this issue related to django-push-notifications, there's a fix on the verge of merge: jazzband/django-push-notifications#696 |
When migrating to python 3.11, I basically did a self-supported implementation of an apns-client based on https://gist.github.com/ajans/b56353067cc3ad8abbfb35c083ef4a5b
The method
Maybe this code-snippet might not be easy to integrate into your project, so maybe it would be better to migrate the PyAPNs2-code here or in a fork to use something like this. But since I don't have the time or energy to do it myself and don't want to constantly ask for support here, I thought it might be good idea to share these snippets with you, since PyAPNS2 helped me a lot before with the initial implementation with older python-versions and I wanted to give something back that might be helpful with these stuck dependencies. |
I started a project https://pypi.org/project/compat-fork-apns2/ aiming to update this project for newer versions of Python. Unfortunately, I don't have enough time and expertise to finish switching away from hyper, but if someone else is interested in contributing code or helping to maintain the fork, please let me know at compat-fork#3. |
As of January,
hyper
is no longer maintained:python-hyper/hyper@b77e758
The readme recommends switching to httpx
The text was updated successfully, but these errors were encountered: