Skip to content

Commit ddcaa81

Browse files
committed
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: deeplook/svglib#421
1 parent fe1dbcf commit ddcaa81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ dependencies = [
1919
"django>=3.2",
2020
"django-polymorphic",
2121
"easy-thumbnails[svg]",
22+
23+
# Pin svglib to a version below 1.6.0.
24+
# The latest version (1.6.0) adds pycairo as a dependency,
25+
# which requires system-level libraries and fails to install in the container.
26+
# This can be removed once the issue is resolved.
27+
# See: https://github.com/deeplook/svglib/issues/421
28+
"svglib~=1.5.1"
2229
]
2330
classifiers = [
2431
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)