From 941ac9a72482f7d37584f43f9bd34063a3751aa5 Mon Sep 17 00:00:00 2001 From: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com> Date: Sun, 29 Oct 2023 14:57:07 +0100 Subject: [PATCH] chore: add support for Python 3.12 macOS arm64 wheels --- scripts/build/appveyor.py | 2 +- scripts/build/build_macos_arm64.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build/appveyor.py b/scripts/build/appveyor.py index d2752f9f5..25db90555 100755 --- a/scripts/build/appveyor.py +++ b/scripts/build/appveyor.py @@ -660,7 +660,7 @@ def py_ver(self): For large values of 2, occasionally. """ rv = os.environ['PY_VER'] - assert rv in ('37', '38', '39', '310', '311', "312"), rv + assert rv in ('37', '38', '39', '310', '311', '312'), rv return rv @property diff --git a/scripts/build/build_macos_arm64.sh b/scripts/build/build_macos_arm64.sh index 1f951c34f..e468c3168 100755 --- a/scripts/build/build_macos_arm64.sh +++ b/scripts/build/build_macos_arm64.sh @@ -10,7 +10,7 @@ set -euo pipefail # set -x -python_versions="3.8.10 3.9.13 3.10.5 3.11.0 3.12.0" +python_versions="3.8.18 3.9.18 3.10.13 3.11.6 3.12.0" pg_version=16 function log { @@ -89,7 +89,7 @@ log "building wheels" # Build the binary packages export CIBW_PLATFORM=macos export CIBW_ARCHS=arm64 -export CIBW_BUILD='cp{38,39,310,311}-*' +export CIBW_BUILD='cp{38,39,310,311,312}-*' export CIBW_TEST_COMMAND='python -c "import tests; tests.unittest.main(defaultTest=\"tests.test_suite\")"' export PSYCOPG2_TESTDB=postgres