Fix musllinux detection and move most CIBW options to pyproject.toml.

This commit is contained in:
Josh W 2024-09-04 13:27:14 -04:00
parent 53ba10ee35
commit c5c32ab5fd
2 changed files with 20 additions and 8 deletions

View file

@ -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:

View file

@ -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'