66 paths :
77 - ' .github/workflows/wheels-pillow_heif.yml'
88 - ' setup.*'
9- - ' libheif/linux_* .py'
9+ - ' libheif/build_libs .py'
1010 - ' pyproject.toml'
1111
1212jobs :
@@ -20,10 +20,14 @@ jobs:
2020 with :
2121 python-version : ' 3.12'
2222
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
2731
2832 - name : Run cibuildwheel
2933 run : |
@@ -109,6 +113,16 @@ jobs:
109113
110114 steps :
111115 - 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+
112126 - name : Run cibuildwheel
113127 run : |
114128 python3 -m pip install cibuildwheel==3.1.3
@@ -161,7 +175,7 @@ jobs:
161175 CIBW_BEFORE_ALL_LINUX : |
162176 ${{ env.INSTALL_OS_PACKAGES }}
163177 python3 -m pip install cmake==3.31.6
164- python3 {package}/libheif/linux_build_libs .py
178+ python3 {package}/libheif/build_libs .py
165179 CIBW_ENVIRONMENT_LINUX : PH_FULL_ACTION=1
166180
167181 - name : Checking built wheels
@@ -208,7 +222,7 @@ jobs:
208222 CIBW_BEFORE_ALL_LINUX : |
209223 ${{ env.INSTALL_OS_PACKAGES }}
210224 python3 -m pip install cmake==3.31.6
211- python3 {package}/libheif/linux_build_libs .py
225+ python3 {package}/libheif/build_libs .py
212226 CIBW_ENVIRONMENT_LINUX : PH_FULL_ACTION=1
213227
214228 - name : Checking built wheels
@@ -226,20 +240,25 @@ jobs:
226240
227241 sdist :
228242 name : Source distribution
229- runs-on : macos-13
243+ runs-on : macos-14
230244
231245 steps :
232246 - uses : actions/checkout@v4
247+ - uses : actions/setup-python@v6
248+ with :
249+ python-version : ' 3.12'
250+
233251 - name : Install requirements
234- run : python3 -m pip install check-manifest twine wheel
252+ run : python3 -m pip install twine wheel build check-manifest
235253
236254 - name : Run check-manifest
237255 run : python3 -m check_manifest
238256
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
243262
244263 - name : Build sdist
245264 run : |
0 commit comments