Skip to content

Commit 7446348

Browse files
authored
Merge pull request #8525 from hugovk/gha-windows-32-bit
2 parents d2122ab + ade99aa commit 7446348

13 files changed

+24
-137
lines changed

.appveyor.yml

-99
This file was deleted.

.github/CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ Please send a pull request to the `main` branch. Please include [documentation](
99
- Fork the Pillow repository.
1010
- Create a branch from `main`.
1111
- Develop bug fixes, features, tests, etc.
12-
- Run the test suite. You can enable GitHub Actions (https://github.com/MY-USERNAME/Pillow/actions) and [AppVeyor](https://ci.appveyor.com/projects/new) on your repo to catch test failures prior to the pull request, and [Codecov](https://codecov.io/gh) to see if the changed code is covered by tests.
12+
- Run the test suite. You can enable GitHub Actions (https://github.com/MY-USERNAME/Pillow/actions) on your repo to catch test failures prior to the pull request, and [Codecov](https://codecov.io/gh) to see if the changed code is covered by tests.
1313
- Create a pull request to pull the changes from your branch to the Pillow `main`.
1414

1515
### Guidelines
1616

1717
- Separate code commits from reformatting commits.
1818
- Provide tests for any newly added code.
1919
- Follow PEP 8.
20-
- When committing only documentation changes please include `[ci skip]` in the commit message to avoid running tests on AppVeyor.
20+
- When committing only documentation changes please include `[ci skip]` in the commit message to avoid running extra tests.
2121
- Include [release notes](https://github.com/python-pillow/Pillow/tree/main/docs/releasenotes) as needed or appropriate with your bug fixes, feature additions and tests.
2222

2323
## Reporting Issues

.github/mergify.yml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pull_request_rules:
99
- status-success=Windows Test Successful
1010
- status-success=MinGW
1111
- status-success=Cygwin Test Successful
12-
- status-success=continuous-integration/appveyor/pr
1312
actions:
1413
merge:
1514
method: merge

.github/workflows/test-windows.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@ env:
3131

3232
jobs:
3333
build:
34-
runs-on: windows-latest
34+
runs-on: ${{ matrix.os }}
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
38+
python-version: ["pypy3.10", "3.10", "3.11", "3.12", "3.13", "3.14"]
39+
architecture: ["x64"]
40+
os: ["windows-latest"]
41+
include:
42+
# Test the oldest Python on 32-bit
43+
- { python-version: "3.9", architecture: "x86", os: "windows-2019" }
3944

4045
timeout-minutes: 30
4146

42-
name: Python ${{ matrix.python-version }}
47+
name: Python ${{ matrix.python-version }} (${{ matrix.architecture }})
4348

4449
steps:
4550
- name: Checkout Pillow
@@ -67,6 +72,7 @@ jobs:
6772
with:
6873
python-version: ${{ matrix.python-version }}
6974
allow-prereleases: true
75+
architecture: ${{ matrix.architecture }}
7076
cache: pip
7177
cache-dependency-path: ".github/workflows/test-windows.yml"
7278

@@ -78,7 +84,7 @@ jobs:
7884
python3 -m pip install --upgrade pip
7985
8086
- name: Install CPython dependencies
81-
if: "!contains(matrix.python-version, 'pypy')"
87+
if: "!contains(matrix.python-version, 'pypy') && matrix.architecture != 'x86'"
8288
run: |
8389
python3 -m pip install PyQt6
8490

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ graft docs
2020
graft _custom_build
2121

2222
# build/src control detritus
23-
exclude .appveyor.yml
2423
exclude .clang-format
2524
exclude .coveragerc
2625
exclude .editorconfig

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ As of 2019, Pillow development is
4242
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-docker.yml"><img
4343
alt="GitHub Actions build status (Test Docker)"
4444
src="https://github.com/python-pillow/Pillow/workflows/Test%20Docker/badge.svg"></a>
45-
<a href="https://ci.appveyor.com/project/python-pillow/Pillow"><img
46-
alt="AppVeyor CI build status (Windows)"
47-
src="https://img.shields.io/appveyor/build/python-pillow/Pillow/main.svg?label=Windows%20build"></a>
4845
<a href="https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml"><img
4946
alt="GitHub Actions build status (Wheels)"
5047
src="https://github.com/python-pillow/Pillow/workflows/Wheels/badge.svg"></a>

RELEASING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Released quarterly on January 2nd, April 1st, July 1st and October 15th.
99

1010
* [ ] Open a release ticket e.g. https://github.com/python-pillow/Pillow/issues/3154
1111
* [ ] Develop and prepare release in `main` branch.
12-
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) and [AppVeyor](https://ci.appveyor.com/project/python-pillow/Pillow) to confirm passing tests in `main` branch.
12+
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) to confirm passing tests in `main` branch.
1313
* [ ] Check that all the wheel builds pass the tests in the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml) jobs by manually triggering them.
1414
* [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/), update version identifier in `src/PIL/_version.py`
1515
* [ ] Run pre-release check via `make release-test` in a freshly cloned repo.
@@ -38,7 +38,7 @@ Released as needed for security, installation or critical bug fixes.
3838
git checkout -t remotes/origin/5.2.x
3939
```
4040
* [ ] Cherry pick individual commits from `main` branch to release branch e.g. `5.2.x`, then `git push`.
41-
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) and [AppVeyor](https://ci.appveyor.com/project/python-pillow/Pillow) to confirm passing tests in release branch e.g. `5.2.x`.
41+
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) to confirm passing tests in release branch e.g. `5.2.x`.
4242
* [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/), update version identifier in `src/PIL/_version.py`
4343
* [ ] Run pre-release check via `make release-test`.
4444
* [ ] Create tag for release e.g.:

Tests/helper.py

-9
Original file line numberDiff line numberDiff line change
@@ -320,16 +320,7 @@ def magick_command() -> list[str] | None:
320320
return None
321321

322322

323-
def on_appveyor() -> bool:
324-
return "APPVEYOR" in os.environ
325-
326-
327-
def on_github_actions() -> bool:
328-
return "GITHUB_ACTIONS" in os.environ
329-
330-
331323
def on_ci() -> bool:
332-
# GitHub Actions and AppVeyor have "CI"
333324
return "CI" in os.environ
334325

335326

docs/about.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ Goals
66

77
The fork author's goal is to foster and support active development of PIL through:
88

9-
- Continuous integration testing via `GitHub Actions`_ and `AppVeyor`_
9+
- Continuous integration testing via `GitHub Actions`_
1010
- Publicized development activity on `GitHub`_
1111
- Regular releases to the `Python Package Index`_
1212

1313
.. _GitHub Actions: https://github.com/python-pillow/Pillow/actions
14-
.. _AppVeyor: https://ci.appveyor.com/project/Python-pillow/pillow
1514
.. _GitHub: https://github.com/python-pillow/Pillow
1615
.. _Python Package Index: https://pypi.org/project/pillow/
1716

docs/index.rst

-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ Pillow for enterprise is available via the Tidelift Subscription. `Learn more <h
3333
:target: https://github.com/python-pillow/Pillow/actions/workflows/test-cygwin.yml
3434
:alt: GitHub Actions build status (Test Cygwin)
3535

36-
.. image:: https://img.shields.io/appveyor/build/python-pillow/Pillow/main.svg?label=Windows%20build
37-
:target: https://ci.appveyor.com/project/python-pillow/Pillow
38-
:alt: AppVeyor CI build status (Windows)
39-
4036
.. image:: https://github.com/python-pillow/Pillow/workflows/Wheels/badge.svg
4137
:target: https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml
4238
:alt: GitHub Actions build status (Wheels)

docs/installation/platform-support.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ These platforms are built and tested for every change.
5050
| Ubuntu Linux 24.04 LTS (Noble) | 3.12 | x86-64, ppc64le, |
5151
| | | s390x |
5252
+----------------------------------+----------------------------+---------------------+
53-
| Windows Server 2019 | 3.9 | x86-64 |
53+
| Windows Server 2019 | 3.9 | x86 |
5454
+----------------------------------+----------------------------+---------------------+
55-
| Windows Server 2022 | 3.9, 3.10, 3.11, | x86-64 |
56-
| | 3.12, 3.13, PyPy3 | |
57-
| +----------------------------+---------------------+
58-
| | 3.13 | x86 |
55+
| Windows Server 2022 | 3.10, 3.11, 3.12, 3.13, | x86-64 |
56+
| | PyPy3 | |
5957
| +----------------------------+---------------------+
6058
| | 3.12 (MinGW) | x86-64 |
6159
| +----------------------------+---------------------+

winbuild/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ For more extensive info, see the [Windows build instructions](build.rst).
1111
* Requires Microsoft Visual Studio 2017 or newer with C++ component.
1212
* Requires NASM for libjpeg-turbo, a required dependency when using this script.
1313
* Requires CMake 3.15 or newer (available as Visual Studio component).
14-
* Tested on Windows Server 2019 with Visual Studio 2019 Community and Visual Studio 2022 Community (AppVeyor).
15-
* Tested on Windows Server 2022 with Visual Studio 2022 Enterprise (GitHub Actions).
14+
* Tested on Windows Server 2022 with Visual Studio 2022 Enterprise and Windows Server
15+
2019 with Visual Studio 2019 Enterprise (GitHub Actions).
16+
17+
Here's an example script to build on Windows:
1618

17-
The following is a simplified version of the script used on AppVeyor:
1819
```
1920
set PYTHON=C:\Python39\bin
2021
cd /D C:\Pillow\winbuild

winbuild/build.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Building Pillow on Windows
66
be sufficient.
77

88
This page describes the steps necessary to build Pillow using the same
9-
scripts used on GitHub Actions and AppVeyor CIs.
9+
scripts used on GitHub Actions CI.
1010

1111
Prerequisites
1212
-------------
@@ -112,7 +112,7 @@ directory.
112112
Example
113113
-------
114114

115-
The following is a simplified version of the script used on AppVeyor::
115+
Here's an example script to build on Windows::
116116

117117
set PYTHON=C:\Python39\bin
118118
cd /D C:\Pillow\winbuild

0 commit comments

Comments
 (0)