PyAPNs2
PyAPNs2 copied to clipboard
apns2 0.7.2 requires PyJWT<2.0.0,>=1.4.0, but you have pyjwt 2.1.0 which is incompatible.
setup.py was updated but it seems that it didn't apply properly still gets an error if PyJWT is 2.1.0
@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.
@Pr0Ger Can you please release the master?
@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
Can someone help with a work-around here? I got the same issue.
Hey @Pr0Ger, please release an update to PyPi
Same issue. Please push update to pypi!
You can pin your dependencies to specific commit. For example, using poetry: https://python-poetry.org/docs/dependency-specification/#git-dependencies
Bump. Can you push a new release to PyPI please?
@andrewsanchez do you by chance know how to specify a specific commit as a dependency when using a requirements.in
file with pip-tools
?
@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
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?
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
+1
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
+1
Any status on this ?
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://[email protected]/Pr0Ger/PyAPNs2.git@aac4bd3494670b8090774cb051798cfac5e0ed6a#egg=apns2"
This is still an issue
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
still an issue!
still an issue!!!!!!