From 76d21423da8fb02022822fda16f0976895c317e1 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 3 Mar 2026 11:11:07 +0100 Subject: [PATCH] Fix tests by adding dependency constraint We are currently having CI failures because there are some issues with transitive dependencies. It is already fixed upstream but not release yet. We temporarily restrict chardet version to < 6 in tests to avoid these warnings. Signed-off-by: Leandro Lucarella --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 74414668..ddcc19ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,6 +110,9 @@ dev-pytest = [ "cookiecutter == 2.6.0", # For checking the cookiecutter scripts "jinja2 == 3.1.6", # For checking the cookiecutter scripts "sybil >= 6.1.1, < 10", # Should be consistent with the extra-lint-examples dependency + # This is a hack to overcome an outdated version check in requests, see + # https://github.com/frequenz-floss/frequenz-repo-config-python/issues/527 + "chardet < 6", ] dev = [ "frequenz-repo-config[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",