2021-03-21 23:37:47 +00:00
|
|
|
[build-system]
|
2024-09-05 00:57:19 +00:00
|
|
|
requires = ['wheel', 'setuptools', 'Cython', 'setuptools_scm[toml]']
|
2021-03-21 23:37:47 +00:00
|
|
|
build-backend = 'setuptools.build_meta'
|
|
|
|
|
2024-09-04 17:27:14 +00:00
|
|
|
[tool.cibuildwheel]
|
|
|
|
test-command = 'pytest {package}/tests'
|
|
|
|
test-extras = ['tests']
|
2024-09-06 00:33:27 +00:00
|
|
|
# There seems to be a problem compiling NumPy for testing due to a missing
|
|
|
|
# constant definition for s390x builds. Skipping for now.
|
|
|
|
test-skip = "*-musllinux_s390x"
|
2024-09-04 17:27:14 +00:00
|
|
|
|
|
|
|
[tool.cibuildwheel.linux]
|
|
|
|
archs = ['auto', 'aarch64', 'ppc64le', 's390x']
|
|
|
|
before-test = "yum -y install libsndfile"
|
|
|
|
|
|
|
|
[tool.cibuildwheel.macos]
|
|
|
|
before-test = "brew install libsndfile"
|
|
|
|
|
2024-09-06 17:35:19 +00:00
|
|
|
# Will re-enable Windows ARM64 once libebur128 pull request #131 is merged.
|
2024-09-04 17:27:14 +00:00
|
|
|
# https://github.com/jiixyj/libebur128/pull/131
|
2024-09-06 17:35:19 +00:00
|
|
|
#[tool.cibuildwheel.windows]
|
2024-09-04 17:27:14 +00:00
|
|
|
#archs = ['auto', 'ARM64']
|
|
|
|
|
|
|
|
[[tool.cibuildwheel.overrides]]
|
2024-09-06 00:33:27 +00:00
|
|
|
# There is a known issue with buildroot/musl images not detecting libraries
|
|
|
|
# correctly. Python's ctypes library is affected by this, which is needed by
|
|
|
|
# python-soundfile to use libsndfile. This hack is to get around this issue to
|
|
|
|
# be able to test on musllinux successfully.
|
|
|
|
# See https://github.com/bastibe/python-soundfile/issues/258
|
2024-09-04 17:27:14 +00:00
|
|
|
select = '*-musllinux*'
|
2024-09-05 04:22:30 +00:00
|
|
|
before-test = [
|
|
|
|
'apk add libsndfile',
|
2024-09-05 11:08:25 +00:00
|
|
|
'pip install soundfile',
|
2024-09-05 04:22:30 +00:00
|
|
|
'PYVER=`python -c "import sys; print(\".\".join(map(str, sys.version_info[:2])))"`',
|
2024-09-06 17:35:19 +00:00
|
|
|
'sed -i "192b1; b ;:1;s/_explicit_libname/\"\/usr\/lib\/libsndfile.so.1\"/g" $VIRTUAL_ENV/lib/python$PYVER/site-packages/soundfile.py',
|
2024-09-05 04:22:30 +00:00
|
|
|
]
|
2024-09-04 17:27:14 +00:00
|
|
|
|
2021-03-21 23:37:47 +00:00
|
|
|
[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'
|