Skip to content

Commit

Permalink
Merge pull request #1275 from jelmer/cibuildwheel
Browse files Browse the repository at this point in the history
cibuildwheel: define options in pyproject.toml
  • Loading branch information
jelmer authored Apr 6, 2024
2 parents 91f9ef9 + c6ecfcf commit ee02234
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/python-distributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ jobs:
if: "matrix.os == 'ubuntu-latest'"
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
CIBW_ARCHS_WINDOWS: AMD64 x86
CIBW_BEFORE_BUILD: >
pip install -U setuptools-rust &&
curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y &&
rustup show
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,10 @@ target-version = "py37"

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.cibuildwheel]
environment = {PATH="$HOME/.cargo/bin:$PATH"}
before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"

[tool.cibuildwheel.linux]
skip = "*-musllinux_*"

0 comments on commit ee02234

Please sign in to comment.