Skip to content

Commit 2ae0b1c

Browse files
committed
Test updated multibuild
1 parent 822ec3d commit 2ae0b1c

4 files changed

Lines changed: 1 addition & 374 deletions

File tree

‎.appveyor.yml‎

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

‎.github/workflows/lint.yml‎

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

‎.github/workflows/wheels.yml‎

Lines changed: 0 additions & 220 deletions
Original file line numberDiff line numberDiff line change
@@ -10,90 +10,16 @@ on:
1010
# │ │ │ │ │
1111
- cron: "42 1 * * 0,3"
1212
push:
13-
paths:
14-
- ".ci/requirements-cibw.txt"
15-
- ".github/workflows/wheel*"
16-
- "setup.py"
17-
- "wheels/*"
18-
- "winbuild/build_prepare.py"
19-
- "winbuild/fribidi.cmake"
20-
tags:
21-
- "*"
2213
pull_request:
23-
paths:
24-
- ".ci/requirements-cibw.txt"
25-
- ".github/workflows/wheel*"
26-
- "setup.py"
27-
- "wheels/*"
28-
- "winbuild/build_prepare.py"
29-
- "winbuild/fribidi.cmake"
3014
workflow_dispatch:
3115

3216
permissions:
3317
contents: read
3418

35-
concurrency:
36-
group: ${{ github.workflow }}-${{ github.ref }}
37-
cancel-in-progress: true
38-
3919
env:
4020
FORCE_COLOR: 1
4121

4222
jobs:
43-
build-1-QEMU-emulated-wheels:
44-
if: github.event_name != 'schedule'
45-
name: aarch64 ${{ matrix.python-version }} ${{ matrix.spec }}
46-
runs-on: ubuntu-latest
47-
strategy:
48-
fail-fast: false
49-
matrix:
50-
python-version:
51-
- pp310
52-
- cp3{9,10,11}
53-
- cp3{12,13}
54-
spec:
55-
- manylinux2014
56-
- manylinux_2_28
57-
- musllinux
58-
exclude:
59-
- { python-version: pp310, spec: musllinux }
60-
61-
steps:
62-
- uses: actions/checkout@v4
63-
with:
64-
submodules: true
65-
66-
- uses: actions/setup-python@v5
67-
with:
68-
python-version: "3.x"
69-
70-
# https://github.com/docker/setup-qemu-action
71-
- name: Set up QEMU
72-
uses: docker/setup-qemu-action@v3
73-
74-
- name: Install cibuildwheel
75-
run: |
76-
python3 -m pip install -r .ci/requirements-cibw.txt
77-
78-
- name: Build wheels
79-
run: |
80-
python3 -m cibuildwheel --output-dir wheelhouse
81-
env:
82-
# Build only the currently selected Linux architecture (so we can
83-
# parallelise for speed).
84-
CIBW_ARCHS: "aarch64"
85-
# Likewise, select only one Python version per job to speed this up.
86-
CIBW_BUILD: "${{ matrix.python-version }}-${{ matrix.spec == 'musllinux' && 'musllinux' || 'manylinux' }}*"
87-
CIBW_PRERELEASE_PYTHONS: True
88-
# Extra options for manylinux.
89-
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.spec }}
90-
CIBW_MANYLINUX_PYPY_AARCH64_IMAGE: ${{ matrix.spec }}
91-
92-
- uses: actions/upload-artifact@v4
93-
with:
94-
name: dist-qemu-${{ matrix.python-version }}-${{ matrix.spec }}
95-
path: ./wheelhouse/*.whl
96-
9723
build-2-native-wheels:
9824
if: github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
9925
name: ${{ matrix.name }}
@@ -159,149 +85,3 @@ jobs:
15985
with:
16086
name: dist-${{ matrix.os }}${{ matrix.macosx_deployment_target && format('-{0}', matrix.macosx_deployment_target) }}-${{ matrix.cibw_arch }}${{ matrix.manylinux && format('-{0}', matrix.manylinux) }}
16187
path: ./wheelhouse/*.whl
162-
163-
windows:
164-
if: github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
165-
name: Windows ${{ matrix.cibw_arch }}
166-
runs-on: windows-latest
167-
strategy:
168-
fail-fast: false
169-
matrix:
170-
include:
171-
- cibw_arch: x86
172-
- cibw_arch: AMD64
173-
- cibw_arch: ARM64
174-
steps:
175-
- uses: actions/checkout@v4
176-
177-
- name: Checkout extra test images
178-
uses: actions/checkout@v4
179-
with:
180-
repository: python-pillow/test-images
181-
path: Tests\test-images
182-
183-
- uses: actions/setup-python@v5
184-
with:
185-
python-version: "3.x"
186-
187-
- name: Install cibuildwheel
188-
run: |
189-
python.exe -m pip install -r .ci/requirements-cibw.txt
190-
191-
- name: Prepare for build
192-
run: |
193-
choco install nasm --no-progress
194-
echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
195-
196-
# Install extra test images
197-
xcopy /S /Y Tests\test-images\* Tests\images
198-
199-
& python.exe winbuild\build_prepare.py -v --no-imagequant --architecture=${{ matrix.cibw_arch }}
200-
shell: pwsh
201-
202-
- name: Build wheels
203-
run: |
204-
setlocal EnableDelayedExpansion
205-
for %%f in (winbuild\build\license\*) do (
206-
set x=%%~nf
207-
rem Skip FriBiDi license, it is not included in the wheel.
208-
set fribidi=!x:~0,7!
209-
if NOT !fribidi!==fribidi (
210-
rem Skip imagequant license, it is not included in the wheel.
211-
set libimagequant=!x:~0,13!
212-
if NOT !libimagequant!==libimagequant (
213-
echo. >> LICENSE
214-
echo ===== %%~nf ===== >> LICENSE
215-
echo. >> LICENSE
216-
type %%f >> LICENSE
217-
)
218-
)
219-
)
220-
call winbuild\\build\\build_env.cmd
221-
%pythonLocation%\python.exe -m cibuildwheel . --output-dir wheelhouse
222-
env:
223-
CIBW_ARCHS: ${{ matrix.cibw_arch }}
224-
CIBW_BEFORE_ALL: "{package}\\winbuild\\build\\build_dep_all.cmd"
225-
CIBW_CACHE_PATH: "C:\\cibw"
226-
CIBW_FREE_THREADED_SUPPORT: True
227-
CIBW_PRERELEASE_PYTHONS: True
228-
CIBW_SKIP: pp39-*
229-
CIBW_TEST_SKIP: "*-win_arm64"
230-
CIBW_TEST_COMMAND: 'docker run --rm
231-
-v {project}:C:\pillow
232-
-v C:\cibw:C:\cibw
233-
-v %CD%\..\venv-test:%CD%\..\venv-test
234-
-e CI -e GITHUB_ACTIONS
235-
mcr.microsoft.com/windows/servercore:ltsc2022
236-
powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
237-
shell: cmd
238-
239-
- name: Upload wheels
240-
uses: actions/upload-artifact@v4
241-
with:
242-
name: dist-windows-${{ matrix.cibw_arch }}
243-
path: ./wheelhouse/*.whl
244-
245-
- name: Upload fribidi.dll
246-
uses: actions/upload-artifact@v4
247-
with:
248-
name: fribidi-windows-${{ matrix.cibw_arch }}
249-
path: winbuild\build\bin\fribidi*
250-
251-
sdist:
252-
if: github.event_name != 'schedule'
253-
runs-on: ubuntu-latest
254-
steps:
255-
- uses: actions/checkout@v4
256-
257-
- name: Set up Python
258-
uses: actions/setup-python@v5
259-
with:
260-
python-version: "3.x"
261-
cache: pip
262-
cache-dependency-path: "Makefile"
263-
264-
- run: make sdist
265-
266-
- uses: actions/upload-artifact@v4
267-
with:
268-
name: dist-sdist
269-
path: dist/*.tar.gz
270-
271-
scientific-python-nightly-wheels-publish:
272-
if: github.repository_owner == 'python-pillow' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
273-
needs: [build-2-native-wheels, windows]
274-
runs-on: ubuntu-latest
275-
name: Upload wheels to scientific-python-nightly-wheels
276-
steps:
277-
- uses: actions/download-artifact@v4
278-
with:
279-
pattern: dist-*
280-
path: dist
281-
merge-multiple: true
282-
- name: Upload wheels to scientific-python-nightly-wheels
283-
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
284-
with:
285-
artifacts_path: dist
286-
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
287-
288-
pypi-publish:
289-
if: github.repository_owner == 'python-pillow' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
290-
needs: [build-1-QEMU-emulated-wheels, build-2-native-wheels, windows, sdist]
291-
runs-on: ubuntu-latest
292-
name: Upload release to PyPI
293-
environment:
294-
name: release-pypi
295-
url: https://pypi.org/p/Pillow
296-
permissions:
297-
id-token: write
298-
steps:
299-
- uses: actions/download-artifact@v4
300-
with:
301-
pattern: dist-*
302-
path: dist
303-
merge-multiple: true
304-
- name: Publish to PyPI
305-
uses: pypa/gh-action-pypi-publish@release/v1
306-
with:
307-
attestations: true

0 commit comments

Comments
 (0)