Removed PyJWT dependency.

PyJWT is a very brittle and cumbersome dependency that expects several
cryptography libraries to be already installed on the system, and it can
lead to hard-to-debug errors when ported to different systems.

Moreover, it installs the whole `cryptography` package, which is several
MBs in size, takes time to compile, and it requires a Rust compiler to
be present on the target machine.

Platypush will now use the Python-native `rsa` module to handle JWT
tokens.
This commit is contained in:
Fabio Manganiello 2022-11-21 12:30:38 +01:00
parent 02f89258b8
commit a2c8e27bd8
4 changed files with 45 additions and 51 deletions

View file

@ -64,8 +64,7 @@ setup(
'zeroconf>=0.27.0',
'tz',
'python-dateutil',
# 'cryptography',
'pyjwt',
'rsa',
'marshmallow',
'frozendict',
'flask',