From a4cd2aabb4c04cc77db1c67509fcde48a4bc65ca Mon Sep 17 00:00:00 2001 From: Jan Richter Date: Fri, 3 Jan 2025 15:33:54 +0100 Subject: [PATCH] resultsdb-api support on 3.8 fix The resultsdb-api uses urllib as dependency. The urllib dropped support for the python 3.8 in the version 2.3.0. Let's use older version of urllib to keep python 3.8 support for resultsdb plugin. Reference: https://urllib3.readthedocs.io/en/stable/changelog.html#deprecations-and-removals Signed-off-by: Jan Richter --- optional_plugins/resultsdb/setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/optional_plugins/resultsdb/setup.py b/optional_plugins/resultsdb/setup.py index 83c3e28b13..f81cb4dbef 100644 --- a/optional_plugins/resultsdb/setup.py +++ b/optional_plugins/resultsdb/setup.py @@ -47,7 +47,11 @@ def get_long_description(): url="http://avocado-framework.github.io/", packages=packages, include_package_data=True, - install_requires=[f"avocado-framework=={VERSION}", "resultsdb-api==2.1.5"], + install_requires=[ + f"avocado-framework=={VERSION}", + "resultsdb-api==2.1.5", + "urllib3<2.3.0; python_version < '3.9'", + ], entry_points={ "avocado.plugins.cli": [ "resultsdb = avocado_resultsdb.resultsdb:ResultsdbCLI",