From e9262b4b266a2326c342a7828dd3cbd8d18f0b99 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 11 Sep 2023 03:49:11 +0000 Subject: [PATCH] CI: Use cibuildwheel [wheel build] --- .github/workflows/build_wheels.yml | 4 ++-- pyproject.toml | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 624e85916..b397bf515 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -63,8 +63,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - run: pip wheel -w ./wheelhouse/ . - + - name: Build wheels + uses: pypa/cibuildwheel@v2.15.0 - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl diff --git a/pyproject.toml b/pyproject.toml index c907d6c46..1dd80b2d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,3 +112,14 @@ only_sections = true [tool.setuptools_scm] write_to = "asv/_version.py" + +[tool.cibuildwheel.linux] +manylinux-x86_64-image = "manylinux2014" +manylinux-aarch64-image = "manylinux2014" +musllinux-x86_64-image = "musllinux_1_1" + +[tool.cibuildwheel.macos] +archs = "x86_64 arm64" + +[tool.cibuildwheel.windows] +archs = ['AMD64']