Skip to content

Commit ed90765

Browse files
authored
Merge branch 'main' into convert_mode
2 parents f402333 + 53e82e4 commit ed90765

185 files changed

Lines changed: 2633 additions & 1844 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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
skip_commits:
22
files:
3-
- ".github/**"
3+
- ".github/**/*"
44
- ".gitmodules"
5-
- "docs/**"
6-
- "wheels/**"
5+
- "docs/**/*"
6+
- "wheels/**/*"
77

88
version: '{build}'
99
clone_folder: c:\pillow
@@ -32,10 +32,10 @@ install:
3232
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
3333
- 7z x pillow-test-images.zip -oc:\
3434
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
35-
- curl -fsSL -o nasm-win64.zip https://raw.githubusercontent.com/python-pillow/pillow-depends/main/nasm-2.16.01-win64.zip
35+
- curl -fsSL -o nasm-win64.zip https://raw.githubusercontent.com/python-pillow/pillow-depends/main/nasm-2.16.03-win64.zip
3636
- 7z x nasm-win64.zip -oc:\
37-
- choco install ghostscript --version=10.3.0
38-
- path c:\nasm-2.16.01;C:\Program Files\gs\gs10.00.0\bin;%PATH%
37+
- choco install ghostscript --version=10.3.1
38+
- path c:\nasm-2.16.03;C:\Program Files\gs\gs10.00.0\bin;%PATH%
3939
- cd c:\pillow\winbuild\
4040
- ps: |
4141
c:\python38\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\

.ci/requirements-cibw.txt

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

.ci/requirements-mypy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mypy==1.9.0
1+
mypy==1.10.0

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ BinPackParameters: false
99
BreakBeforeBraces: Attach
1010
ColumnLimit: 88
1111
DerivePointerAlignment: false
12+
IndentGotoLabels: false
1213
IndentWidth: 4
1314
Language: Cpp
1415
PointerAlignment: Right

.github/workflows/test-cygwin.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
packages: >
5656
gcc-g++
5757
ghostscript
58+
git
5859
ImageMagick
5960
jpeg
6061
libfreetype-devel
@@ -132,11 +133,12 @@ jobs:
132133
bash.exe .ci/after_success.sh
133134
134135
- name: Upload coverage
135-
uses: codecov/codecov-action@v3.1.5
136+
uses: codecov/codecov-action@v4
136137
with:
137138
file: ./coverage.xml
138139
flags: GHA_Cygwin
139140
name: Cygwin Python 3.${{ matrix.python-minor-version }}
141+
token: ${{ secrets.CODECOV_ORG_TOKEN }}
140142

141143
success:
142144
permissions:

.github/workflows/test-docker.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,31 @@ jobs:
3636
docker: [
3737
# Run slower jobs first to give them a headstart and reduce waiting time
3838
ubuntu-22.04-jammy-arm64v8,
39-
ubuntu-22.04-jammy-ppc64le,
40-
ubuntu-22.04-jammy-s390x,
39+
ubuntu-24.04-noble-ppc64le,
40+
ubuntu-24.04-noble-s390x,
4141
# Then run the remainder
4242
alpine,
4343
amazon-2-amd64,
4444
amazon-2023-amd64,
4545
arch,
46-
centos-7-amd64,
47-
centos-stream-8-amd64,
4846
centos-stream-9-amd64,
4947
debian-11-bullseye-amd64,
5048
debian-12-bookworm-x86,
5149
debian-12-bookworm-amd64,
52-
fedora-38-amd64,
5350
fedora-39-amd64,
51+
fedora-40-amd64,
5452
gentoo,
5553
ubuntu-20.04-focal-amd64,
5654
ubuntu-22.04-jammy-amd64,
55+
ubuntu-24.04-noble-amd64,
5756
]
5857
dockerTag: [main]
5958
include:
6059
- docker: "ubuntu-22.04-jammy-arm64v8"
6160
qemu-arch: "aarch64"
62-
- docker: "ubuntu-22.04-jammy-ppc64le"
61+
- docker: "ubuntu-24.04-noble-ppc64le"
6362
qemu-arch: "ppc64le"
64-
- docker: "ubuntu-22.04-jammy-s390x"
63+
- docker: "ubuntu-24.04-noble-s390x"
6564
qemu-arch: "s390x"
6665

6766
name: ${{ matrix.docker }}
@@ -83,8 +82,8 @@ jobs:
8382
8483
- name: Docker build
8584
run: |
86-
# The Pillow user in the docker container is UID 1000
87-
sudo chown -R 1000 $GITHUB_WORKSPACE
85+
# The Pillow user in the docker container is UID 1001
86+
sudo chown -R 1001 $GITHUB_WORKSPACE
8887
docker run --name pillow_container -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
8988
sudo chown -R runner $GITHUB_WORKSPACE
9089
@@ -101,11 +100,12 @@ jobs:
101100
MATRIX_DOCKER: ${{ matrix.docker }}
102101

103102
- name: Upload coverage
104-
uses: codecov/codecov-action@v3.1.5
103+
uses: codecov/codecov-action@v4
105104
with:
106105
flags: GHA_Docker
107106
name: ${{ matrix.docker }}
108107
gcov: true
108+
token: ${{ secrets.CODECOV_ORG_TOKEN }}
109109

110110
success:
111111
permissions:

.github/workflows/test-mingw.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ jobs:
8585
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
8686
8787
- name: Upload coverage
88-
uses: codecov/codecov-action@v3.1.5
88+
uses: codecov/codecov-action@v4
8989
with:
9090
file: ./coverage.xml
9191
flags: GHA_Windows
9292
name: "MSYS2 MinGW"
93+
token: ${{ secrets.CODECOV_ORG_TOKEN }}

.github/workflows/test-valgrind.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
- name: Build and Run Valgrind
5252
run: |
53-
# The Pillow user in the docker container is UID 1000
54-
sudo chown -R 1000 $GITHUB_WORKSPACE
53+
# The Pillow user in the docker container is UID 1001
54+
sudo chown -R 1001 $GITHUB_WORKSPACE
5555
docker run --name pillow_container -e "PILLOW_VALGRIND_TEST=true" -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
5656
sudo chown -R runner $GITHUB_WORKSPACE

.github/workflows/test-windows.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
choco install nasm --no-progress
8787
echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
8888
89-
choco install ghostscript --version=10.3.0 --no-progress
89+
choco install ghostscript --version=10.3.1 --no-progress
9090
echo "C:\Program Files\gs\gs10.00.0\bin" >> $env:GITHUB_PATH
9191
9292
# Install extra test images
@@ -213,11 +213,12 @@ jobs:
213213
shell: pwsh
214214

215215
- name: Upload coverage
216-
uses: codecov/codecov-action@v3.1.5
216+
uses: codecov/codecov-action@v4
217217
with:
218218
file: ./coverage.xml
219219
flags: GHA_Windows
220220
name: ${{ runner.os }} Python ${{ matrix.python-version }}
221+
token: ${{ secrets.CODECOV_ORG_TOKEN }}
221222

222223
success:
223224
permissions:

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ jobs:
5757
- python-version: "3.10"
5858
PYTHONOPTIMIZE: 2
5959
# M1 only available for 3.10+
60-
- os: "macos-latest"
60+
- os: "macos-13"
6161
python-version: "3.9"
62-
- os: "macos-latest"
62+
- os: "macos-13"
6363
python-version: "3.8"
6464
exclude:
6565
- os: "macos-14"
@@ -150,11 +150,12 @@ jobs:
150150
.ci/after_success.sh
151151
152152
- name: Upload coverage
153-
uses: codecov/codecov-action@v3.1.5
153+
uses: codecov/codecov-action@v4
154154
with:
155155
flags: ${{ matrix.os == 'ubuntu-latest' && 'GHA_Ubuntu' || 'GHA_macOS' }}
156156
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
157157
gcov: true
158+
token: ${{ secrets.CODECOV_ORG_TOKEN }}
158159

159160
success:
160161
permissions:

0 commit comments

Comments
 (0)