Skip to content

Commit 604c1cf

Browse files
authored
Merge branch 'main' into jpeg-app-segments
2 parents 4d8567c + 8f62fbd commit 604c1cf

File tree

453 files changed

+13586
-7613
lines changed

Some content is hidden

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

453 files changed

+13586
-7613
lines changed

.appveyor.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
skip_commits:
2+
files:
3+
- ".github/**/*"
4+
- ".gitmodules"
5+
- "docs/**/*"
6+
- "wheels/**/*"
7+
18
version: '{build}'
29
clone_folder: c:\pillow
310
init:
@@ -6,16 +13,17 @@ init:
613
# Uncomment previous line to get RDP access during the build.
714

815
environment:
16+
COVERAGE_CORE: sysmon
917
EXECUTABLE: python.exe
1018
TEST_OPTIONS:
1119
DEPLOY: YES
1220
matrix:
1321
- PYTHON: C:/Python312
1422
ARCHITECTURE: x86
1523
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
16-
- PYTHON: C:/Python38-x64
24+
- PYTHON: C:/Python39-x64
1725
ARCHITECTURE: AMD64
18-
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
26+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
1927

2028

2129
install:
@@ -24,13 +32,13 @@ install:
2432
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
2533
- 7z x pillow-test-images.zip -oc:\
2634
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
27-
- 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
2836
- 7z x nasm-win64.zip -oc:\
29-
- choco install ghostscript --version=10.0.0.20230317
30-
- 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.03.1\bin;%PATH%
3139
- cd c:\pillow\winbuild\
3240
- ps: |
33-
c:\python38\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\
41+
c:\python39\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\
3442
c:\pillow\winbuild\build\build_dep_all.cmd
3543
$host.SetShouldExit(0)
3644
- path C:\pillow\winbuild\build\bin;%PATH%

.ci/install.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ fi
2828

2929
python3 -m pip install --upgrade pip
3030
python3 -m pip install --upgrade wheel
31-
# TODO Update condition when cffi supports 3.13
32-
if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then PYTHONOPTIMIZE=0 python3 -m pip install cffi ; fi
3331
python3 -m pip install coverage
3432
python3 -m pip install defusedxml
3533
python3 -m pip install olefile
@@ -39,19 +37,23 @@ python3 -m pip install -U pytest-timeout
3937
python3 -m pip install pyroma
4038

4139
if [[ $(uname) != CYGWIN* ]]; then
42-
# TODO Update condition when NumPy supports 3.13
43-
if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then python3 -m pip install numpy ; fi
40+
# TODO Update condition when NumPy supports free-threading
41+
if [[ "$PYTHON_GIL" == "0" ]]; then
42+
python3 -m pip install numpy --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
43+
else
44+
python3 -m pip install numpy
45+
fi
4446

4547
# PyQt6 doesn't support PyPy3
4648
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
4749
sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
48-
python3 -m pip install pyqt6
50+
# TODO Update condition when pyqt6 supports free-threading
51+
if ! [[ "$PYTHON_GIL" == "0" ]]; then python3 -m pip install pyqt6 ; fi
4952
fi
5053

5154
# Pyroma uses non-isolated build and fails with old setuptools
5255
if [[
5356
$GHA_PYTHON_VERSION == pypy3.9
54-
|| $GHA_PYTHON_VERSION == 3.8
5557
|| $GHA_PYTHON_VERSION == 3.9
5658
]]; then
5759
# To match pyproject.toml

.ci/requirements-cibw.txt

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

.ci/requirements-mypy.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mypy==1.11.0

.clang-format

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
BasedOnStyle: Google
44
AlwaysBreakAfterReturnType: All
55
AllowShortIfStatementsOnASingleLine: false
6-
AlignAfterOpenBracket: AlwaysBreak
6+
AlignAfterOpenBracket: BlockIndent
77
BinPackArguments: false
88
BinPackParameters: false
99
BreakBeforeBraces: Attach
1010
ColumnLimit: 88
1111
DerivePointerAlignment: false
12+
IndentGotoLabels: false
1213
IndentWidth: 4
1314
Language: Cpp
1415
PointerAlignment: Right

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ exclude_also =
1919
[run]
2020
omit =
2121
Tests/32bit_segfault_check.py
22-
Tests/bench_cffi_access.py
2322
Tests/check_*.py
2423
Tests/createfontdatachunk.py

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tidelift: "pypi/Pillow"
1+
tidelift: "pypi/pillow"

.github/ISSUE_TEMPLATE/ISSUE_REPORT.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ Thank you.
4848
* Python:
4949
* Pillow:
5050

51+
```text
52+
Please paste here the output of running:
53+
54+
python3 -m PIL.report
55+
or
56+
python3 -m PIL --report
57+
58+
Or the output of the following Python code:
59+
60+
from PIL import report
61+
# or
62+
from PIL import features
63+
features.pilinfo(supported_formats=False)
64+
```
65+
5166
<!--
5267
Please include **code** that reproduces the issue and whenever possible, an **image** that demonstrates the issue. Please upload images to GitHub, not to third-party file hosting sites. If necessary, add the image to a zip or tar archive.
5368

.github/workflows/cifuzz.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ concurrency:
2424

2525
jobs:
2626
Fuzzing:
27+
# Disabled until google/oss-fuzz#11419 upgrades Python to 3.9+
28+
if: false
2729
runs-on: ubuntu-latest
2830
steps:
2931
- name: Build Fuzzers

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
paths:
88
- ".github/workflows/docs.yml"
99
- "docs/**"
10+
- "src/PIL/**"
1011
pull_request:
1112
paths:
1213
- ".github/workflows/docs.yml"
1314
- "docs/**"
15+
- "src/PIL/**"
1416
workflow_dispatch:
1517

1618
permissions:

0 commit comments

Comments
 (0)