Pr0Ger / PyAPNs2

Python library for interacting with the Apple Push Notification service (APNs) via HTTP/2 protocol
MIT License
343 stars 177 forks source link

apns2 0.7.2 requires PyJWT<2.0.0,>=1.4.0, but you have pyjwt 2.1.0 which is incompatible. #133

Open aabanaag opened 3 years ago

aabanaag commented 3 years ago

setup.py was updated but it seems that it didn't apply properly still gets an error if PyJWT is 2.1.0

babus commented 3 years ago

@aabanaag Did you install from pypi or master branch? The changes from master branch are not yet released in pypi. I'm too waiting for the author to release the same.

alimirjahani7 commented 3 years ago

@Pr0Ger Can you please release the master?

aabanaag commented 3 years ago

@aabanaag Did you install from pypi or master branch? The changes from master branch are not yet released in pypi. I'm too waiting for the author to release the same.

from pypi

anhphamt commented 3 years ago

Can someone help with a work-around here? I got the same issue.

AlexJMohr commented 2 years ago

Hey @Pr0Ger, please release an update to PyPi

nik13 commented 2 years ago

Same issue. Please push update to pypi!

andrewsanchez commented 2 years ago

You can pin your dependencies to specific commit. For example, using poetry: https://python-poetry.org/docs/dependency-specification/#git-dependencies

levinotik commented 2 years ago

Bump. Can you push a new release to PyPI please?

levinotik commented 2 years ago

@andrewsanchez do you by chance know how to specify a specific commit as a dependency when using a requirements.in file with pip-tools?

AlexJMohr commented 2 years ago

@levinotik

# requirements.in
apns2 @ git+https://github.com/Pr0Ger/PyAPNs2.git@5e4a938

output:

# requirements.txt
apns2 @ git+https://github.com/Pr0Ger/PyAPNs2.git@5e4a938
    # via -r requirements.in
cffi==1.15.0
    # via cryptography
cryptography==36.0.0
    # via apns2
h2==2.6.2
    # via hyper
hpack==3.0.0
    # via h2
hyper==0.7.0
    # via apns2
hyperframe==3.2.0
    # via
    #   h2
    #   hyper
pycparser==2.21
    # via cffi
pyjwt==2.3.0
    # via apns2
madhavSoni commented 2 years ago

Any status on this issue? We were using Django Push notifications which depends on this library but have another library that requires a PyJWT greater than 2.0. Any thoughts or suggestions on how to proceed and have everything compatible?

johney4415 commented 2 years ago

there have some strange the latest version 0.7.2 required pyjwt = ">=2.0.0" in toml file but 0.7.2 release note and pypi required pyjwt < 2.0.0

harikvpy commented 1 year ago

+1

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

daveisfera commented 1 year ago

This is still an issue

DanielSchiavini commented 1 year ago

+1

AzikDeveloper commented 1 year ago

Any status on this ?

biiit commented 10 months ago

In case you use pipenv I was able to install it with the specific master branch commit with the following command:

pipenv install "git+https://git@github.com/Pr0Ger/PyAPNs2.git@aac4bd3494670b8090774cb051798cfac5e0ed6a#egg=apns2"
Cair06 commented 8 months ago

This is still an issue

itayAmza commented 8 months ago

A temporary solution In my requirements.txt:

# django-push-notifications==3.0.2
# Point temporaraly to a forked version of django-push-notifications with support for aioapns, to avoid using unamaintained apns2
git+https://github.com/pomali/django-push-notifications.git@master#egg=django-push-notifications
aioapns==3.1

Seems to fix the issue. Just make sure that git is installed in your environment, In my case, docker container, I had to add RUN apk add --no-cache git to my DockerFile

ssyberg commented 6 months ago

still an issue!

usgitAz commented 6 months ago

still an issue!!!!!!

CoderMungan commented 1 month ago

have any update ?

pangyifish commented 1 month ago

Pls 🥺🥺🥺🥺❤️❤️❤️❤️❤️

JelleZijlstra commented 1 month ago

I just released https://pypi.org/project/compat-fork-apns2/ based on the master branch of this repo; it works with pyjwt 2. Feel free to use it if you would like to use apns2 with pyjwt 2.

Unfortunately it still doesn't work with Python 3.10 and higher and that's harder to fix (compat-fork/pyapns2#3).