Skip to content

Commit 99c1146

Browse files
authored
Merge branch 'main' into msys
2 parents dcab6e6 + 4677cf3 commit 99c1146

File tree

191 files changed

+14302
-1898
lines changed

Some content is hidden

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

191 files changed

+14302
-1898
lines changed

.ci/install.sh

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,21 @@ aptget_update()
1313
return 1
1414
fi
1515
}
16-
if [[ $(uname) != CYGWIN* ]]; then
17-
aptget_update || aptget_update retry || aptget_update retry
18-
fi
16+
aptget_update || aptget_update retry || aptget_update retry
1917

2018
set -e
2119

22-
if [[ $(uname) != CYGWIN* ]]; then
23-
sudo apt-get -qq install libfreetype6-dev liblcms2-dev libtiff-dev python3-tk\
24-
ghostscript libjpeg-turbo8-dev libopenjp2-7-dev\
25-
cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
26-
sway wl-clipboard libopenblas-dev nasm
27-
fi
20+
sudo apt-get -qq install libfreetype6-dev liblcms2-dev libtiff-dev python3-tk\
21+
ghostscript libjpeg-turbo8-dev libopenjp2-7-dev\
22+
cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
23+
sway wl-clipboard libopenblas-dev nasm
2824

2925
python3 -m pip install --upgrade pip
3026
python3 -m pip install --upgrade wheel
3127
python3 -m pip install coverage
3228
python3 -m pip install defusedxml
3329
python3 -m pip install ipython
30+
python3 -m pip install numpy
3431
python3 -m pip install olefile
3532
python3 -m pip install -U pytest
3633
python3 -m pip install -U pytest-cov
@@ -40,36 +37,24 @@ python3 -m pip install pyroma
4037
# fails on beta 3.14 and PyPy
4138
python3 -m pip install --only-binary=:all: pyarrow || true
4239

43-
if [[ $(uname) != CYGWIN* ]]; then
44-
python3 -m pip install numpy
45-
46-
# PyQt6 doesn't support PyPy3
47-
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
48-
sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
49-
# TODO Update condition when pyqt6 supports free-threading
50-
if ! [[ "$PYTHON_GIL" == "0" ]]; then python3 -m pip install pyqt6 ; fi
51-
fi
52-
53-
# Pyroma uses non-isolated build and fails with old setuptools
54-
if [[ $GHA_PYTHON_VERSION == 3.9 ]]; then
55-
# To match pyproject.toml
56-
python3 -m pip install "setuptools>=77"
57-
fi
40+
# PyQt6 doesn't support PyPy3
41+
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
42+
sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
43+
# TODO Update condition when pyqt6 supports free-threading
44+
if ! [[ "$PYTHON_GIL" == "0" ]]; then python3 -m pip install pyqt6 ; fi
45+
fi
5846

59-
# webp
60-
pushd depends && ./install_webp.sh && popd
47+
# webp
48+
pushd depends && ./install_webp.sh && popd
6149

62-
# libimagequant
63-
pushd depends && ./install_imagequant.sh && popd
50+
# libimagequant
51+
pushd depends && ./install_imagequant.sh && popd
6452

65-
# raqm
66-
pushd depends && ./install_raqm.sh && popd
53+
# raqm
54+
pushd depends && ./install_raqm.sh && popd
6755

68-
# libavif
69-
pushd depends && ./install_libavif.sh && popd
56+
# libavif
57+
pushd depends && ./install_libavif.sh && popd
7058

71-
# extra test images
72-
pushd depends && ./install_extra_test_images.sh && popd
73-
else
74-
cd depends && ./install_extra_test_images.sh && cd ..
75-
fi
59+
# extra test images
60+
pushd depends && ./install_extra_test_images.sh && popd

.ci/requirements-cibw.txt

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

.ci/requirements-mypy.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
mypy==1.16.0
1+
mypy==1.17.1
22
IceSpringPySideStubs-PyQt6
33
IceSpringPySideStubs-PySide6
44
ipython
55
numpy
66
packaging
77
pyarrow-stubs
8+
pybind11
89
pytest
910
sphinx
1011
types-atheris

.ci/test.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
python.exe -c "from PIL import Image"
22
IF ERRORLEVEL 1 EXIT /B
3-
python.exe -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests
3+
python.exe -bb -m pytest -vv -x -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests

.ci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -e
44

55
python3 -c "from PIL import Image"
66

7-
python3 -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests $REVERSE
7+
python3 -bb -m pytest -vv -x -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests $REVERSE

.coveragerc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ exclude_also =
1818

1919
[run]
2020
omit =
21-
Tests/32bit_segfault_check.py
22-
Tests/check_*.py
21+
checks/*.py
2322
Tests/createfontdatachunk.py

.github/mergify.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pull_request_rules:
88
- status-success=Docker Test Successful
99
- status-success=Windows Test Successful
1010
- status-success=MSYS2 Test Successful
11-
- status-success=Cygwin Test Successful
1211
actions:
1312
merge:
1413
method: merge

.github/workflows/test-cygwin.yml

Lines changed: 0 additions & 154 deletions
This file was deleted.

.github/workflows/test-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
python-version: ["pypy3.11", "pypy3.10", "3.10", "3.11", "3.12", "3.13", "3.14"]
38+
python-version: ["pypy3.11", "3.11", "3.12", "3.13", "3.14"]
3939
architecture: ["x64"]
4040
include:
4141
# Test the oldest Python on 32-bit
42-
- { python-version: "3.9", architecture: "x86" }
42+
- { python-version: "3.10", architecture: "x86" }
4343

4444
timeout-minutes: 45
4545

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,24 @@ jobs:
4242
]
4343
python-version: [
4444
"pypy3.11",
45-
"pypy3.10",
45+
"3.14t",
4646
"3.14",
4747
"3.13t",
4848
"3.13",
4949
"3.12",
5050
"3.11",
5151
"3.10",
52-
"3.9",
5352
]
5453
include:
55-
- { python-version: "3.11", PYTHONOPTIMIZE: 1, REVERSE: "--reverse" }
56-
- { python-version: "3.10", PYTHONOPTIMIZE: 2 }
54+
- { python-version: "3.12", PYTHONOPTIMIZE: 1, REVERSE: "--reverse" }
55+
- { python-version: "3.11", PYTHONOPTIMIZE: 2 }
5756
# Free-threaded
57+
- { python-version: "3.14t", disable-gil: true }
5858
- { python-version: "3.13t", disable-gil: true }
59-
# M1 only available for 3.10+
60-
- { os: "macos-13", python-version: "3.9" }
59+
# Intel
60+
- { os: "macos-13", python-version: "3.10" }
6161
exclude:
62-
- { os: "macos-latest", python-version: "3.9" }
62+
- { os: "macos-latest", python-version: "3.10" }
6363

6464
runs-on: ${{ matrix.os }}
6565
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)