Skip to content

Commit d6dc01d

Browse files
committed
chore: make the wheel packages we build for macOS support macOS 11.0 and above
1 parent 301fcbe commit d6dc01d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ jobs:
210210
ls -lah ./dist/
211211
- name: Make the wheels we build also support lower versions of macOS
212212
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' }}
213-
# Change the platform tag part of the wheel filename to `macosx_11_xxx` (means to support macOS 11)
213+
# Change the platform tag part of the wheel filename to `macosx_11_0_xxx` (means to support macOS 11.0 and above)
214214
# See https://packaging.python.org/en/latest/specifications/binary-distribution-format/#file-format
215215
# A wheel package file will only be selected by pip to install if the platform tag satisfies, regardless of whether the binary compatibility actually is.
216216
# Otherwise, pip would fallback to compile from the source distribution.
217217
run: |
218218
for file in *.whl; do
219-
mv "$file" "$(echo "$file" | sed 's/macosx_[0-9]\+/macosx_11/')";
219+
mv "$file" "$(echo "$file" | sed 's/macosx_[0-9]\+_[0-9]\+/macosx_11_0/')";
220220
done
221221
- name: Upload wheel as CI artifacts
222222
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)