Skip to content

Commit e8937e8

Browse files
authored
Pin svglib to a version below 1.6.0 (#1550) (#1551)
* 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 * fix (build): revert flake8 version update because of incampatability with pyproject-flake8
1 parent fe1dbcf commit e8937e8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
# args: [--target-version, "2.2"]
2222

2323
- repo: https://github.com/PyCQA/flake8
24-
rev: 7.3.0
24+
rev: 7.0.0
2525
hooks:
2626
- id: flake8
2727
entry: pflake8

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)