From 2c244f59458b9b6de29f7809bbf19adc822bd060 Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Thu, 16 May 2024 20:03:16 +0200 Subject: [PATCH] Stop building binary wheels With tree-sitter-zeek providing a proper Python package this project is script-only. --- .github/workflows/build_wheels.yml | 28 ++++++++++------------------ pyproject.toml | 3 +-- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 43a6d2d..993f53c 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -25,34 +25,26 @@ jobs: with: path: dist/*.tar.gz - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} + check: + name: Run tests + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - os: [ubuntu-20.04, windows-2019, macos-12, macos-13] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v5 with: - submodules: recursive + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: pip install .[dev] + - run: pytest - - name: Build and test wheels - uses: pypa/cibuildwheel@v2.16 - env: - # We currently skip all PyPy builds due to hard exits and - # segfaults of the Python interpreter with some input trees. - CIBW_SKIP: pp* - CIBW_TEST_REQUIRES: pytest - CIBW_TEST_COMMAND: python -mpytest {project} - CIBW_TEST_COMMAND_WINDOWS: python.exe -mpytest {project} - - uses: actions/upload-artifact@v3 - with: - path: ./wheelhouse/*.whl upload_all: - needs: [build_sdist, build_wheels] + needs: [build_sdist, check] runs-on: ubuntu-latest if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') steps: diff --git a/pyproject.toml b/pyproject.toml index e8b232f..5dbfb54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [build-system] -requires = ["setuptools", "wheel"] -build-backend = "setuptools.build_meta" +requires = ["setuptools"] [project] name = "zeekscript"