Skip to content

Commit cd21afb

Browse files
authored
Merge branch 'main' into has_characters
2 parents acc4816 + d411196 commit cd21afb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+518
-329
lines changed

.ci/requirements-cibw.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cibuildwheel==3.3.0
1+
cibuildwheel==3.3.1

.ci/requirements-mypy.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mypy==1.19.0
1+
mypy==1.19.1
22
arro3-compute
33
arro3-core
44
IceSpringPySideStubs-PyQt6
@@ -9,7 +9,6 @@ packaging
99
pyarrow-stubs
1010
pybind11
1111
pytest
12-
sphinx
1312
types-atheris
1413
types-defusedxml
1514
types-olefile

.github/renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"labels": [
77
"Dependency"
88
],
9+
"minimumReleaseAge": "7 days",
910
"packageRules": [
1011
{
1112
"groupName": "github-actions",

.github/workflows/cifuzz.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
language: python
4545
dry-run: false
4646
- name: Upload New Crash
47-
uses: actions/upload-artifact@v5
47+
uses: actions/upload-artifact@v6
4848
if: failure() && steps.build.outcome == 'success'
4949
with:
5050
name: artifacts
5151
path: ./out/artifacts
5252
- name: Upload Legacy Crash
53-
uses: actions/upload-artifact@v5
53+
uses: actions/upload-artifact@v6
5454
if: steps.run.outcome == 'success'
5555
with:
5656
name: crash

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: python3 .github/workflows/system-info.py
5050

5151
- name: Cache libimagequant
52-
uses: actions/cache@v4
52+
uses: actions/cache@v5
5353
id: cache-libimagequant
5454
with:
5555
path: ~/cache-libimagequant

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
persist-credentials: false
2424
- uses: actions/setup-python@v6
2525
with:
26-
python-version: "3.10"
26+
python-version: "3.x"
2727
- name: Install uv
2828
uses: astral-sh/setup-uv@v7
2929
- name: Lint

.github/workflows/test-windows.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112

113113
- name: Cache build
114114
id: build-cache
115-
uses: actions/cache@v4
115+
uses: actions/cache@v5
116116
with:
117117
path: winbuild\build
118118
key:
@@ -188,8 +188,9 @@ jobs:
188188
# trim ~150MB for each job
189189
- name: Optimize build cache
190190
if: steps.build-cache.outputs.cache-hit != 'true'
191-
run: rmdir /S /Q winbuild\build\src
192-
shell: cmd
191+
run: |
192+
rm -rf winbuild\build\src
193+
shell: bash
193194

194195
- name: Build Pillow
195196
run: |
@@ -206,9 +207,7 @@ jobs:
206207
207208
- name: Test Pillow
208209
run: |
209-
path %GITHUB_WORKSPACE%\winbuild\build\bin;%PATH%
210210
.ci\test.cmd
211-
shell: cmd
212211
213212
- name: Prepare to upload errors
214213
if: failure()
@@ -217,7 +216,7 @@ jobs:
217216
shell: bash
218217

219218
- name: Upload errors
220-
uses: actions/upload-artifact@v5
219+
uses: actions/upload-artifact@v6
221220
if: failure()
222221
with:
223222
name: errors

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ concurrency:
2929
env:
3030
COVERAGE_CORE: sysmon
3131
FORCE_COLOR: 1
32+
PIP_DISABLE_PIP_VERSION_CHECK: 1
3233

3334
jobs:
3435
build:
@@ -92,7 +93,7 @@ jobs:
9293

9394
- name: Cache libimagequant
9495
if: startsWith(matrix.os, 'ubuntu')
95-
uses: actions/cache@v4
96+
uses: actions/cache@v5
9697
id: cache-libimagequant
9798
with:
9899
path: ~/cache-libimagequant
@@ -143,7 +144,7 @@ jobs:
143144
mkdir -p Tests/errors
144145
145146
- name: Upload errors
146-
uses: actions/upload-artifact@v5
147+
uses: actions/upload-artifact@v6
147148
if: failure()
148149
with:
149150
name: errors

.github/workflows/wheels-dependencies.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ if [[ -n "$IOS_SDK" ]]; then
9595
else
9696
FREETYPE_VERSION=2.14.1
9797
fi
98-
HARFBUZZ_VERSION=12.3.0
99-
LIBPNG_VERSION=1.6.53
98+
HARFBUZZ_VERSION=12.3.2
99+
LIBPNG_VERSION=1.6.54
100100
JPEGTURBO_VERSION=3.1.3
101101
OPENJPEG_VERSION=2.5.4
102102
XZ_VERSION=5.8.2
103103
ZSTD_VERSION=1.5.7
104104
TIFF_VERSION=4.7.1
105-
LCMS2_VERSION=2.17
106-
ZLIB_NG_VERSION=2.3.2
105+
LCMS2_VERSION=2.18
106+
ZLIB_NG_VERSION=2.3.3
107107
LIBWEBP_VERSION=1.6.0
108108
BZIP2_VERSION=1.0.8
109109
LIBXCB_VERSION=1.17.0
@@ -267,7 +267,7 @@ function build {
267267

268268
build_simple xcb-proto 1.17.0 https://xorg.freedesktop.org/archive/individual/proto
269269
if [[ -n "$IS_MACOS" ]]; then
270-
build_simple xorgproto 2024.1 https://www.x.org/pub/individual/proto
270+
build_simple xorgproto 2025.1 https://www.x.org/pub/individual/proto
271271
build_simple libXau 1.0.12 https://www.x.org/pub/individual/lib
272272
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
273273
else

.github/workflows/wheels.yml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
135135
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macosx_deployment_target }}
136136

137-
- uses: actions/upload-artifact@v5
137+
- uses: actions/upload-artifact@v6
138138
with:
139139
name: dist-${{ matrix.name }}
140140
path: ./wheelhouse/*.whl
@@ -186,24 +186,18 @@ jobs:
186186

187187
- name: Build wheels
188188
run: |
189-
setlocal EnableDelayedExpansion
190-
for %%f in (winbuild\build\license\*) do (
191-
set x=%%~nf
192-
rem Skip FriBiDi license, it is not included in the wheel.
193-
set fribidi=!x:~0,7!
194-
if NOT !fribidi!==fribidi (
195-
rem Skip imagequant license, it is not included in the wheel.
196-
set libimagequant=!x:~0,13!
197-
if NOT !libimagequant!==libimagequant (
198-
echo. >> LICENSE
199-
echo ===== %%~nf ===== >> LICENSE
200-
echo. >> LICENSE
201-
type %%f >> LICENSE
202-
)
203-
)
204-
)
205-
call winbuild\\build\\build_env.cmd
206-
%pythonLocation%\python.exe -m cibuildwheel . --output-dir wheelhouse
189+
for f in winbuild/build/license/*; do
190+
name=$(basename "${f%.*}")
191+
# Skip FriBiDi license, it is not included in the wheel.
192+
[[ $name == fribidi* ]] && continue
193+
# Skip imagequant license, it is not included in the wheel.
194+
[[ $name == libimagequant* ]] && continue
195+
echo "" >> LICENSE
196+
echo "===== $name =====" >> LICENSE
197+
echo "" >> LICENSE
198+
cat "$f" >> LICENSE
199+
done
200+
cmd //c "winbuild\\build\\build_env.cmd && $pythonLocation\\python.exe -m cibuildwheel . --output-dir wheelhouse"
207201
env:
208202
CIBW_ARCHS: ${{ matrix.cibw_arch }}
209203
CIBW_BEFORE_ALL: "{package}\\winbuild\\build\\build_dep_all.cmd"
@@ -217,16 +211,16 @@ jobs:
217211
-e CI -e GITHUB_ACTIONS
218212
mcr.microsoft.com/windows/servercore:ltsc2022
219213
powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
220-
shell: cmd
214+
shell: bash
221215

222216
- name: Upload wheels
223-
uses: actions/upload-artifact@v5
217+
uses: actions/upload-artifact@v6
224218
with:
225219
name: dist-windows-${{ matrix.cibw_arch }}
226220
path: ./wheelhouse/*.whl
227221

228222
- name: Upload fribidi.dll
229-
uses: actions/upload-artifact@v5
223+
uses: actions/upload-artifact@v6
230224
with:
231225
name: fribidi-windows-${{ matrix.cibw_arch }}
232226
path: winbuild\build\bin\fribidi*
@@ -246,7 +240,7 @@ jobs:
246240

247241
- run: make sdist
248242

249-
- uses: actions/upload-artifact@v5
243+
- uses: actions/upload-artifact@v6
250244
with:
251245
name: dist-sdist
252246
path: dist/*.tar.gz
@@ -256,7 +250,7 @@ jobs:
256250
runs-on: ubuntu-latest
257251
name: Count dists
258252
steps:
259-
- uses: actions/download-artifact@v6
253+
- uses: actions/download-artifact@v7
260254
with:
261255
pattern: dist-*
262256
path: dist
@@ -275,13 +269,13 @@ jobs:
275269
runs-on: ubuntu-latest
276270
name: Upload wheels to scientific-python-nightly-wheels
277271
steps:
278-
- uses: actions/download-artifact@v6
272+
- uses: actions/download-artifact@v7
279273
with:
280274
pattern: dist-!(sdist)*
281275
path: dist
282276
merge-multiple: true
283277
- name: Upload wheels to scientific-python-nightly-wheels
284-
uses: scientific-python/upload-nightly-action@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf # 0.6.2
278+
uses: scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
285279
with:
286280
artifacts_path: dist
287281
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
@@ -297,7 +291,7 @@ jobs:
297291
permissions:
298292
id-token: write
299293
steps:
300-
- uses: actions/download-artifact@v6
294+
- uses: actions/download-artifact@v7
301295
with:
302296
pattern: dist-*
303297
path: dist

0 commit comments

Comments
 (0)