diff --git a/.github/workflows/build-test-pypi.yml b/.github/workflows/build-test-pypi.yml index 34ac720..1b8091f 100644 --- a/.github/workflows/build-test-pypi.yml +++ b/.github/workflows/build-test-pypi.yml @@ -72,16 +72,8 @@ jobs: - name: Build wheels uses: joerick/cibuildwheel@v2.20.0 env: - CIBW_ARCHS_LINUX: "auto aarch64 ppc64le s390x" - # Will re-enable ARM64 once libebur128 pull request #131 is merged. - # https://github.com/jiixyj/libebur128/pull/131 - #CIBW_ARCHS_WINDOWS: "auto ARM64" - CIBW_BEFORE_TEST_LINUX: yum -y install libsndfile - CIBW_BEFORE_TEST_MACOS: brew install libsndfile CIBW_BUILD: "cp${{ steps.pythonversion.outputs.value }}-*" CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}" - CIBW_TEST_COMMAND: pytest {package}/tests - CIBW_TEST_EXTRAS: "tests" - name: Upload wheels to artifact container uses: actions/upload-artifact@v4 with: diff --git a/pyproject.toml b/pyproject.toml index bdfdecf..f72c0bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,26 @@ requires = [ ] build-backend = 'setuptools.build_meta' +[tool.cibuildwheel] +test-command = 'pytest {package}/tests' +test-extras = ['tests'] + +[tool.cibuildwheel.linux] +archs = ['auto', 'aarch64', 'ppc64le', 's390x'] +before-test = "yum -y install libsndfile" + +[tool.cibuildwheel.macos] +before-test = "brew install libsndfile" + +#[tool.cibuildwheel.windows] +# Will re-enable ARM64 once libebur128 pull request #131 is merged. +# https://github.com/jiixyj/libebur128/pull/131 +#archs = ['auto', 'ARM64'] + +[[tool.cibuildwheel.overrides]] +select = '*-musllinux*' +before-test = "apk add libsndfile" + [tool.pytest.ini_options] minversion = '6.0' addopts = '--cov-report=xml --cov-report=term:skip-covered --cov=pyebur128'