From 7a3dbec81d88cf2f509eb238648abf410104a777 Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Tue, 4 Jan 2022 16:52:34 +0000 Subject: [PATCH 1/3] Github actions Use `cibuildwheel` to create wheels on all archs. --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ec0f303 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build + +on: [push, pull_request] + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2019, macos-10.15] + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + name: Install Python + with: + python-version: '3.7' + + - name: Set up QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v1 + with: + platforms: all + + - name: Build wheels + uses: pypa/cibuildwheel@v2.3.1 + env: + # configure cibuildwheel to build native archs ('auto'), and some + # emulated ones + CIBW_ARCHS_LINUX: auto aarch64 + + - uses: actions/upload-artifact@v2 + with: + path: ./wheelhouse/*.whl From 7232892fe780e8295ce2e523c2be084605149805 Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Tue, 4 Jan 2022 16:56:10 +0000 Subject: [PATCH 2/3] Create pyproject.toml --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0433e43 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools", "wheel", "setuptools_scm[toml]", "cython", "numpy"] + +# enable version inference +[tool.setuptools_scm] From ebe5bf4e7335e36555d3f4b9e0ead13ae282ce78 Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Tue, 4 Jan 2022 19:24:53 +0000 Subject: [PATCH 3/3] Skipy all PyPy builds --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0433e43..573f053 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,3 +3,7 @@ requires = ["setuptools", "wheel", "setuptools_scm[toml]", "cython", "numpy"] # enable version inference [tool.setuptools_scm] + +[tool.cibuildwheel] +# Disable building PyPy wheels on all platforms +skip = "pp*"