Commit Graph

115 Commits

Author SHA1 Message Date
Christopher Viel c289cdbfe6 Copy subscription before altering the keys.
Altering subscriptions reference by changing the keys from string to
byte causes hard to debug issues in libraries. For exemple, trying to
call `json.dumps()` after initializing `WebPusher` throws an error
because json cannot handle bytes.
2018-01-03 14:58:23 -05:00
jrconlin 1db719e153 chore: version bump 2017-12-18 09:56:51 -08:00
JR Conlin 079d075934 Merge pull request #83 from exponea/Add-option-to-use-requests.Session
Add option to use requests.session
2017-12-14 15:15:09 -06:00
Matej Vetrak ed692794c1 Fix pep8 errors 2017-12-14 13:16:41 +01:00
Matej Vetrak b3f8bb387c Add test for requests session 2017-12-14 12:59:09 +01:00
Matej Vetrak 29a27a1478 Add option to use requests.Session object 2017-12-14 12:49:00 +01:00
jrconlin cb00ae0482 bug: merge fail 2017-12-04 15:31:40 -08:00
jrconlin f7e887cfee Merge branch 'bug/crypto' 2017-12-04 15:04:14 -08:00
jrconlin 5e1614519b chore: version bump
Update dependencies and use latest vapid library calls
2017-12-04 15:03:02 -08:00
jrconlin 5aa3905e06 bug: update to use vapid 'from_string' function
remove crypto upper version limit
bump py-vapid base version
2017-12-04 14:55:18 -08:00
jrconlin c4a551f023 version bump 2017-07-26 08:51:05 -07:00
JR Conlin d67fbf7a68 Merge pull request #72 from jbouzekri/requests-timeout
add requests timeout parameter
2017-07-26 08:49:51 -07:00
JR Conlin 02798a707f Merge pull request #73 from jbouzekri/travis-python3
add python 3.4 and 3.5 to travis
2017-07-26 08:48:47 -07:00
Jonathan Bouzekri 747411d2ce add python 3.4 and 3.5 to travis 2017-07-26 10:46:35 +02:00
Jonathan Bouzekri 95d1056aff add requests timeout parameter 2017-07-26 10:40:10 +02:00
JR Conlin 13c46a77ab Merge pull request #59 from web-push-libs/bug/58
bug: baseline to cryptography 1.8.2
2017-06-08 08:03:07 -07:00
jrconlin e8709021a4 bug: baseline to cryptography 1.8.2
closes #58
2017-06-07 14:05:51 -07:00
JR Conlin 937539f824 Merge pull request #57 from perosb/cryptodep
use cryptography==1.8.2
2017-06-05 07:46:59 -07:00
Per Osbäck da017a592b use cryptography==1.8.2
Fixed a compilation bug affecting OpenSSL 1.1.0f.
Use py-vapid to 1.2.4 which uses cryptography==1.8.2
2017-06-05 07:53:38 +02:00
jr conlin 3a9c907a7e chore requirements version check
closes #56
2017-05-26 10:43:37 -07:00
jr conlin 6a6e26872e Merge branch 'master' of github.com:web-push-libs/pywebpush 2017-05-26 10:28:06 -07:00
jrconlin ccc500464c Update py-vapid requirements (now that it's been proofed for gcm) 2017-05-23 15:02:55 -07:00
JR Conlin 5e8ff2bb29 Merge pull request #55 from web-push-libs/vapid_update
Vapid update
2017-05-15 09:27:22 -07:00
jrconlin d8d4a637f4 This fix addresses an incompatibility with Chrome 2017-05-15 09:19:18 -07:00
JR Conlin dabda6732f Merge pull request #54 from Flimm/fix-rst-again
Fix RST again
2017-05-12 16:35:41 -07:00
jr conlin aad9528a2b Merge branch 'master' of github.com:web-push-libs/pywebpush 2017-05-12 15:20:49 -07:00
David D Lowe 8f81f70b17 Make convert_readme.sh script check the output 2017-05-11 10:01:22 +01:00
David D Lowe 4a247f0fc1 Make README.rst acceptable to PyPI's website
When running a check against README.rst, I got these errors:

    warning: check: Cannot analyze code. No Pygments lexer found for "commandline". (line 87)
    warning: check: Cannot analyze code. No Pygments lexer found for "pythonstub". (line 93)

I had previously ignored them, because they were just warnings.

However, according to this link, usage of non-builtin lexers will cause
the RST to not be recognised by PyPI.

https://github.com/twolfson/restructuredtext-lint/tree/0.14.2#pypi-issues
2017-05-11 09:59:40 +01:00
JR Conlin a09368e0b3 Merge pull request #53 from web-push-libs/feat/49
feat: update to use Cryptography library
2017-05-10 16:34:00 -07:00
jrconlin b528da62d4 feat: update to use Cryptography library
* uses lastest ece(1.7.2) and vapid libraries (1.2.1)
* Will attempt to autofill vapid `aud` from the endpoint if VAPID
requested
* Allows for the older `'aesgcm'` and newer, albeit not as widely
supported `'aes128gcm'` encryption content types.
* Includes fixes provided by https://github.com/Flimm

NOTE: Currently BLOCKED due to
https://github.com/martinthomson/encrypted-content-encoding/issues/36

closes: #49, #48, #42
2017-05-10 16:24:03 -07:00
jr conlin 1f3c5bc979 Merge branch 'master' of github.com:web-push-libs/pywebpush 2017-04-27 20:06:12 -07:00
JR Conlin f529e757dc Merge pull request #45 from web-push-libs/feat/44
feat: Allow VAPID with [gf]cm
2017-03-22 11:22:54 -07:00
jrconlin 56ffe9f840 feat: Allow VAPID with [gf]cm
* added primative CLI
* dump as curl

closes #44
2017-03-21 20:21:11 -07:00
jr conlin 06e4f3c37a Merge branch 'master' of github.com:web-push-libs/pywebpush 2017-02-23 19:36:06 -08:00
JR Conlin 2c4c1fd843 Merge pull request #34 from web-push-libs/feat/33
feat: update to http-ece 0.6.4 (with draft-06 support)
2017-02-14 14:57:30 -08:00
jrconlin 585de11b26 Merge branch 'master' of github.com:web-push-libs/pywebpush into feat/33 2017-02-14 14:54:48 -08:00
jrconlin ac3322f653 feat: update to http-ece 0.6.4 (with draft-06 support)
use new "content_type" argument to specify either "aesgcm" (draft-01)
or "aes128gcm" (draft-04).

NOTE: Not all clients yet support Draft-04.

closes #33
2017-02-14 14:47:24 -08:00
jr conlin 0e3af3c0f4 feat: Allow empty payloads
closes #40
2017-02-14 14:46:33 -08:00
Rémy HUBSCHER 7460dc0794 Update badge repository names. 2017-02-14 14:46:25 -08:00
Rémy HUBSCHER 60ed1303fb Add the Python3 classifiers. 2017-02-14 14:46:13 -08:00
Rémy HUBSCHER a018d06750 Run tests with Python3.6 on travis. 2017-02-14 14:45:59 -08:00
jr conlin b2e621c798 feat: Allow empty payloads
closes #40
2017-02-14 13:23:47 -08:00
Rémy HUBSCHER 0d015c28b9 Update badge repository names. 2017-02-14 13:23:47 -08:00
Rémy HUBSCHER 8c10b6425d Add the Python3 classifiers. 2017-02-14 13:23:47 -08:00
Rémy HUBSCHER 759245413a Run tests with Python3.6 on travis. 2017-02-14 13:23:47 -08:00
JR Conlin 2c99e0bd91 Merge pull request #41 from web-push-libs/feat/40
feat: Allow empty payloads
2017-02-14 12:55:26 -08:00
jr conlin 77a52f4f17 feat: Allow empty payloads
closes #40
2017-02-14 10:51:23 -08:00
JR Conlin 945326553c Merge pull request #39 from Natim/update-badge
Update badge repository names.
2017-02-10 09:57:06 -08:00
JR Conlin 7527cde053 Merge pull request #38 from Natim/run-tests-with-python36
Run tests with Python3.6 on travis.
2017-02-10 09:56:32 -08:00
Rémy HUBSCHER e62bcac75d Update badge repository names. 2017-02-10 14:38:13 +01:00