From 5aa3905e06b11dba53b524db429e38b2f94dda2c Mon Sep 17 00:00:00 2001 From: jrconlin Date: Mon, 4 Dec 2017 14:53:42 -0800 Subject: [PATCH] bug: update to use vapid 'from_string' function remove crypto upper version limit bump py-vapid base version --- pywebpush/__init__.py | 2 +- requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pywebpush/__init__.py b/pywebpush/__init__.py index c99ff2a..3fda91e 100644 --- a/pywebpush/__init__.py +++ b/pywebpush/__init__.py @@ -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, diff --git a/requirements.txt b/requirements.txt index eb76a81..fcbcbc9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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