Make dependencies for Token plugins optional

redis and jwcrypto are not required to use websockify so configure
these as optional requirements for specific features (redis, jwt)
rather than always installing.
This commit is contained in:
James Page 2024-07-18 10:15:02 +01:00
parent 99f83ca083
commit 085818bef5
No known key found for this signature in database
GPG Key ID: BFECAECBA0E7D8C3
1 changed files with 4 additions and 2 deletions

View File

@ -31,9 +31,11 @@ setup(name=name,
include_package_data=True,
install_requires=[
'numpy', 'requests',
'jwcrypto',
'redis',
],
extras_requires={
'redis': ['redis'],
'jwt': ['jwcrypto'],
},
zip_safe=False,
entry_points={
'console_scripts': [