From 0d85de6b01eeeb42076b584735f4a497258736cc Mon Sep 17 00:00:00 2001 From: John Kerl Date: Wed, 22 May 2024 11:40:38 -0400 Subject: [PATCH] try the cp strategy --- .github/workflows/python-packaging.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/python-packaging.yml b/.github/workflows/python-packaging.yml index 8039311053..16b3fc1c0a 100644 --- a/.github/workflows/python-packaging.yml +++ b/.github/workflows/python-packaging.yml @@ -211,6 +211,21 @@ jobs: set -x mkdir dist cp sdist/tiledbsoma-*.tar.gz wheels-*/*.whl dist + echo + cd dist + # TO DO: COMMENT ME IF THIS WORKS + for wheel_file_name in *.whl; do + if expr "$wheel_file_name" : ".*macosx_11_0.*"; then + src="macosx_11_0" + for dst in "macosx_12_0" "macosx_13_0" "macosx_14_0"; do + new_name=$(echo $wheel_file_name | sed "s/$src/$dst/") + echo Copying $wheel_file_name to $new_name + cp $wheel_file_name $new_name + done + fi + done + cd .. + echo ls -l dist - name: Publish packages to PyPI uses: pypa/gh-action-pypi-publish@release/v1