Skip to content

Commit 9d167d9

Browse files
committed
install pyheif from pypi
1 parent d48fd92 commit 9d167d9

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.github/workflows/Check.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ on: [push]
22

33
jobs:
44
check:
5-
name: py${{ matrix.python }} pillow-${{ matrix.pillow }} libheif-${{ matrix.libheif }} pyheif-${{ matrix.pyheif }}
5+
name: py${{ matrix.python }} pillow-${{ matrix.pillow }} libheif-${{ matrix.libheif }} no-binary-${{ matrix.no-binary }}
66
runs-on: ubuntu-20.04
77
timeout-minutes: 3
88
strategy:
99
matrix:
1010
python: ['3.8', '3.11']
1111
pillow: [prod, latest]
1212
libheif: ['1.16.2-6ee6762-3f6b709', '1.18.2-bf35e9e-47f4fc0']
13-
pyheif: ['', '0.8.0']
13+
no-binary: ['pyheif', ':none:']
1414
exclude:
1515
- python: '3.11'
16-
pyheif: '0.8.0'
16+
no-binary: ':none:'
1717
- libheif: '1.18.2-bf35e9e-47f4fc0'
18-
pyheif: '0.8.0'
18+
no-binary: ':none:'
1919

2020
steps:
2121
- uses: actions/checkout@v2
@@ -32,12 +32,7 @@ jobs:
3232
- name: Update pip
3333
run: pip install pip==23.2.1
3434
- name: Install dependencies
35-
run: make install-pillow-${{ matrix.pillow }}
36-
- name: Install ovsolete pyheif
37-
if: ${{ matrix.pyheif }}
38-
run: |
39-
pip uninstall -y pyheif
40-
pip install pyheif==${{ matrix.pyheif }}
35+
run: make install-pillow-${{ matrix.pillow }} no-binary=${{ no-binary }}
4136
- name: Check
4237
run: make check
4338
- name: Upload coverage to Codecov

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ docker_build:
2424
docker_shell: docker_build
2525
docker run --platform=linux/amd64 --rm -it -v .:/src heif-image-plugin:latest
2626

27+
no-binary ?= pyheif
28+
2729
.PHONY: install-pillow-latest
2830
install-pillow-latest:
29-
pip install .[test] \
30-
git+https://github.com/carsales/[email protected]#egg=pyheif
31+
pip install --no-binary $(no-binary) .[test]
3132

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

0 commit comments

Comments
 (0)