Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
CIBW_ENVIRONMENT_MACOS: PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig LDFLAGS=-headerpad_max_install_names
CIBW_ENVIRONMENT_WINDOWS: INCLUDE=C:\\cibw\\vendor\\include LIB=C:\\cibw\\vendor\\lib PYAV_SKIP_TESTS=unicode_filename
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: delvewheel repair --add-path C:\cibw\vendor\bin -w {dest_dir} {wheel}
CIBW_BUILD: "cp312* cp314t*"
CIBW_BUILD: "cp312* cp314t* cp315t*"
CIBW_BUILD_FRONTEND: uv
CIBW_TEST_COMMAND: mv {project}/av {project}/av.disabled && python -m pytest {package}/tests && mv {project}/av.disabled {project}/av
CIBW_TEST_REQUIRES: pytest numpy
Expand All @@ -92,15 +92,18 @@ jobs:
run: |
uv venv --seed --python 3.12 .venv-3.12
uv venv --seed --python 3.14t .venv-3.14t
uv venv --seed --python 3.15t .venv-3.15t
uv pip install --python .venv-3.12/bin/python -U "cython>=3.1.0,<4" "setuptools>=77.0" wheel
uv pip install --python .venv-3.14t/bin/python -U "cython>=3.1.0,<4" "setuptools>=77.0" wheel
uv pip install --python .venv-3.15t/bin/python -U "cython>=3.3.0,<4" "setuptools>=78.0" wheel
# patchelf 0.18 (ubuntu-24.04's system version) corrupts ELF files
# with large p_align; pin <0.18 for auditwheel to use.
uv pip install --python .venv-3.12/bin/python -U ziglang auditwheel 'patchelf<0.18'
- name: Cross-compile armv7l wheels with zig
env:
HOST_PY312: .venv-3.12/bin/python
HOST_PY314T: .venv-3.14t/bin/python
HOST_PY315T: .venv-3.15t/bin/python
TOOLS_PY: .venv-3.12/bin/python
run: bash scripts/build-armv7l-cross.sh
- name: Upload wheels
Expand Down
7 changes: 5 additions & 2 deletions scripts/build-armv7l-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# armv7l without running any armv7l code. The target Python trees + system libs
# are copied out of the manylinux armv7l image with `docker cp` (no execution).
#
# Builds two manylinux (glibc) wheels: cp312-abi3 and cp314t.
# Builds three manylinux (glibc) wheels: cp312-abi3, cp314t, and cp315t.
# musllinux armv7l is skipped: musl ffmpeg needs system libs (libdrm, libxcb*,
# libbz2) the musllinux image doesn't ship for auditwheel to bundle.

Expand All @@ -18,9 +18,11 @@ root="$(cd "$here/.." && pwd)"
cd "$root"

# Host interpreters that drive each build (must match the wheel's Python: 3.12
# emits cp312-abi3, 3.14t emits cp314t). zig/auditwheel run from TOOLS_PY.
# emits cp312-abi3; free-threaded hosts emit their matching tags).
# zig/auditwheel run from TOOLS_PY.
HOST_PY312="${HOST_PY312:-python3.12}"
HOST_PY314T="${HOST_PY314T:-python3.14t}"
HOST_PY315T="${HOST_PY315T:-python3.15t}"
TOOLS_PY="${TOOLS_PY:-python3}"

DIST_DIR="${DIST_DIR:-$root/dist}"
Expand Down Expand Up @@ -134,6 +136,7 @@ build_one() {
extract_image
build_one "$HOST_PY312" "cp312-cp312"
build_one "$HOST_PY314T" "cp314*-cp314t"
build_one "$HOST_PY315T" "cp315*-cp315t"

echo
echo "Built armv7l wheels:"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def register_doctests(mod):
for test in suite._tests:

def func(self):
return test.runTest()
return test.debug()

name = str("test_" + re.sub("[^a-zA-Z0-9]+", "_", test.id()).strip("_"))
func.__name__ = name
Expand Down