From 1c2a4dae8850d9d98a73a4f8c856e4c26f79a275 Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Mon, 27 Oct 2025 12:20:23 +0100 Subject: [PATCH] ci: fix tests on macOS 14 + Python 3.9 Avoid compiling pyobjc-core and requiring a compiler for this specific combination. We now use the precompiled pyobjc wheel (<=11.0) to avoid the issue. --- .github/workflows/pytest.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 75bc8193..c2e08466 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -34,6 +34,14 @@ jobs: echo "DYLD_LIBRARY_PATH=$(brew --prefix libsodium)/lib" >> $GITHUB_ENV if: runner.os == 'macOS' + # Workaround to avoid building pyobjc-core on macOS14 + Python 3.9. Support for Python 3.9 will be dropped + # once we support a more recent version of Python on functions. + - name: Avoid building pyobjc-core on macOS+Py3.9 + if: runner.os == 'macOS' && matrix.python-version == '3.9' + run: | + echo "pyobjc-core<12" > /tmp/constraints.txt + echo "PIP_CONSTRAINT=/tmp/constraints.txt" >> $GITHUB_ENV + - name: "Install Hatch" run: | python3 -m venv /tmp/venv