Skip to content

Commit 9f0614d

Browse files
authored
Merge branch 'main' into patch-1
2 parents a666057 + 7e4d8e2 commit 9f0614d

File tree

9 files changed

+22
-15
lines changed

9 files changed

+22
-15
lines changed

.github/workflows/test-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
python3 -m pip install --upgrade pip
8585
8686
- name: Install CPython dependencies
87-
if: "!contains(matrix.python-version, 'pypy') && matrix.architecture != 'x86'"
87+
if: "!contains(matrix.python-version, 'pypy') && !contains(matrix.python-version, '3.14') && matrix.architecture != 'x86'"
8888
run: |
8989
python3 -m pip install PyQt6
9090
@@ -98,8 +98,8 @@ jobs:
9898
choco install nasm --no-progress
9999
echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
100100
101-
choco install ghostscript --version=10.5.0 --no-progress
102-
echo "C:\Program Files\gs\gs10.05.0\bin" >> $env:GITHUB_PATH
101+
choco install ghostscript --version=10.5.1 --no-progress
102+
echo "C:\Program Files\gs\gs10.05.1\bin" >> $env:GITHUB_PATH
103103
104104
# Install extra test images
105105
xcopy /S /Y Tests\test-images\* Tests\images

.github/workflows/wheels-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ARCHIVE_SDIR=pillow-depends-main
3838

3939
# Package versions for fresh source builds
4040
FREETYPE_VERSION=2.13.3
41-
HARFBUZZ_VERSION=11.1.0
41+
HARFBUZZ_VERSION=11.2.1
4242
LIBPNG_VERSION=1.6.47
4343
JPEGTURBO_VERSION=3.1.0
4444
OPENJPEG_VERSION=2.5.3

.github/zizmor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Configuration for the zizmor static analysis tool, run via pre-commit in CI
2+
# https://woodruffw.github.io/zizmor/configuration/
3+
rules:
4+
unpinned-uses:
5+
config:
6+
policies:
7+
"*": ref-pin

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.11.4
3+
rev: v0.11.8
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
@@ -24,7 +24,7 @@ repos:
2424
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$)
2525

2626
- repo: https://github.com/pre-commit/mirrors-clang-format
27-
rev: v20.1.0
27+
rev: v20.1.3
2828
hooks:
2929
- id: clang-format
3030
types: [c]
@@ -51,14 +51,14 @@ repos:
5151
exclude: ^.github/.*TEMPLATE|^Tests/(fonts|images)/
5252

5353
- repo: https://github.com/python-jsonschema/check-jsonschema
54-
rev: 0.32.1
54+
rev: 0.33.0
5555
hooks:
5656
- id: check-github-workflows
5757
- id: check-readthedocs
5858
- id: check-renovate
5959

6060
- repo: https://github.com/woodruffw/zizmor-pre-commit
61-
rev: v1.5.2
61+
rev: v1.6.0
6262
hooks:
6363
- id: zizmor
6464

Tests/test_file_avif.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_background_from_gif(self, tmp_path: Path) -> None:
233233
with Image.open(out_gif) as reread:
234234
reread_value = reread.convert("RGB").getpixel((1, 1))
235235
difference = sum([abs(original_value[i] - reread_value[i]) for i in range(3)])
236-
assert difference <= 3
236+
assert difference <= 6
237237

238238
def test_save_single_frame(self, tmp_path: Path) -> None:
239239
temp_file = tmp_path / "temp.avif"

Tests/test_image_resample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def test_wrong_arguments(self, resample: Image.Resampling) -> None:
462462
im.resize((32, 32), resample, (20, 20, 20, 100))
463463
im.resize((32, 32), resample, (20, 20, 100, 20))
464464

465-
with pytest.raises(TypeError, match="must be sequence of length 4"):
465+
with pytest.raises(TypeError, match="must be (sequence|tuple) of length 4"):
466466
im.resize((32, 32), resample, (im.width, im.height)) # type: ignore[arg-type]
467467

468468
with pytest.raises(ValueError, match="can't be negative"):

depends/install_libavif.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -eo pipefail
33

4-
version=1.2.1
4+
version=1.3.0
55

66
./download-and-extract.sh libavif-$version https://github.com/AOMediaCodec/libavif/archive/refs/tags/v$version.tar.gz
77

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_version() -> str:
4646
ZLIB_ROOT = None
4747
FUZZING_BUILD = "LIB_FUZZING_ENGINE" in os.environ
4848

49-
if sys.platform == "win32" and sys.version_info >= (3, 14):
49+
if sys.platform == "win32" and sys.version_info >= (3, 15):
5050
import atexit
5151

5252
atexit.register(

winbuild/build_prepare.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def cmd_msbuild(
113113
"BROTLI": "1.1.0",
114114
"FREETYPE": "2.13.3",
115115
"FRIBIDI": "1.0.16",
116-
"HARFBUZZ": "11.1.0",
116+
"HARFBUZZ": "11.2.1",
117117
"JPEGTURBO": "3.1.0",
118118
"LCMS2": "2.17",
119-
"LIBAVIF": "1.2.1",
119+
"LIBAVIF": "1.3.0",
120120
"LIBIMAGEQUANT": "4.3.4",
121121
"LIBPNG": "1.6.47",
122122
"LIBWEBP": "1.5.0",
@@ -389,6 +389,7 @@ def cmd_msbuild(
389389
"filename": f"libavif-{V['LIBAVIF']}.zip",
390390
"license": "LICENSE",
391391
"build": [
392+
"rustup update",
392393
f"{sys.executable} -m pip install meson",
393394
*cmds_cmake(
394395
"avif_static",
@@ -399,7 +400,6 @@ def cmd_msbuild(
399400
"-DAVIF_CODEC_DAV1D=LOCAL",
400401
"-DAVIF_CODEC_RAV1E=LOCAL",
401402
"-DAVIF_CODEC_SVT=LOCAL",
402-
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
403403
),
404404
cmd_xcopy("include", "{inc_dir}"),
405405
],

0 commit comments

Comments
 (0)