Skip to content

Commit 0227ce0

Browse files
authored
Python3.13 beta wheels (#272)
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 9a24016 commit 0227ce0

File tree

9 files changed

+45
-36
lines changed

9 files changed

+45
-36
lines changed

.github/workflows/build-cache-deps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
platforms: arm64
4040

4141
- name: Install cibuildwheel & twine
42-
run: python3 -m pip install twine cibuildwheel==2.19.1
42+
run: python3 -m pip install twine cibuildwheel==2.19.2
4343

4444
- uses: actions/cache@v4
4545
with:
@@ -98,7 +98,7 @@ jobs:
9898
platforms: arm64
9999

100100
- name: Install cibuildwheel & twine
101-
run: python3 -m pip install twine cibuildwheel==2.19.1
101+
run: python3 -m pip install twine cibuildwheel==2.19.2
102102

103103
- uses: actions/cache@v4
104104
with:

.github/workflows/wheels-pi_heif.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ jobs:
7272
7373
- name: Run cibuildwheel
7474
run: |
75-
python3 -m pip install cibuildwheel==2.19.1
75+
python3 -m pip install cibuildwheel==2.19.2
7676
python3 -m cibuildwheel
7777
env:
7878
CIBW_ARCHS: "AMD64"
7979
CIBW_ENVIRONMENT_WINDOWS: PH_LIGHT_ACTION=1 TEST_DECODE_THREADS=0
8080
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -vv -w {dest_dir} {wheel} --add-path ${{ env.MSYS2_PREFIX }}/bin"
81+
CIBW_PRERELEASE_PYTHONS: True
8182

8283
- name: Checking built wheels
8384
run: |
@@ -104,12 +105,13 @@ jobs:
104105
105106
- name: Run cibuildwheel
106107
run: |
107-
python3 -m pip install cibuildwheel==2.19.1
108+
python3 -m pip install cibuildwheel==2.19.2
108109
python3 -m cibuildwheel
109110
env:
110111
CIBW_ARCHS: "x86_64"
111112
CIBW_ENVIRONMENT_MACOS: PH_LIGHT_ACTION=1 TEST_DECODE_THREADS=0
112113
MACOSX_DEPLOYMENT_TARGET: "12.0"
114+
CIBW_PRERELEASE_PYTHONS: True
113115

114116
- name: Checking built wheels
115117
run: |
@@ -164,7 +166,7 @@ jobs:
164166

165167
- name: Run cibuildwheel
166168
run: |
167-
python3 -m pip install cibuildwheel==2.19.1
169+
python3 -m pip install cibuildwheel==2.19.2
168170
python3 -m cibuildwheel
169171
env:
170172
CIBW_BUILD: ${{ format('cp3*-{0}_{1}', matrix.cibw_buildlinux, matrix.cibw_arch) }}
@@ -173,6 +175,7 @@ jobs:
173175
${{ env.INSTALL_OS_PACKAGES }}
174176
python3 {package}/libheif/linux_build_libs.py
175177
CIBW_ENVIRONMENT_LINUX: BUILD_DIR=/host${{ env.BUILD_DIR }} PH_LIGHT_ACTION=1
178+
CIBW_PRERELEASE_PYTHONS: True
176179

177180
- name: Checking built wheels
178181
run: |
@@ -224,7 +227,7 @@ jobs:
224227

225228
- name: Run cibuildwheel
226229
run: |
227-
python3 -m pip install cibuildwheel==2.19.1
230+
python3 -m pip install cibuildwheel==2.19.2
228231
python3 -m cibuildwheel
229232
env:
230233
CIBW_BUILD: ${{ format('pp3*-{0}_{1}', matrix.cibw_buildlinux, matrix.cibw_arch) }}

.github/workflows/wheels-pillow_heif.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ jobs:
6969
7070
- name: Run cibuildwheel
7171
run: |
72-
python3 -m pip install cibuildwheel==2.19.1
72+
python3 -m pip install cibuildwheel==2.19.2
7373
python3 -m cibuildwheel
7474
env:
7575
CIBW_ARCHS: "AMD64"
7676
CIBW_ENVIRONMENT_WINDOWS: PH_FULL_ACTION=1
7777
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -vv -w {dest_dir} {wheel} --add-path ${{ env.MSYS2_PREFIX }}/bin"
78+
CIBW_PRERELEASE_PYTHONS: True
7879

7980
- name: Check built wheels
8081
run: |
@@ -96,12 +97,13 @@ jobs:
9697
- uses: actions/checkout@v4
9798
- name: Run cibuildwheel
9899
run: |
99-
python3 -m pip install cibuildwheel==2.19.1
100+
python3 -m pip install cibuildwheel==2.19.2
100101
python3 -m cibuildwheel
101102
env:
102103
CIBW_ARCHS: "x86_64"
103104
CIBW_ENVIRONMENT_MACOS: PH_FULL_ACTION=1 TEST_DECODE_THREADS=0
104105
MACOSX_DEPLOYMENT_TARGET: "12.0"
106+
CIBW_PRERELEASE_PYTHONS: True
105107

106108
- name: Check built wheels
107109
run: |
@@ -165,7 +167,7 @@ jobs:
165167

166168
- name: Run cibuildwheel
167169
run: |
168-
python3 -m pip install cibuildwheel==2.19.1
170+
python3 -m pip install cibuildwheel==2.19.2
169171
python3 -m cibuildwheel
170172
env:
171173
CIBW_BUILD: ${{ format('cp3*-{0}_{1}', matrix.cibw_buildlinux, matrix.cibw_arch) }}
@@ -175,6 +177,7 @@ jobs:
175177
python3 {package}/libheif/linux_build_libs.py
176178
CIBW_ENVIRONMENT_LINUX: BUILD_DIR=/host${{ env.BUILD_DIR }} PH_FULL_ACTION=1
177179
CIBW_ENVIRONMENT_PASS_LINUX: PH_TESTS_NO_HEVC_ENC
180+
CIBW_PRERELEASE_PYTHONS: True
178181

179182
- name: Checking built wheels
180183
run: |
@@ -229,7 +232,7 @@ jobs:
229232

230233
- name: Run cibuildwheel
231234
run: |
232-
python3 -m pip install cibuildwheel==2.19.1
235+
python3 -m pip install cibuildwheel==2.19.2
233236
python3 -m cibuildwheel
234237
env:
235238
CIBW_BUILD: ${{ format('pp3*-{0}_{1}', matrix.cibw_buildlinux, matrix.cibw_arch) }}

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
### Added
66

7-
- `image.info["heif"]` dictionary with `camera_intrinsic_matrix` HEIF specific metadata. Currently only reading is supported. #234
7+
- `image.info["heif"]` dictionary with `camera_intrinsic_matrix` HEIF specific metadata. Currently only reading is supported. #271
88

99
### Changed
1010

1111
- libheif updated from `1.17.6` to `1.18.1` version. #249
12+
- Python `3.13.0b3` wheels added; macOS **arm64** Python3.8 wheels dropped. #272
1213

1314
## [0.17.0 - 2024-07-02]
1415

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ if im.info["depth_images"]:
143143

144144
### Wheels
145145

146-
| **_Wheels table_** | macOS<br/>Intel | macOS<br/>Silicon | Windows<br/>64bit | musllinux* | manylinux* |
147-
|--------------------|:---------------:|:-----------------:|:-----------------:|:----------:|:----------:|
148-
| CPython 3.8 || | |||
149-
| CPython 3.9 ||| |||
150-
| CPython 3.10 ||| |||
151-
| CPython 3.11 ||| |||
152-
| CPython 3.12 ||| |||
153-
| CPython 3.13 ||| |||
154-
| PyPy 3.9 v7.3 ||| | N/A ||
155-
| PyPy 3.10 v7.3 ||| | N/A ||
146+
| **_Wheels table_** | macOS<br/>Intel | macOS<br/>Silicon | Windows<br/> | musllinux* | manylinux* |
147+
|--------------------|:---------------:|:-----------------:|:------------:|:----------:|:----------:|
148+
| CPython 3.8 || N/A | |||
149+
| CPython 3.9 ||| |||
150+
| CPython 3.10 ||| |||
151+
| CPython 3.11 ||| |||
152+
| CPython 3.12 ||| |||
153+
| CPython 3.13 ||| |||
154+
| PyPy 3.9 v7.3 ||| | N/A ||
155+
| PyPy 3.10 v7.3 ||| | N/A ||
156156

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

ci/cirrus_wheels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ wheel_macos_arm_task:
99
PATH: /opt/homebrew/opt/[email protected]/bin:$PATH
1010
CIBW_ARCHS: arm64
1111
CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET=14.0 PH_FULL_ACTION=1'
12+
CIBW_PRERELEASE_PYTHONS: True
1213

1314
install_pre_requirements_script:
1415
- brew update || true
1516
- brew install libheif
1617
- brew install [email protected]
1718
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python
1819
install_cibuildwheel_script:
19-
- python3 -m pip install --break-system-packages cibuildwheel==2.19.1
20+
- python3 -m pip install --break-system-packages cibuildwheel==2.19.2
2021
run_cibuildwheel_script:
2122
- python3 -m cibuildwheel
2223
wheels_artifacts:
@@ -33,14 +34,15 @@ wheel_pi_heif_macos_arm_task:
3334
PATH: /opt/homebrew/opt/[email protected]/bin:$PATH
3435
CIBW_ARCHS: arm64
3536
CIBW_ENVIRONMENT: 'MACOSX_DEPLOYMENT_TARGET=14.0 PH_LIGHT_ACTION=1'
37+
CIBW_PRERELEASE_PYTHONS: True
3638

3739
install_pre_requirements_script:
3840
- brew update || true
3941
- brew install libheif
4042
- brew install [email protected]
4143
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python
4244
install_cibuildwheel_script:
43-
- python3 -m pip install --break-system-packages cibuildwheel==2.19.1
45+
- python3 -m pip install --break-system-packages cibuildwheel==2.19.2
4446
transform_to_pi_heif_script:
4547
- cp -r -v ./pi-heif/* .
4648
- python3 .github/transform_to-pi_heif.py

libheif/linux_build_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from re import IGNORECASE, MULTILINE, match, search
77
from subprocess import DEVNULL, PIPE, STDOUT, CalledProcessError, TimeoutExpired, run
88

9-
# 1
9+
# 0
1010
BUILD_DIR = environ.get("BUILD_DIR", "/tmp/ph_build_stuff")
1111
INSTALL_DIR_LIBS = environ.get("INSTALL_DIR_LIBS", "/usr")
1212
PH_LIGHT_VERSION = sys.maxsize <= 2**32 or getenv("PH_LIGHT_ACTION", "0") != "0"

pi-heif/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,15 @@ if im.info["depth_images"]:
8484

8585
### Wheels
8686

87-
| **_Wheels table_** | macOS<br/>Intel | macOS<br/>Silicon | Windows<br/>64bit | musllinux* | manylinux* |
88-
|--------------------|:---------------:|:-----------------:|:-----------------:|:----------:|:----------:|
89-
| CPython 3.8 ||||||
90-
| CPython 3.9 ||||||
91-
| CPython 3.10 ||||||
92-
| CPython 3.11 ||||||
93-
| CPython 3.12 ||||||
94-
| PyPy 3.9 v7.3 |||| N/A ||
95-
| PyPy 3.10 v7.3 |||| N/A ||
87+
| **_Wheels table_** | macOS<br/>Intel | macOS<br/>Silicon | Windows<br/> | musllinux* | manylinux* |
88+
|--------------------|:---------------:|:-----------------:|:------------:|:----------:|:----------:|
89+
| CPython 3.8 || N/A ||||
90+
| CPython 3.9 ||||||
91+
| CPython 3.10 ||||||
92+
| CPython 3.11 ||||||
93+
| CPython 3.12 ||||||
94+
| CPython 3.13 ||||||
95+
| PyPy 3.9 v7.3 |||| N/A ||
96+
| PyPy 3.10 v7.3 |||| N/A ||
9697

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

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ requires = [
77
[tool.cibuildwheel]
88
build-verbosity = "2"
99
build = [
10-
"cp38-* cp39-* cp310-* cp311-* cp312-* pp39-* pp310-*",
10+
"cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* pp39-* pp310-*",
1111
]
1212
skip = [
13-
"cp36-* cp37-* pp37-* pp38-*",
13+
"cp36-* cp37-* pp37-* pp38-* cp38-macosx_arm64",
1414
]
1515
test-extras = "tests-min"
1616
test-command = "pytest {project}"
@@ -32,7 +32,6 @@ repair-wheel-command = [
3232
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel}",
3333
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel -v --require-archs {delocate_archs} -w {dest_dir} {wheel}",
3434
]
35-
test-skip = "cp38-macosx_arm64"
3635

3736
[tool.cibuildwheel.windows]
3837
before-build = [

0 commit comments

Comments
 (0)