Skip to content

Commit 689fbb4

Browse files
committed
Merge branch 'main' into convert_mode
2 parents 9ac4d53 + 243402e commit 689fbb4

164 files changed

Lines changed: 4297 additions & 3147 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ install:
2525
- mv c:\pillow-depends-main c:\pillow-depends
2626
- xcopy /S /Y c:\pillow-depends\test_images\* c:\pillow\tests\images
2727
- 7z x ..\pillow-depends\nasm-2.15.05-win64.zip -oc:\
28-
- ..\pillow-depends\gs9561w32.exe /S
29-
- path c:\nasm-2.15.05;C:\Program Files (x86)\gs\gs9.56.1\bin;%PATH%
28+
- ..\pillow-depends\gs1000w32.exe /S
29+
- path c:\nasm-2.15.05;C:\Program Files (x86)\gs\gs10.0.0\bin;%PATH%
3030
- cd c:\pillow\winbuild\
3131
- ps: |
3232
c:\python37\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\

.ci/install.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ python3 -m pip install -U pytest
3535
python3 -m pip install -U pytest-cov
3636
python3 -m pip install -U pytest-timeout
3737
python3 -m pip install pyroma
38-
python3 -m pip install test-image-results
3938

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

4442
# PyQt6 doesn't support PyPy3
4543
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
46-
sudo apt-get -qq install libegl1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxkbcommon-x11-0
44+
sudo apt-get -qq install libegl1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
4745
python3 -m pip install pyqt6
4846
fi
4947

.github/renovate.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:base"
5+
],
6+
"labels": [
7+
"Dependency"
8+
],
9+
"packageRules": [
10+
{
11+
"groupName": "github-actions",
12+
"matchManagers": ["github-actions"],
13+
"separateMajorMinor": "false"
14+
}
15+
],
16+
"schedule": ["on the 3rd day of the month"]
17+
}

.github/workflows/cifuzz.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
- "**.h"
1212
workflow_dispatch:
1313

14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1421
jobs:
1522
Fuzzing:
1623
runs-on: ubuntu-latest

.github/workflows/lint.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Lint
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
build:
714

@@ -13,15 +20,15 @@ jobs:
1320
- uses: actions/checkout@v3
1421

1522
- name: pre-commit cache
16-
uses: actions/cache@v2
23+
uses: actions/cache@v3
1724
with:
1825
path: ~/.cache/pre-commit
1926
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
2027
restore-keys: |
2128
lint-pre-commit-
2229
2330
- name: Set up Python
24-
uses: actions/setup-python@v3
31+
uses: actions/setup-python@v4
2532
with:
2633
python-version: "3.10"
2734
cache: pip

.github/workflows/macos-install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ python3 -m pip install -U pytest
1212
python3 -m pip install -U pytest-cov
1313
python3 -m pip install -U pytest-timeout
1414
python3 -m pip install pyroma
15-
python3 -m pip install test-image-results
1615

1716
echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg
18-
# TODO Remove condition when NumPy supports 3.11
19-
if ! [ "$GHA_PYTHON_VERSION" == "3.11-dev" ]; then python3 -m pip install numpy ; fi
17+
python3 -m pip install numpy
2018

2119
# extra test images
2220
pushd depends && ./install_extra_test_images.sh && popd

.github/workflows/release-drafter.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@ on:
77
- main
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1017
jobs:
1118
update_release_draft:
19+
permissions:
20+
contents: write # for release-drafter/release-drafter to create a github release
21+
pull-requests: write # for release-drafter/release-drafter to add label to PR
1222
if: github.repository == 'python-pillow/Pillow'
1323
runs-on: ubuntu-latest
1424
steps:

.github/workflows/stale.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
permissions:
99
issues: write
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
stale:
1317
if: github.repository_owner == 'python-pillow'
@@ -16,7 +20,7 @@ jobs:
1620

1721
steps:
1822
- name: "Check issues"
19-
uses: actions/stale@v5
23+
uses: actions/stale@v6
2024
with:
2125
repo-token: ${{ secrets.GITHUB_TOKEN }}
2226
only-labels: "Awaiting OP Action"

.github/workflows/test-cygwin.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Test Cygwin
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
build:
714
runs-on: windows-latest
@@ -41,7 +48,7 @@ jobs:
4148
qt5-devel-tools subversion xorg-server-extra zlib-devel
4249
4350
- name: Add Lapack to PATH
44-
uses: egor-tensin/cleanup-path@v1
51+
uses: egor-tensin/cleanup-path@v2
4552
with:
4653
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
4754

@@ -99,6 +106,8 @@ jobs:
99106
name: Cygwin Python 3.${{ matrix.python-minor-version }}
100107

101108
success:
109+
permissions:
110+
contents: none
102111
needs: build
103112
runs-on: ubuntu-latest
104113
name: Cygwin Test Successful

.github/workflows/test-docker.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Test Docker
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
build:
714

@@ -76,12 +83,14 @@ jobs:
7683
MATRIX_DOCKER: ${{ matrix.docker }}
7784

7885
- name: Upload coverage
79-
uses: codecov/codecov-action@v1
86+
uses: codecov/codecov-action@v3
8087
with:
8188
flags: GHA_Docker
8289
name: ${{ matrix.docker }}
8390

8491
success:
92+
permissions:
93+
contents: none
8594
needs: build
8695
runs-on: ubuntu-latest
8796
name: Docker Test Successful

0 commit comments

Comments
 (0)