Skip to content

Commit 05506e5

Browse files
authored
Merge branch 'main' into type-hints-replace-io.BytesIO
2 parents 256f3f1 + 5bd8fd1 commit 05506e5

Some content is hidden

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

49 files changed

+328
-225
lines changed

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
# Drafts your next release notes as pull requests are merged into "main"
26-
- uses: release-drafter/release-drafter@v5
26+
- uses: release-drafter/release-drafter@v6
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/system-info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Requested here:
77
https://github.com/actions/virtual-environments/issues/79
88
"""
9+
910
from __future__ import annotations
1011

1112
import os

.github/workflows/test-cygwin.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
- name: Install Cygwin
5050
uses: egor-tensin/setup-cygwin@v4
5151
with:
52-
platform: x86_64
5352
packages: >
5453
gcc-g++
5554
ghostscript
@@ -81,7 +80,7 @@ jobs:
8180
zlib-devel
8281
8382
- name: Add Lapack to PATH
84-
uses: egor-tensin/cleanup-path@v3
83+
uses: egor-tensin/cleanup-path@v4
8584
with:
8685
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
8786

@@ -142,7 +141,7 @@ jobs:
142141
bash.exe .ci/after_success.sh
143142
144143
- name: Upload coverage
145-
uses: codecov/codecov-action@v3
144+
uses: codecov/codecov-action@v3.1.5
146145
with:
147146
file: ./coverage.xml
148147
flags: GHA_Cygwin

.github/workflows/test-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
MATRIX_DOCKER: ${{ matrix.docker }}
102102

103103
- name: Upload coverage
104-
uses: codecov/codecov-action@v3
104+
uses: codecov/codecov-action@v3.1.5
105105
with:
106106
flags: GHA_Docker
107107
name: ${{ matrix.docker }}

.github/workflows/test-mingw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
8383
8484
- name: Upload coverage
85-
uses: codecov/codecov-action@v3
85+
uses: codecov/codecov-action@v3.1.5
8686
with:
8787
file: ./coverage.xml
8888
flags: GHA_Windows

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jobs:
202202
shell: pwsh
203203

204204
- name: Upload coverage
205-
uses: codecov/codecov-action@v3
205+
uses: codecov/codecov-action@v3.1.5
206206
with:
207207
file: ./coverage.xml
208208
flags: GHA_Windows

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
.ci/after_success.sh
150150
151151
- name: Upload coverage
152-
uses: codecov/codecov-action@v3
152+
uses: codecov/codecov-action@v3.1.5
153153
with:
154154
flags: ${{ matrix.os == 'ubuntu-latest' && 'GHA_Ubuntu' || 'GHA_macOS' }}
155155
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

.github/workflows/wheels-dependencies.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,11 @@ function build {
7272

7373
build_simple xcb-proto 1.16.0 https://xorg.freedesktop.org/archive/individual/proto
7474
if [ -n "$IS_MACOS" ]; then
75-
if [[ "$CIBW_ARCHS" == "arm64" ]]; then
76-
build_simple xorgproto 2023.2 https://www.x.org/pub/individual/proto
77-
build_simple libXau 1.0.11 https://www.x.org/pub/individual/lib
78-
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
79-
if [ -f /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc ]; then
80-
cp /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc /Library/Frameworks/Python.framework/Versions/Current/lib/pkgconfig/xcb-proto.pc
81-
fi
75+
build_simple xorgproto 2023.2 https://www.x.org/pub/individual/proto
76+
build_simple libXau 1.0.11 https://www.x.org/pub/individual/lib
77+
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
78+
if [ -f /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc ]; then
79+
cp /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc /Library/Frameworks/Python.framework/Versions/Current/lib/pkgconfig/xcb-proto.pc
8280
fi
8381
else
8482
sed s/\${pc_sysrootdir\}// /usr/local/share/pkgconfig/xcb-proto.pc > /usr/local/lib/pkgconfig/xcb-proto.pc
@@ -131,13 +129,13 @@ untar pillow-depends-main.zip
131129

132130
if [[ -n "$IS_MACOS" ]]; then
133131
# webp, libtiff, libxcb cause a conflict with building webp, libtiff, libxcb
134-
# libxdmcp causes an issue on macOS < 11
132+
# libxau and libxdmcp cause an issue on macOS < 11
135133
# if php is installed, brew tries to reinstall these after installing openblas
136134
# remove cairo to fix building harfbuzz on arm64
137135
# remove lcms2 and libpng to fix building openjpeg on arm64
138136
# remove zstd to avoid inclusion on x86_64
139137
# curl from brew requires zstd, use system curl
140-
brew remove --ignore-dependencies webp libpng libtiff libxcb libxdmcp curl php cairo lcms2 ghostscript zstd
138+
brew remove --ignore-dependencies webp libpng libtiff libxcb libxau libxdmcp curl php cairo lcms2 ghostscript zstd
141139

142140
brew install pkg-config
143141
fi

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.1.9
3+
rev: v0.2.0
44
hooks:
55
- id: ruff
66
args: [--fix, --exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 23.12.1
9+
rev: 24.1.1
1010
hooks:
1111
- id: black
1212

1313
- repo: https://github.com/PyCQA/bandit
14-
rev: 1.7.6
14+
rev: 1.7.7
1515
hooks:
1616
- id: bandit
1717
args: [--severity-level=high]
@@ -48,12 +48,12 @@ repos:
4848
- id: sphinx-lint
4949

5050
- repo: https://github.com/tox-dev/pyproject-fmt
51-
rev: 1.5.3
51+
rev: 1.7.0
5252
hooks:
5353
- id: pyproject-fmt
5454

5555
- repo: https://github.com/abravalheri/validate-pyproject
56-
rev: v0.15
56+
rev: v0.16
5757
hooks:
5858
- id: validate-pyproject
5959

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Changelog (Pillow)
55
10.3.0 (unreleased)
66
-------------------
77

8+
- Update wl-paste handling and return None for some errors in grabclipboard() on Linux #7745
9+
[nik012003, radarhere]
10+
11+
- Remove execute bit from ``setup.py`` #7760
12+
[hugovk]
13+
814
- Do not support using test-image-results to upload images after test failures #7739
915
[radarhere]
1016

0 commit comments

Comments
 (0)