bug: update to use vapid 'from_string' function

remove crypto upper version limit
bump py-vapid base version
This commit is contained in:
jrconlin 2017-12-04 14:53:42 -08:00
parent c4a551f023
commit 5aa3905e06
2 changed files with 3 additions and 3 deletions

View File

@ -353,7 +353,7 @@ def webpush(subscription_info,
vv = Vapid.from_file(
private_key_file=vapid_private_key) # pragma no cover
else:
vv = Vapid.from_raw(private_raw=vapid_private_key.encode())
vv = Vapid.from_string(private_key=vapid_private_key)
vapid_headers = vv.sign(vapid_claims)
result = WebPusher(subscription_info).send(
data,

View File

@ -1,4 +1,4 @@
cryptography>=1.8.1,<1.10
cryptography>=1.8.1
http-ece>=1.0.1
requests>=2.13.0
py-vapid>=1.2.5
py-vapid>=1.3.0