Fix building wheels for macOS (#2192)
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest]
|
||||
os: [macos-13]
|
||||
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
|
||||
steps:
|
||||
@@ -88,7 +88,13 @@ jobs:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
run: |
|
||||
python3 -m pip install --break-system-packages --upgrade pip
|
||||
python3 -m pip install --break-system-packages wheel twine==5.0.0 setuptools
|
||||
opts='--break-system-packages'
|
||||
v=${{ matrix.python-version }}
|
||||
if [[ $v == cp38 || $v == cp39 ]]; then
|
||||
opts=''
|
||||
fi
|
||||
|
||||
python3 -m pip install $opts --upgrade pip
|
||||
python3 -m pip install $opts wheel twine==5.0.0 setuptools
|
||||
|
||||
twine upload ./wheelhouse/*.whl
|
||||
|
||||
Reference in New Issue
Block a user