Skip to content

Commit

Permalink
Pi-Heif: Python3.12 32-bit armv7 wheels (#160)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 authored Nov 4, 2023
1 parent 9455832 commit dc80c1a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/wheels-pi_heif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,14 @@ jobs:
i: [
{ "docker_file": "manylinux_armv7l_wheels", "name": "manylinux" },
]
v: ["3.8", "3.9", "3.10", "3.11"]
v: ["3.9", "3.10", "3.11", "3.12"]
include:
- v: "3.10"
i: { "docker_file": "musllinux_armv7l_wheels", "name": "musllinux" }
- v: "3.11"
i: { "docker_file": "musllinux_armv7l_wheels", "name": "musllinux" }
- v: "3.12"
i: { "docker_file": "musllinux_armv7l_wheels", "name": "musllinux" }
env:
KEY_HEAD: Pi-Heif-ARMv7l-${{ matrix.i['name'] }}
BUILD_DIR: "./build_cache"
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ All notable changes to this project will be documented in this file.

## [0.14.0 - 2023-11-xx]

### Added

- Pi-Heif: Python3.12 32-bit `armv7` wheels. #160

### Changed

- Minimum supported Pillow version raised to `9.2.0`.
- Linux: When building from source, `libheif` and other libraries are no longer try built automatically. #158
- Pi-Heif: As last libheif version `1.17.3` requires minimum `cmake>=3.16.3` dropped Debian `10 armv7` wheels. #160

### Fixed

- Support of libheif `1.17.1`. #156
- Support of libheif `1.17.x`. #156

## [0.13.1 - 2023-10-15]

Expand Down
4 changes: 2 additions & 2 deletions docker/manylinux_armv7l_wheels.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG PY_VERSION

FROM python:$PY_VERSION-buster
FROM python:$PY_VERSION-bullseye

COPY . /

Expand Down Expand Up @@ -38,7 +38,7 @@ RUN \
echo "**** Repairing wheel ****" && \
PTAG=$(echo $PY_VERSION | tr -d '.' | tr -d '"') && \
python3 -m pip install auditwheel && \
python3 -m auditwheel repair -w repaired_dist/ dist_manylinux/*-cp$PTAG-*.whl --plat manylinux_2_28_armv7l && \
python3 -m auditwheel repair -w repaired_dist/ dist_manylinux/*-cp$PTAG-*.whl --plat manylinux_2_31_armv7l && \
echo "**** Testing wheel ****" && \
python3 -m pip install repaired_dist/*-cp$PTAG-*manylinux*.whl && \
python3 -c "import pillow_heif; print(pillow_heif.libheif_info())" && \
Expand Down
2 changes: 1 addition & 1 deletion docker/musllinux_armv7l_wheels.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG PY_VERSION

FROM python:$PY_VERSION-alpine3.15
FROM python:$PY_VERSION-alpine3.18

COPY . /

Expand Down
2 changes: 1 addition & 1 deletion libheif/linux_build_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def build_lib_linux(url: str, name: str):
def build_libs() -> None:
_original_dir = getcwd()
try:
if not tool_check_version("cmake", "3.13.4"):
if not tool_check_version("cmake", "3.16.3"):
raise ValueError("Can not find `cmake` with version >=3.16.3")
if not is_library_installed("x265"):
if not PH_LIGHT_VERSION:
Expand Down
2 changes: 1 addition & 1 deletion pi-heif/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ if pi_heif.is_supported("input.heic"):

&ast; **i686**, **x86_64**, **aarch64** wheels.

`ARMv7l`: wheels are present for Debian 10+(Ubuntu 20.04+) and Alpine 3.16/3.17
`ARMv7l`: wheels are present for Debian 11+(Ubuntu 20.04+) and Alpine 3.16/3.17/3.18

0 comments on commit dc80c1a

Please sign in to comment.