Skip to content

Commit

Permalink
Stop building binary wheels
Browse files Browse the repository at this point in the history
With tree-sitter-zeek providing a proper Python package this project is
script-only.
  • Loading branch information
bbannier committed Jun 19, 2024
1 parent 8c6a6fe commit 72a49af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]

[project]
name = "zeekscript"
Expand Down

0 comments on commit 72a49af

Please sign in to comment.