Skip to content

Commit

Permalink
Move some cibuildwheel settings into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Apr 28, 2024
1 parent 4ae8833 commit 0166b0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_TEST_COMMAND: >
whisper-cpp -h &&
python -m whisper_cpp -h
CIBW_ARCHS_MACOS: "native"
CIBW_BUILD: "cp312-*"
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-13' && '10.12' || '11.0' }}

- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -64,9 +59,6 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_TEST_COMMAND: >
whisper-cpp -h &&
python -m whisper_cpp -h
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BUILD: "cp312-${{ matrix.tag }}_*"

Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ line-length = 100

[tool.ruff.lint]
extend-select = ["I", "B", "UP"]

[tool.cibuildwheel]
test-command = [
"whisper-cpp -h",
"python -m whisper_cpp -h",
]
environment.MACOSX_DEPLOYMENT_TARGET = "10.12"

[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
environment.MACOSX_DEPLOYMENT_TARGET = "11.0"

0 comments on commit 0166b0d

Please sign in to comment.