Przeglądaj źródła

cibuildwheel: define options in pyproject.toml

Jelmer Vernooij 11 miesięcy temu
rodzic
commit
c6ecfcf6a1
2 zmienionych plików z 7 dodań i 9 usunięć
  1. 0 9
      .github/workflows/python-distributions.yml
  2. 7 0
      pyproject.toml

+ 0 - 9
.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:

+ 7 - 0
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_*"