From 937c9346e25b03226677fe3870b4577ea9262e07 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 12 Oct 2022 09:03:58 +0200 Subject: [PATCH] Disable JQ, see if it still passes tests --- Dockerfile | 5 +++++ ..._jq_selector.py => DISABLED_test_jsonpath_jq_selector.py} | 0 requirements.txt | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) rename changedetectionio/tests/{test_jsonpath_jq_selector.py => DISABLED_test_jsonpath_jq_selector.py} (100%) diff --git a/Dockerfile b/Dockerfile index 24d3490e..d422918e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,11 @@ RUN pip install --target=/dependencies -r /requirements.txt RUN pip install --target=/dependencies playwright~=1.26 \ || echo "WARN: Failed to install Playwright. The application can still run, but the Playwright option will be disabled." + +RUN pip install --target=/dependencies jq~=1.3 \ + || echo "WARN: Failed to install JQ. The application can still run, but the Jq: filter option will be disabled." + + # Final image stage FROM python:3.8-slim diff --git a/changedetectionio/tests/test_jsonpath_jq_selector.py b/changedetectionio/tests/DISABLED_test_jsonpath_jq_selector.py similarity index 100% rename from changedetectionio/tests/test_jsonpath_jq_selector.py rename to changedetectionio/tests/DISABLED_test_jsonpath_jq_selector.py diff --git a/requirements.txt b/requirements.txt index 68aabe9a..bffc2a7f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,8 @@ chardet > 2.3.0 wtforms ~= 3.0 jsonpath-ng ~= 1.5.3 -jq ~= 1.3.0 + +# jq not available on Windows so must be installed manually # Notification library apprise ~= 1.1.0