Skip to content

Commit

Permalink
install pyheif from pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Sep 10, 2024
1 parent d48fd92 commit f4449b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/Check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ on: [push]

jobs:
check:
name: py${{ matrix.python }} pillow-${{ matrix.pillow }} libheif-${{ matrix.libheif }} pyheif-${{ matrix.pyheif }}
name: py${{ matrix.python }} pillow-${{ matrix.pillow }} libheif-${{ matrix.libheif }} no-binary-${{ matrix.no-binary }}
runs-on: ubuntu-20.04
timeout-minutes: 3
strategy:
matrix:
python: ['3.8', '3.11']
pillow: [prod, latest]
libheif: ['1.16.2-6ee6762-3f6b709', '1.18.2-bf35e9e-47f4fc0']
pyheif: ['', '0.8.0']
no-binary: ['pyheif', ':none:']
exclude:
- python: '3.11'
pyheif: '0.8.0'
no-binary: ':none:'
- libheif: '1.18.2-bf35e9e-47f4fc0'
pyheif: '0.8.0'
no-binary: ':none:'

steps:
- uses: actions/checkout@v2
Expand All @@ -32,12 +32,7 @@ jobs:
- name: Update pip
run: pip install pip==23.2.1
- name: Install dependencies
run: make install-pillow-${{ matrix.pillow }}
- name: Install ovsolete pyheif
if: ${{ matrix.pyheif }}
run: |
pip uninstall -y pyheif
pip install pyheif==${{ matrix.pyheif }}
run: make install-pillow-${{ matrix.pillow }} no-binary=${{ matrix.no-binary }}
- name: Check
run: make check
- name: Upload coverage to Codecov
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ docker_build:
docker_shell: docker_build
docker run --platform=linux/amd64 --rm -it -v .:/src heif-image-plugin:latest

no-binary ?= pyheif

.PHONY: install-pillow-latest
install-pillow-latest:
pip install .[test] \
git+https://github.com/carsales/[email protected]#egg=pyheif
pip install --no-binary $(no-binary) .[test]

.PHONY: install-pillow-prod
install-pillow-prod:
pip install .[test] \
pip install --no-binary $(no-binary) .[test] \
./pip-stubs/pillow \
git+https://github.com/uploadcare/pillow-simd.git@simd/9.5-png-truncated#egg=pillow-simd \
git+https://github.com/carsales/[email protected]#egg=pyheif
git+https://github.com/uploadcare/pillow-simd.git@simd/9.5-png-truncated#egg=pillow-simd

0 comments on commit f4449b2

Please sign in to comment.