From c6ecfcf6a1da8fc649a846be4ee848f781ce0a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sat, 6 Apr 2024 16:36:17 +0100 Subject: [PATCH] cibuildwheel: define options in pyproject.toml --- .github/workflows/python-distributions.yml | 9 --------- pyproject.toml | 7 +++++++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python-distributions.yml b/.github/workflows/python-distributions.yml index aab1375ec..09e198020 100644 --- a/.github/workflows/python-distributions.yml +++ b/.github/workflows/python-distributions.yml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 6b920262b..6592b8f7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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_*"