From ddcaa817dce01d827ad479a77bf8b49510c7fab1 Mon Sep 17 00:00:00 2001 From: Payam Date: Thu, 9 Oct 2025 23:46:06 +0400 Subject: [PATCH 1/2] fix(deps): Pin svglib to 1.5.1 due to pycairo installation failure (#1550) The latest svglib release (1.6.0) has introduced a new dependency on pycairo, which requires system-level libraries to install correctly. This change causes the installation of easy-thumbnails[svg] to fail in environments where these libraries are not present. This commit pins svglib to version 1.5.1 as a temporary workaround until the upstream issue is resolved. Ref: https://github.com/deeplook/svglib/issues/421 --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 33333a085..554b17ce0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,13 @@ dependencies = [ "django>=3.2", "django-polymorphic", "easy-thumbnails[svg]", + + # Pin svglib to a version below 1.6.0. + # The latest version (1.6.0) adds pycairo as a dependency, + # which requires system-level libraries and fails to install in the container. + # This can be removed once the issue is resolved. + # See: https://github.com/deeplook/svglib/issues/421 + "svglib~=1.5.1" ] classifiers = [ "Development Status :: 5 - Production/Stable", From 02d5f403b7c10dc203e36cd1628fcb32ed72bbbc Mon Sep 17 00:00:00 2001 From: Payam Date: Fri, 10 Oct 2025 11:30:52 +0400 Subject: [PATCH 2/2] fix (build): revert flake8 version update because of incampatability with pyproject-flake8 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 671e08a00..c9b60f1e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: # args: [--target-version, "2.2"] - repo: https://github.com/PyCQA/flake8 - rev: 7.3.0 + rev: 7.0.0 hooks: - id: flake8 entry: pflake8