vapid fails due to dependency issue (includes solution)
I tried to generate keys, as documented on docs/WebPush but got stuck because of this issue: https://github.com/web-push-libs/vapid/issues/105
/usr/local/lib/python3.13/site-packages/py_vapid/__init__.py:200: CryptographyDeprecationWarning: Curve argument must be an instance of an EllipticCurve class. Did you pass a class by mistake? This will be an exception in a future version of cryptography
The solution a simpler way to generate vapid keys use this script is here: https://gist.github.com/Tobiaqs/450a4516ae44813792b7d84028c366c0
Maybe this could be solved just with a docs update?
@jamaalscarlett has this issue been resolved?
Hello @miky-rola, I have stepped away from the community for a few months and just got back. Would be looking into this.
I can see someone had yet raised an MR to resolve the issue on the vapid lib, so at best we would do a doc update for now, and revert when upstream is resolved.
alright, just pushed out a doc fix here:
https://github.com/jazzband/django-push-notifications/pull/793
cc @wolframkriesing