From d850a7a28cc04648c4965e3ea6797c72c5fa728d Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 3 Oct 2023 10:48:40 +0200 Subject: [PATCH] ci: build Python 3.12 packages --- .github/workflows/packages-bin.yml | 12 +++++++++--- tools/build/build_macos_arm64.sh | 8 ++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/packages-bin.yml b/.github/workflows/packages-bin.yml index 042b72d9e..e118ef0ca 100644 --- a/.github/workflows/packages-bin.yml +++ b/.github/workflows/packages-bin.yml @@ -19,7 +19,9 @@ jobs: fail-fast: false matrix: arch: [x86_64, i686, ppc64le, aarch64] - pyver: [cp37, cp38, cp39, cp310, cp311] + # NOMERGE: one-off build of cp312 packages + # pyver: [cp37, cp38, cp39, cp310, cp311] + pyver: [cp312] platform: [manylinux, musllinux] steps: @@ -101,7 +103,9 @@ jobs: matrix: # These archs require an Apple M1 runner: [arm64, universal2] arch: [x86_64] - pyver: [cp37, cp38, cp39, cp310, cp311] + # NOMERGE: one-off build of cp312 packages + # pyver: [cp37, cp38, cp39, cp310, cp311] + pyver: [cp312] steps: - uses: actions/checkout@v3 @@ -144,7 +148,9 @@ jobs: matrix: # Might want to add win32, untested at the moment. arch: [win_amd64] - pyver: [cp37, cp38, cp39, cp310, cp311] + # NOMERGE: one-off build of cp312 packages + # pyver: [cp37, cp38, cp39, cp310, cp311] + pyver: [cp312] steps: - uses: actions/checkout@v3 diff --git a/tools/build/build_macos_arm64.sh b/tools/build/build_macos_arm64.sh index 45d999af7..01eccc678 100755 --- a/tools/build/build_macos_arm64.sh +++ b/tools/build/build_macos_arm64.sh @@ -10,7 +10,9 @@ set -euo pipefail # set -x -python_versions="3.8.10 3.9.13 3.10.5 3.11.0" +# NOMERGE: one-off build of cp312 packages +# python_versions="3.8.10 3.9.13 3.10.5 3.11.0" +python_versions="3.12.0" pg_version=16 function log { @@ -93,7 +95,9 @@ python tools/build/copy_to_binary.py # Build the binary packages export CIBW_PLATFORM=macos export CIBW_ARCHS=arm64 -export CIBW_BUILD='cp{38,39,310,311}-*' +# NOMERGE: one-off build of cp312 packages +# export CIBW_BUILD='cp{38,39,310,311}-*' +export CIBW_BUILD='cp312-*' export CIBW_TEST_REQUIRES="./psycopg[test] ./psycopg_pool" export CIBW_TEST_COMMAND="pytest {project}/tests -m 'not slow and not flakey' --color yes" -- 2.47.2