Skip to content

Commit 0da7ad7

Browse files
committed
Merge branch 'main' into load_default
2 parents b1f5ee9 + ebefb5f commit 0da7ad7

134 files changed

Lines changed: 5287 additions & 466 deletions

File tree

Some content is hidden

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

.appveyor.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ environment:
2121
install:
2222
- '%PYTHON%\%EXECUTABLE% --version'
2323
- '%PYTHON%\%EXECUTABLE% -m pip install --upgrade pip'
24-
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
2524
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
26-
- 7z x pillow-depends.zip -oc:\
2725
- 7z x pillow-test-images.zip -oc:\
28-
- mv c:\pillow-depends-main c:\pillow-depends
2926
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
30-
- 7z x ..\pillow-depends\nasm-2.16.01-win64.zip -oc:\
27+
- curl -fsSL -o nasm-win64.zip https://raw.githubusercontent.com/python-pillow/pillow-depends/main/nasm-2.16.01-win64.zip
28+
- 7z x nasm-win64.zip -oc:\
3129
- choco install ghostscript --version=10.0.0.20230317
3230
- path c:\nasm-2.16.01;C:\Program Files\gs\gs10.00.0\bin;%PATH%
3331
- cd c:\pillow\winbuild\

.ci/install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [[ $(uname) != CYGWIN* ]]; then
2323
sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
2424
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
2525
cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
26-
sway wl-clipboard
26+
sway wl-clipboard libopenblas-dev
2727
fi
2828

2929
python3 -m pip install --upgrade pip
@@ -38,11 +38,10 @@ python3 -m pip install -U pytest-timeout
3838
python3 -m pip install pyroma
3939

4040
if [[ $(uname) != CYGWIN* ]]; then
41-
# TODO Remove condition when NumPy supports 3.12
42-
if ! [ "$GHA_PYTHON_VERSION" == "3.12-dev" ]; then python3 -m pip install numpy ; fi
41+
python3 -m pip install numpy
4342

4443
# PyQt6 doesn't support PyPy3
45-
if [[ "$GHA_PYTHON_VERSION" != "3.12-dev" && $GHA_PYTHON_VERSION == 3.* ]]; then
44+
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
4645
sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
4746
python3 -m pip install pyqt6
4847
fi

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
name: Docs
2929

3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232

3333
- name: Set up Python
3434
uses: actions/setup-python@v4

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Lint
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121

2222
- name: pre-commit cache
2323
uses: actions/cache@v3

.github/workflows/macos-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -e
44

55
brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype libraqm
6+
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
67

78
PYTHONOPTIMIZE=0 python3 -m pip install cffi
89
python3 -m pip install coverage
@@ -13,8 +14,7 @@ python3 -m pip install -U pytest-cov
1314
python3 -m pip install -U pytest-timeout
1415
python3 -m pip install pyroma
1516

16-
# TODO Remove condition when NumPy supports 3.12
17-
if ! [ "$GHA_PYTHON_VERSION" == "3.12-dev" ]; then python3 -m pip install numpy ; fi
17+
python3 -m pip install numpy
1818

1919
# extra test images
2020
pushd depends && ./install_extra_test_images.sh && popd

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
permissions:
1111
contents: read
1212

13-
concurrency:
13+
concurrency:
1414
group: ${{ github.workflow }}-${{ github.ref }}
1515
cancel-in-progress: true
1616

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
permissions:
99
issues: write
1010

11-
concurrency:
11+
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

.github/workflows/test-cygwin.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ on:
44
push:
55
paths-ignore:
66
- ".github/workflows/docs.yml"
7+
- ".github/workflows/wheels*"
8+
- ".gitmodules"
9+
- ".travis.yml"
710
- "docs/**"
11+
- "wheels/**"
812
pull_request:
913
paths-ignore:
1014
- ".github/workflows/docs.yml"
15+
- ".github/workflows/wheels*"
16+
- ".gitmodules"
17+
- ".travis.yml"
1118
- "docs/**"
19+
- "wheels/**"
1220
workflow_dispatch:
1321

1422
permissions:
@@ -36,7 +44,7 @@ jobs:
3644
git config --global core.autocrlf input
3745
3846
- name: Checkout Pillow
39-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4048

4149
- name: Install Cygwin
4250
uses: cygwin/cygwin-install-action@v4
@@ -102,10 +110,10 @@ jobs:
102110
run: |
103111
bash.exe .ci/install.sh
104112
105-
- name: Install latest NumPy
113+
- name: Upgrade NumPy
106114
shell: dash.exe -l "{0}"
107115
run: |
108-
python3 -m pip install -U numpy
116+
python3 -m pip install -U "numpy<1.26"
109117
110118
- name: Build
111119
shell: bash.exe -eo pipefail -o igncr "{0}"

.github/workflows/test-docker.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ on:
44
push:
55
paths-ignore:
66
- ".github/workflows/docs.yml"
7+
- ".github/workflows/wheels*"
8+
- ".gitmodules"
9+
- ".travis.yml"
710
- "docs/**"
11+
- "wheels/**"
812
pull_request:
913
paths-ignore:
1014
- ".github/workflows/docs.yml"
15+
- ".github/workflows/wheels*"
16+
- ".gitmodules"
17+
- ".travis.yml"
1118
- "docs/**"
19+
- "wheels/**"
1220
workflow_dispatch:
1321

1422
permissions:
@@ -59,7 +67,7 @@ jobs:
5967
name: ${{ matrix.docker }}
6068

6169
steps:
62-
- uses: actions/checkout@v3
70+
- uses: actions/checkout@v4
6371

6472
- name: Build system information
6573
run: python3 .github/workflows/system-info.py

.github/workflows/test-mingw.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ on:
44
push:
55
paths-ignore:
66
- ".github/workflows/docs.yml"
7+
- ".github/workflows/wheels*"
8+
- ".gitmodules"
9+
- ".travis.yml"
710
- "docs/**"
11+
- "wheels/**"
812
pull_request:
913
paths-ignore:
1014
- ".github/workflows/docs.yml"
15+
- ".github/workflows/wheels*"
16+
- ".gitmodules"
17+
- ".travis.yml"
1118
- "docs/**"
19+
- "wheels/**"
1220
workflow_dispatch:
1321

1422
permissions:
@@ -34,7 +42,7 @@ jobs:
3442

3543
steps:
3644
- name: Checkout Pillow
37-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
3846

3947
- name: Set up shell
4048
run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH

0 commit comments

Comments
 (0)