From 634bc1a31a3fed8aac91d45a8824e2802de6c384 Mon Sep 17 00:00:00 2001 From: Jan Richter Date: Thu, 10 Oct 2024 09:49:28 +0200 Subject: [PATCH] MarkupSafe requirement for html plugin This adds markupsafe<3.0.0 requirements to html plugin, because markupsafe-3.0.0 can't be installed with older versions of setuptools on RHEL9 and other systems because of `CCompilerError`. We need to add the same requirement to `ansible` plugin, because it would try to install markupsafe-3.0.0 Reference: #6038 Signed-off-by: Jan Richter --- optional_plugins/ansible/setup.py | 1 + optional_plugins/html/setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/optional_plugins/ansible/setup.py b/optional_plugins/ansible/setup.py index e41d2ca55f..e61fe7823b 100644 --- a/optional_plugins/ansible/setup.py +++ b/optional_plugins/ansible/setup.py @@ -41,6 +41,7 @@ "cffi", "pycparser", "ansible-core", + "markupsafe<3.0.0", ], test_suite="tests", entry_points={ diff --git a/optional_plugins/html/setup.py b/optional_plugins/html/setup.py index ee9933d241..5d594cd51a 100644 --- a/optional_plugins/html/setup.py +++ b/optional_plugins/html/setup.py @@ -39,7 +39,7 @@ def get_long_description(): url="http://avocado-framework.github.io/", packages=find_packages(), include_package_data=True, - install_requires=[f"avocado-framework=={VERSION}", "jinja2"], + install_requires=[f"avocado-framework=={VERSION}", "jinja2", "markupsafe<3.0.0"], entry_points={ "avocado.plugins.cli": [ "html = avocado_result_html:HTML",