6
6
paths :
7
7
- ' .github/workflows/wheels-pillow_heif.yml'
8
8
- ' setup.*'
9
- - ' libheif/linux_* .py'
9
+ - ' libheif/build_libs .py'
10
10
- ' pyproject.toml'
11
11
12
12
jobs :
@@ -20,10 +20,14 @@ jobs:
20
20
with :
21
21
python-version : ' 3.12'
22
22
23
- - name : Install libheif from formula
24
- run : |
25
- brew uninstall --force --ignore-dependencies imagemagick libheif aom
26
- brew install --formula ./libheif/macos/libheif.rb
23
+ - name : Uninstall libheif from homebrew
24
+ run : brew uninstall --force --ignore-dependencies imagemagick libheif x265 aom libde265
25
+
26
+ - name : Install libheif
27
+ run : sudo python3 libheif/build_libs.py
28
+
29
+ - name : Install dependencies for Pillow
30
+ run : brew install libjpeg little-cms2
27
31
28
32
- name : Run cibuildwheel
29
33
run : |
@@ -109,6 +113,16 @@ jobs:
109
113
110
114
steps :
111
115
- uses : actions/checkout@v4
116
+
117
+ - name : Uninstall libheif from homebrew
118
+ run : brew uninstall --force --ignore-dependencies imagemagick libheif x265 aom libde265 jpeg-turbo
119
+
120
+ - name : Install libheif
121
+ run : sudo python3 libheif/build_libs.py
122
+
123
+ - name : Install dependencies for Pillow
124
+ run : brew install libjpeg little-cms2
125
+
112
126
- name : Run cibuildwheel
113
127
run : |
114
128
python3 -m pip install cibuildwheel==3.1.3
@@ -161,7 +175,7 @@ jobs:
161
175
CIBW_BEFORE_ALL_LINUX : |
162
176
${{ env.INSTALL_OS_PACKAGES }}
163
177
python3 -m pip install cmake==3.31.6
164
- python3 {package}/libheif/linux_build_libs .py
178
+ python3 {package}/libheif/build_libs .py
165
179
CIBW_ENVIRONMENT_LINUX : PH_FULL_ACTION=1
166
180
167
181
- name : Checking built wheels
@@ -208,7 +222,7 @@ jobs:
208
222
CIBW_BEFORE_ALL_LINUX : |
209
223
${{ env.INSTALL_OS_PACKAGES }}
210
224
python3 -m pip install cmake==3.31.6
211
- python3 {package}/libheif/linux_build_libs .py
225
+ python3 {package}/libheif/build_libs .py
212
226
CIBW_ENVIRONMENT_LINUX : PH_FULL_ACTION=1
213
227
214
228
- name : Checking built wheels
@@ -226,20 +240,25 @@ jobs:
226
240
227
241
sdist :
228
242
name : Source distribution
229
- runs-on : macos-13
243
+ runs-on : macos-14
230
244
231
245
steps :
232
246
- uses : actions/checkout@v4
247
+ - uses : actions/setup-python@v6
248
+ with :
249
+ python-version : ' 3.12'
250
+
233
251
- name : Install requirements
234
- run : python3 -m pip install check-manifest twine wheel
252
+ run : python3 -m pip install twine wheel build check-manifest
235
253
236
254
- name : Run check-manifest
237
255
run : python3 -m check_manifest
238
256
239
- - name : Install libheif from formula
240
- run : |
241
- brew uninstall --force --ignore-dependencies imagemagick libheif aom
242
- brew install --formula ./libheif/macos/libheif.rb
257
+ - name : Uninstall libheif from homebrew
258
+ run : brew uninstall --force --ignore-dependencies imagemagick libheif x265 aom libde265
259
+
260
+ - name : Install libheif
261
+ run : sudo python3 libheif/build_libs.py
243
262
244
263
- name : Build sdist
245
264
run : |
0 commit comments