This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to tag v0.9.2
in repository https://gitbox.apache.org/repos/asf/fury.git

commit dd5ade2e7532cbe36a8ae73641f06b83c93060db
Author: chaokunyang <[email protected]>
AuthorDate: Fri Feb 7 00:53:59 2025 +0800

    fix macos wheel name
---
 .github/workflows/release.yaml |  2 +-
 ci/deploy.sh                   | 11 +++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 343bb8eb..8e050d4b 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -53,7 +53,7 @@ jobs:
         run: |
           ci/deploy.sh build_pyfury
           if [[ "$OSTYPE" == "linux"* ]]; then
-            ci/deploy.sh rename_linux_wheels dist
+            ci/deploy.sh rename_wheels dist
           fi
       - name: Upload Wheel Artifact
         uses: actions/upload-artifact@v4
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 9934ee15..525baaaf 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -55,13 +55,20 @@ create_py_envs() {
   conda env list
 }
 
-rename_linux_wheels() {
+rename_wheels() {
   for path in "$1"/*.whl; do
     if [ -f "${path}" ]; then
+      # Rename linux to manylinux1
       new_path="${path//linux/manylinux1}"
       if [ "${path}" != "${new_path}" ]; then
         mv "${path}" "${new_path}"
       fi
+
+      # Copy macosx_14_0_x86_64 to macosx_10_12_x86_64
+      if [[ "${path}" == *macosx_14_0_x86_64.whl ]]; then
+        copy_path="${path//macosx_14_0_x86_64/macosx_10_12_x86_64}"
+        cp "${path}" "${copy_path}"
+      fi
     fi
   done
 }
@@ -145,7 +152,7 @@ deploy_python() {
     mv dist/pyfury*.whl "$WHEEL_DIR"
   done
   if [[ "$OSTYPE" == "linux"* ]]; then
-    rename_linux_wheels "$WHEEL_DIR"
+    rename_wheels "$WHEEL_DIR"
   fi
   twine check "$WHEEL_DIR"/pyfury*.whl
   twine upload -r pypi "$WHEEL_DIR"/pyfury*.whl


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to