Skip to content

Commit fc44555

Browse files
committed
prepare v0.12.0 release
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 69f0b24 commit fc44555

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

.github/workflows/wheels-pi_heif.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
python3 -m pip install cibuildwheel==2.12.3
7272
python3 -m cibuildwheel
7373
env:
74-
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* pp38-* pp39-*"
74+
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* pp39-*"
7575
CIBW_ARCHS_WINDOWS: "AMD64"
7676
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -vv -w {dest_dir} {wheel} --add-path ${{ env.MSYS2_PREFIX }}/bin"
7777
CIBW_ENVIRONMENT_WINDOWS: PH_LIGHT_ACTION=1 TEST_DECODE_THREADS=0
@@ -150,6 +150,12 @@ jobs:
150150
env:
151151
OS_PACKAGES: "fribidi-dev harfbuzz-dev jpeg-dev lcms2-dev openjpeg-dev"
152152

153+
- name: 32-bit manylinux preparations
154+
if: matrix.cibw_buildlinux == 'manylinux' && matrix.cibw_arch == 'i686'
155+
run: echo INSTALL_OS_PACKAGES="yum makecache && yum install -y $OS_PACKAGES" >> $GITHUB_ENV
156+
env:
157+
OS_PACKAGES: "libjpeg-turbo-devel lcms2-devel"
158+
153159
- name: Only minimal testing on aarch64
154160
if: matrix.cibw_arch == 'aarch64'
155161
run: echo CIBW_TEST_EXTRAS="tests-min" >> $GITHUB_ENV

.github/workflows/wheels-pillow_heif.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
python3 -m pip install cibuildwheel==2.12.3
6868
python3 -m cibuildwheel
6969
env:
70-
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* pp38-* pp39-*"
70+
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* pp39-*"
7171
CIBW_ARCHS_WINDOWS: "AMD64"
7272
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -vv -w {dest_dir} {wheel} --add-path ${{ env.MSYS2_PREFIX }}/bin"
7373
CIBW_ENVIRONMENT_WINDOWS: PH_FULL_ACTION=1
@@ -199,6 +199,12 @@ jobs:
199199
env:
200200
OS_PACKAGES: "fribidi-dev harfbuzz-dev jpeg-dev lcms2-dev openjpeg-dev"
201201

202+
- name: 32-bit manylinux preparations
203+
if: matrix.cibw_buildlinux == 'manylinux'
204+
run: echo INSTALL_OS_PACKAGES="yum makecache && yum install -y $OS_PACKAGES" >> $GITHUB_ENV
205+
env:
206+
OS_PACKAGES: "libjpeg-turbo-devel lcms2-devel"
207+
202208
- uses: actions/cache@v3
203209
with:
204210
path: ${{ env.BUILD_DIR }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file.
22

33
## [0.12.0 - 2023-07-08]
44

5-
This release is fully compatible with `0.10.x+` versions.
5+
This release is fully compatible with previous versions.
66

77
## Added
88

ci/cirrus_general_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test_src_build_full_macos_arm_task:
1414
EXP_PH_LIBHEIF_VERSION: ""
1515

1616
install_libheif_script:
17-
- brew update
17+
- brew update || true
1818
- brew install libheif
1919
- brew uninstall --force --ignore-dependencies imagemagick libheif
2020
- brew install --formula ./libheif/macos/libheif.rb
@@ -45,7 +45,7 @@ test_src_build_lite_macos_arm_task:
4545
- cp -r -v ./pi-heif/* .
4646
- python3 .github/transform_to-pi_heif.py
4747
install_libheif_script:
48-
- brew update
48+
- brew update || true
4949
- brew install libheif
5050
- brew uninstall --force --ignore-dependencies imagemagick libheif x265 aom
5151
- brew install --formula ./libheif/macos/libheif.rb

ci/cirrus_wheels.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ wheel_macos_arm_task:
1111
CIBW_BUILD: '*-macosx_arm64'
1212
CIBW_ARCHS: arm64
1313
CIBW_PLATFORM: macos
14-
CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET=12.0'
14+
CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET=12.0 PH_FULL_ACTION=1'
1515

1616
install_pre_requirements_script:
17-
- brew update
17+
- brew update || true
1818
- brew install libheif
1919
- brew install [email protected]
2020
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python
@@ -38,10 +38,10 @@ wheel_pi_heif_macos_arm_task:
3838
CIBW_BUILD: '*-macosx_arm64'
3939
CIBW_ARCHS: arm64
4040
CIBW_PLATFORM: macos
41-
CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET=12.0'
41+
CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET=12.0 PH_LIGHT_ACTION=1'
4242

4343
install_pre_requirements_script:
44-
- brew update
44+
- brew update || true
4545
- brew install libheif
4646
- brew install [email protected]
4747
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test-command = "pytest -rs {project}"
7777
[tool.cibuildwheel.macos]
7878
before-all = [
7979
"brew install libjpeg little-cms2",
80-
"brew uninstall --force --ignore-dependencies libheif",
80+
"brew uninstall --force --ignore-dependencies libheif aom",
8181
"brew install --formula {project}/libheif/macos/libheif.rb",
8282
"HOMEBREW_PREFIX=$(brew --prefix)",
8383
"REPAIR_LIBRARY_PATH=$HOMEBREW_PREFIX/lib",
@@ -91,6 +91,9 @@ test-command = "pytest -rs {project}"
9191
test-skip = "cp38-macosx_arm64"
9292

9393
[tool.cibuildwheel.windows]
94-
before-build = "pip install delvewheel"
94+
before-build = [
95+
"pip install delvewheel",
96+
"pip install --prefer-binary pillow",
97+
]
9598
test-extras = "tests"
9699
test-command = "pytest -rs {project}"

tests/basic_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_full_build():
110110
info = pillow_heif.libheif_info()
111111
assert info["AVIF"]
112112
assert info["HEIF"]
113-
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.15.2")
113+
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.16.2")
114114
if expected_version:
115115
assert info["libheif"] == expected_version
116116

@@ -120,6 +120,6 @@ def test_light_build():
120120
info = pillow_heif.libheif_info()
121121
assert not info["AVIF"]
122122
assert not info["HEIF"]
123-
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.15.2")
123+
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.16.2")
124124
if expected_version:
125125
assert info["libheif"] == expected_version

0 commit comments

Comments
 (0)