changeset 52735:04a9d34395ed

ci: let `cibuildwheel` determine the wheel versions from the macOS config I'd say we should align IDs on what `cibuildwheel` is doing (so I'm not sure why there are names like "cp38-cp38" when the tool produces IDs like "cp38-macos_x86_64"). But the names are intergal to several job targets in order to upload them, or fetch and install them. For now, I'm settling on simply eliminating a hardcoded list, and let `cibuildwheel` drive the bus based on the configuration it sees.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 19 Dec 2024 18:35:48 -0500
parents 89e6952805bd
children f06665fc5205
files contrib/heptapod-ci.yml
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/heptapod-ci.yml	Wed Jan 15 12:27:13 2025 -0500
+++ b/contrib/heptapod-ci.yml	Thu Dec 19 18:35:48 2024 -0500
@@ -573,7 +573,8 @@
       - PLATFORM=`$PYTHON -c 'import sys; print(sys.platform)'`
       - rm -rf tmp-wheels
       - cibuildwheel --output-dir tmp-wheels/
-      - for py_version in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313; do
+      - for py_version in $(cibuildwheel --print-build-identifiers | egrep -o 'cp[0-9]+' | sort | uniq); do
+          py_version="${py_version}-${py_version}";
           mkdir -p wheels/$PLATFORM/c/$py_version/;
           mv tmp-wheels/*$py_version*.whl wheels/$PLATFORM/c/$py_version/;
         done