Skip to content

Commit dd5ade2

Browse files
committed
fix macos wheel name
1 parent e6e6434 commit dd5ade2

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
ci/deploy.sh build_pyfury
5555
if [[ "$OSTYPE" == "linux"* ]]; then
56-
ci/deploy.sh rename_linux_wheels dist
56+
ci/deploy.sh rename_wheels dist
5757
fi
5858
- name: Upload Wheel Artifact
5959
uses: actions/upload-artifact@v4

ci/deploy.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,20 @@ create_py_envs() {
5555
conda env list
5656
}
5757

58-
rename_linux_wheels() {
58+
rename_wheels() {
5959
for path in "$1"/*.whl; do
6060
if [ -f "${path}" ]; then
61+
# Rename linux to manylinux1
6162
new_path="${path//linux/manylinux1}"
6263
if [ "${path}" != "${new_path}" ]; then
6364
mv "${path}" "${new_path}"
6465
fi
66+
67+
# Copy macosx_14_0_x86_64 to macosx_10_12_x86_64
68+
if [[ "${path}" == *macosx_14_0_x86_64.whl ]]; then
69+
copy_path="${path//macosx_14_0_x86_64/macosx_10_12_x86_64}"
70+
cp "${path}" "${copy_path}"
71+
fi
6572
fi
6673
done
6774
}
@@ -145,7 +152,7 @@ deploy_python() {
145152
mv dist/pyfury*.whl "$WHEEL_DIR"
146153
done
147154
if [[ "$OSTYPE" == "linux"* ]]; then
148-
rename_linux_wheels "$WHEEL_DIR"
155+
rename_wheels "$WHEEL_DIR"
149156
fi
150157
twine check "$WHEEL_DIR"/pyfury*.whl
151158
twine upload -r pypi "$WHEEL_DIR"/pyfury*.whl

0 commit comments

Comments
 (0)