Skip to content

Commit 65cffb7

Browse files
committed
fix macos wheel name
1 parent dd5ade2 commit 65cffb7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ jobs:
5252
shell: bash
5353
run: |
5454
ci/deploy.sh build_pyfury
55-
if [[ "$OSTYPE" == "linux"* ]]; then
56-
ci/deploy.sh rename_wheels dist
57-
fi
55+
ci/deploy.sh rename_wheels dist
5856
- name: Upload Wheel Artifact
5957
uses: actions/upload-artifact@v4
6058
with:

ci/deploy.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ rename_wheels() {
6767
# Copy macosx_14_0_x86_64 to macosx_10_12_x86_64
6868
if [[ "${path}" == *macosx_14_0_x86_64.whl ]]; then
6969
copy_path="${path//macosx_14_0_x86_64/macosx_10_12_x86_64}"
70-
cp "${path}" "${copy_path}"
70+
mv "${path}" "${copy_path}"
7171
fi
7272
fi
7373
done
@@ -151,9 +151,7 @@ deploy_python() {
151151
python setup.py bdist_wheel
152152
mv dist/pyfury*.whl "$WHEEL_DIR"
153153
done
154-
if [[ "$OSTYPE" == "linux"* ]]; then
155-
rename_wheels "$WHEEL_DIR"
156-
fi
154+
rename_wheels "$WHEEL_DIR"
157155
twine check "$WHEEL_DIR"/pyfury*.whl
158156
twine upload -r pypi "$WHEEL_DIR"/pyfury*.whl
159157
}

0 commit comments

Comments
 (0)