Skip to content

Commit

Permalink
use pyproject.toml to configure cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed May 8, 2024
1 parent 23857f9 commit 95f5b69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/deploy-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ jobs:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
# CIBW_CONFIG_SETTINGS: "--build-option=--py-limited-api=cp38" # speeds up process at cost of less specific wheels
CIBW_BEFORE_ALL_LINUX: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal"
CIBW_BEFORE_ALL_MACOS: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal"
CIBW_BEFORE_ALL: "rustup target add all"
CIBW_ENVIRONMENT_LINUX: PATH="$HOME/.cargo/bin:$PATH" # other OS directly update environment from rustup.sh
CIBW_SKIP: "*-musllinux_i686" # No musllinux-i686 rust compiler available.
# with:
# package-dir: .
# output-dir: wheelhouse
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ path = "fizzbuzzo3/Cargo.toml" # Default value, can be omitted
binding = "PyO3" # Default value, can be omitted
features = ["pyo3/extension-module"]

[tool.cibuildwheel]
skip = "*-musllinux_i686" # No musllinux-i686 rust compiler available.
linux.before-all = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal"
linux.environment = { PATH="$HOME/.cargo/bin:$PATH" }
macos.before-all = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal"
windows.before-all = "rustup target add aarch64-pc-windows-msvc i586-pc-windows-msvc i686-pc-windows-msvc x86_64-pc-windows-msvc"

[project.optional-dependencies]
dev = [
"black",
Expand Down

0 comments on commit 95f5b69

Please sign in to comment.