π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Don't run tests on cp313t due to lack of CFFI support. (#459)
Peter Sobotc77473af90d0
diff --git a/.github/workflows/all.yml b/.github/workflows/all.ymlindex 0017c2c..7232514 100644--- a/.github/workflows/all.yml+++ b/.github/workflows/all.yml@@ -480,7 +480,10 @@ jobs:env:GCS_ASSET_BUCKET_NAME: ${{ secrets.GCS_ASSET_BUCKET_NAME }}GCS_READER_SERVICE_ACCOUNT_KEY: ${{ secrets.GCS_READER_SERVICE_ACCOUNT_KEY }}- run: python ./tests/download_test_plugins.py+ run: |+ # Inline install here on purpose, as this is only required for test _setup_ and not running+ pip install google-cloud-storage+ python ./tests/download_test_plugins.py- name: Setup audio device for testingif: runner.os == 'Linux'run: |@@ -714,7 +717,10 @@ jobs:env:GCS_ASSET_BUCKET_NAME: ${{ secrets.GCS_ASSET_BUCKET_NAME }}GCS_READER_SERVICE_ACCOUNT_KEY: ${{ secrets.GCS_READER_SERVICE_ACCOUNT_KEY }}- run: python ./tests/download_test_plugins.py+ run: |+ # Inline install here on purpose, as this is only required for test _setup_ and not running+ pip install google-cloud-storage+ python ./tests/download_test_plugins.py- name: Run testsif: matrix.os != 'ubuntu-24.04' || matrix.python-version != '3.10'run: pytest --maxfail=4 --cov-report term --cov-fail-under=${{ env.MINIMUM_COVERAGE_PERCENTAGE }} --cov=pedalboard --durations=100diff --git a/pyproject.toml b/pyproject.tomlindex 950a0d5..dcebe0a 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -10,9 +10,10 @@ test-command = "pytest {project}/tests"# so we can't run post-wheel-build tests there.# The musllinux containers on aarch64 take 6+ hours to test.# Also testing any pypy versions fails, as TensorFlow isn't pypy compatible.-test-skip = "*manylinux* *musllinux_aarch* *pp* *-macosx_universal2:arm64"-musllinux-x86_64-image = "quay.io/pypa/musllinux_1_1_x86_64:2024-04-29-07d05a0"-musllinux-aarch64-image = "quay.io/pypa/musllinux_1_1_aarch64:2024-04-29-07d05a0"+# cp313t is skipped because cffi doesn't support free-threaded Python 3.13.+test-skip = "*manylinux* *musllinux_aarch* *pp* *-macosx_universal2:arm64 *cp313t*"+musllinux-x86_64-image = "quay.io/pypa/musllinux_1_1_x86_64:latest"+musllinux-aarch64-image = "quay.io/pypa/musllinux_1_1_aarch64:latest"# See: https://cibuildwheel.readthedocs.io/en/stable/options/#examples[tool.cibuildwheel.linux]diff --git a/test-requirements.txt b/test-requirements.txtindex 0946fb5..f10fb78 100644--- a/test-requirements.txt+++ b/test-requirements.txt@@ -12,7 +12,6 @@ wheelnumpy>=2.1.0rc1; python_version>="3.13"numpy>=2; python_version>="3.9" and python_version<"3.13"numpy<2; python_version<="3.8"-google-cloud-storagetqdmpsutilmypydiff --git a/tests/download_test_plugins.py b/tests/download_test_plugins.pyindex 068f409..45c2656 100644--- a/tests/download_test_plugins.py+++ b/tests/download_test_plugins.py@@ -8,13 +8,22 @@ import jsonimport osimport platform-from google.auth.exceptions import RefreshError-from google.cloud import storage-from google.oauth2 import service_account+try:+ from google.auth.exceptions import RefreshError+ from google.cloud import storage+ from google.oauth2 import service_account+ HAS_GCS = True+except ImportError:+ HAS_GCS = False+from tqdm import tqdmdef main():+ if not HAS_GCS:+ print("google-cloud-storage not installed. Skipping plugin download.")+ print("Install with: pip install google-cloud-storage")+ returnGCS_ASSET_BUCKET_NAME = os.environ.get("GCS_ASSET_BUCKET_NAME")if not GCS_ASSET_BUCKET_NAME:print("Missing GCS_ASSET_BUCKET_NAME environment variable! Not downloading.")