From 085818bef582ffb9e0c8b237b84bf77972f5ce50 Mon Sep 17 00:00:00 2001 From: James Page Date: Thu, 18 Jul 2024 10:15:02 +0100 Subject: [PATCH 1/2] 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. --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 51adeaf4..59895d8c 100644 --- a/setup.py +++ b/setup.py @@ -31,9 +31,11 @@ include_package_data=True, install_requires=[ 'numpy', 'requests', - 'jwcrypto', - 'redis', ], + extras_requires={ + 'redis': ['redis'], + 'jwt': ['jwcrypto'], + }, zip_safe=False, entry_points={ 'console_scripts': [ From ac7ba514ef8ec375e2afb8f69aaedfba7a9a47e7 Mon Sep 17 00:00:00 2001 From: James Page Date: Thu, 18 Jul 2024 10:18:42 +0100 Subject: [PATCH 2/2] Add jwcrypto to test requirements. --- test-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test-requirements.txt b/test-requirements.txt index 4eeff976..2609d674 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,4 +2,5 @@ mock nose2 six redis +jwcrypto wrapt<=1.12.1;python_version<="3.4"