pyebur128/pyproject.toml

35 lines
1.1 KiB
TOML

[build-system]
requires = ['wheel', 'setuptools', 'Cython', 'setuptools_scm[toml]']
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',
'PYVER=`python -c "import sys; print(\".\".join(map(str, sys.version_info[:2])))"`',
'sed -i "192b1; b ;:1;s/_explicit_libname/\"\/usr\/lib\/libsndfile.so.1.0.37\"/g" $VIRTUAL_ENV/lib/python$PYVER/site-packages/soundfile.py',
]
[tool.pytest.ini_options]
minversion = '6.0'
addopts = '--cov-report=xml --cov-report=term:skip-covered --cov=pyebur128'
testpaths = ['tests']
[tool.setuptools_scm]
write_to = 'src/pyebur128/version.py'