From 61eaaa9b746fc7e63f9fb42817933a18cfac24ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 21:03:57 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.9.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.9...v0.9.10) - [github.com/python-jsonschema/check-jsonschema: 0.31.2 → 0.31.3](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.2...0.31.3) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 13e9553..8b36b8f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.9" + rev: "v0.9.10" hooks: - id: ruff args: [--fix, --show-fixes] @@ -33,7 +33,7 @@ repos: additional_dependencies: ["validate-pyproject-schema-store[all]>=2024.10.21"] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.31.2" + rev: "0.31.3" hooks: - id: check-dependabot - id: check-github-workflows From 122fbbd4053f8fd03989b587edb4ad2b8dc5ea33 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 15 Mar 2025 13:29:14 +0100 Subject: [PATCH 2/2] fix: remove Ninja from runners for SDist builds --- .github/workflows/build.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39f7dd4..b7013a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,8 +128,21 @@ jobs: name: cibw-sdist path: sdist - - name: Ensure Ninja not present on the system - run: if which ninja; then false; fi + - name: Remove ninja + shell: bash + run: | + # Remove ninja + set -euxo pipefail + # https://github.com/scikit-build/scikit-build-core/blob/3943920fa267dc83f9295279bea1c774c0916f13/src/scikit_build_core/program_search.py#L70 + for TOOL in ninja-build ninja samu; do + while which ${TOOL}; do + if [ "$RUNNER_OS" == "Windows" ]; then + rm -f "$(which ${TOOL})" + else + sudo rm -f $(which -a ${TOOL}) + fi + done + done - name: Install SDist run: pip install --no-binary=ninja $(ls sdist/*.tar.gz)[test]