Skip to content

Commit 190c53a

Browse files
authored
Merge pull request #7228 from radarhere/32bit
Removed support for 32-bit
2 parents c482634 + abf0541 commit 190c53a

18 files changed

+53
-129
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ environment:
1010
TEST_OPTIONS:
1111
DEPLOY: YES
1212
matrix:
13-
- PYTHON: C:/Python311
14-
ARCHITECTURE: x86
13+
- PYTHON: C:/Python311-x64
14+
ARCHITECTURE: x64
1515
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
1616
- PYTHON: C:/Python38-x64
1717
ARCHITECTURE: x64

.github/mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pull_request_rules:
77
- status-success=Test Successful
88
- status-success=Docker Test Successful
99
- status-success=Windows Test Successful
10-
- status-success=MinGW Test Successful
10+
- status-success=MinGW
1111
- status-success=Cygwin Test Successful
1212
- status-success=continuous-integration/appveyor/pr
1313
actions:

.github/workflows/test-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
centos-7-amd64,
3939
centos-stream-8-amd64,
4040
centos-stream-9-amd64,
41-
debian-11-bullseye-x86,
42-
debian-12-bookworm-x86,
41+
debian-11-bullseye-amd64,
42+
debian-12-bookworm-amd64,
4343
fedora-37-amd64,
4444
fedora-38-amd64,
4545
gentoo,

.github/workflows/test-mingw.yml

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,16 @@ concurrency:
2121
jobs:
2222
build:
2323
runs-on: windows-latest
24-
strategy:
25-
fail-fast: false
26-
matrix:
27-
mingw: ["MINGW32", "MINGW64"]
28-
include:
29-
- mingw: "MINGW32"
30-
name: "MSYS2 MinGW 32-bit"
31-
package: "mingw-w64-i686"
32-
- mingw: "MINGW64"
33-
name: "MSYS2 MinGW 64-bit"
34-
package: "mingw-w64-x86_64"
3524

3625
defaults:
3726
run:
3827
shell: bash.exe --login -eo pipefail "{0}"
3928
env:
40-
MSYSTEM: ${{ matrix.mingw }}
29+
MSYSTEM: MINGW64
4130
CHERE_INVOKING: 1
4231

4332
timeout-minutes: 30
44-
name: ${{ matrix.name }}
33+
name: "MinGW"
4534

4635
steps:
4736
- name: Checkout Pillow
@@ -54,26 +43,22 @@ jobs:
5443
- name: Install dependencies
5544
run: |
5645
pacman -S --noconfirm \
57-
${{ matrix.package }}-freetype \
58-
${{ matrix.package }}-gcc \
59-
${{ matrix.package }}-ghostscript \
60-
${{ matrix.package }}-lcms2 \
61-
${{ matrix.package }}-libimagequant \
62-
${{ matrix.package }}-libjpeg-turbo \
63-
${{ matrix.package }}-libraqm \
64-
${{ matrix.package }}-libtiff \
65-
${{ matrix.package }}-libwebp \
66-
${{ matrix.package }}-openjpeg2 \
67-
${{ matrix.package }}-python3-cffi \
68-
${{ matrix.package }}-python3-numpy \
69-
${{ matrix.package }}-python3-olefile \
70-
${{ matrix.package }}-python3-pip \
71-
${{ matrix.package }}-python3-setuptools
72-
73-
if [ ${{ matrix.package }} == "mingw-w64-x86_64" ]; then
74-
pacman -S --noconfirm \
75-
${{ matrix.package }}-python-pyqt6
76-
fi
46+
mingw-w64-x86_64-freetype \
47+
mingw-w64-x86_64-gcc \
48+
mingw-w64-x86_64-ghostscript \
49+
mingw-w64-x86_64-lcms2 \
50+
mingw-w64-x86_64-libimagequant \
51+
mingw-w64-x86_64-libjpeg-turbo \
52+
mingw-w64-x86_64-libraqm \
53+
mingw-w64-x86_64-libtiff \
54+
mingw-w64-x86_64-libwebp \
55+
mingw-w64-x86_64-openjpeg2 \
56+
mingw-w64-x86_64-python3-cffi \
57+
mingw-w64-x86_64-python3-numpy \
58+
mingw-w64-x86_64-python3-olefile \
59+
mingw-w64-x86_64-python3-pip \
60+
mingw-w64-x86_64-python3-setuptools \
61+
mingw-w64-x86_64-python-pyqt6
7762
7863
python3 -m pip install pyroma pytest pytest-cov pytest-timeout
7964
@@ -93,14 +78,4 @@ jobs:
9378
with:
9479
file: ./coverage.xml
9580
flags: GHA_Windows
96-
name: ${{ matrix.name }}
97-
98-
success:
99-
permissions:
100-
contents: none
101-
needs: build
102-
runs-on: ubuntu-latest
103-
name: MinGW Test Successful
104-
steps:
105-
- name: Success
106-
run: echo MinGW Test Successful
81+
name: "MSYS2 MinGW"

.github/workflows/test-windows.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,11 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"]
28-
architecture: ["x86", "x64"]
29-
include:
30-
# PyPy 7.3.4+ only ships 64-bit binaries for Windows
31-
- python-version: "pypy3.9"
32-
architecture: "x64"
33-
- python-version: "pypy3.10"
34-
architecture: "x64"
27+
python-version: ["pypy3.10", "pypy3.9", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
3528

3629
timeout-minutes: 30
3730

38-
name: Python ${{ matrix.python-version }} ${{ matrix.architecture }}
31+
name: Python ${{ matrix.python-version }}
3932

4033
steps:
4134
- name: Checkout Pillow
@@ -58,7 +51,6 @@ jobs:
5851
uses: actions/setup-python@v4
5952
with:
6053
python-version: ${{ matrix.python-version }}
61-
architecture: ${{ matrix.architecture }}
6254
cache: pip
6355
cache-dependency-path: ".github/workflows/test-windows.yml"
6456

@@ -206,14 +198,14 @@ jobs:
206198
with:
207199
file: ./coverage.xml
208200
flags: GHA_Windows
209-
name: ${{ runner.os }} Python ${{ matrix.python-version }} ${{ matrix.architecture }}
201+
name: ${{ runner.os }} Python ${{ matrix.python-version }}
210202

211203
- name: Build wheel
212204
id: wheel
213205
if: "github.event_name != 'pull_request'"
214206
run: |
215-
mkdir fribidi\${{ matrix.architecture }}
216-
copy winbuild\build\bin\fribidi* fribidi\${{ matrix.architecture }}
207+
mkdir fribidi
208+
copy winbuild\build\bin\fribidi* fribidi
217209
setlocal EnableDelayedExpansion
218210
for %%f in (winbuild\build\license\*) do (
219211
set x=%%~nf

Tests/32bit_segfault_check.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

Tests/check_large_memory.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sys
2-
31
import pytest
42

53
from PIL import Image
@@ -23,9 +21,6 @@
2321
XDIM = 48000
2422

2523

26-
pytestmark = pytest.mark.skipif(sys.maxsize <= 2**32, reason="requires 64-bit system")
27-
28-
2924
def _write_png(tmp_path, xdim, ydim):
3025
f = str(tmp_path / "temp.png")
3126
im = Image.new("L", (xdim, ydim), 0)

Tests/check_large_memory_numpy.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sys
2-
31
import pytest
42

53
from PIL import Image
@@ -19,9 +17,6 @@
1917
XDIM = 48000
2018

2119

22-
pytestmark = pytest.mark.skipif(sys.maxsize <= 2**32, reason="requires 64-bit system")
23-
24-
2520
def _write_png(tmp_path, xdim, ydim):
2621
dtype = np.uint8
2722
a = np.zeros((xdim, ydim), dtype=dtype)

Tests/test_core_resources.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sys
2-
31
import pytest
42

53
from PIL import Image
@@ -110,9 +108,6 @@ def test_set_blocks_max(self):
110108

111109
with pytest.raises(ValueError):
112110
Image.core.set_blocks_max(-1)
113-
if sys.maxsize < 2**32:
114-
with pytest.raises(ValueError):
115-
Image.core.set_blocks_max(2**29)
116111

117112
@pytest.mark.skipif(is_pypy(), reason="Images not collected")
118113
def test_set_blocks_max_stats(self):

Tests/test_file_webp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import io
22
import re
3-
import sys
43
import warnings
54

65
import pytest
@@ -145,7 +144,6 @@ def test_write_unsupported_mode_P(self, tmp_path):
145144

146145
self._roundtrip(tmp_path, "P", 50.0)
147146

148-
@pytest.mark.skipif(sys.maxsize <= 2**32, reason="Requires 64-bit system")
149147
def test_write_encoding_error_message(self, tmp_path):
150148
temp_file = str(tmp_path / "temp.webp")
151149
im = Image.new("RGB", (15000, 15000))

0 commit comments

Comments
 (0)