π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Add support for Python 3.14 and drop support for Python 3.9. (#439)
Peter Sobot652564e45ce6
diff --git a/.github/workflows/all.yml b/.github/workflows/all.ymlindex de5f90f..95dfc4e 100644--- a/.github/workflows/all.yml+++ b/.github/workflows/all.yml@@ -18,8 +18,8 @@ jobs:continue-on-error: truestrategy:matrix:- python-version: ['3.12']- os: ['ubuntu-24.04']+ python-version: ["3.12"]+ os: ["ubuntu-24.04"]name: Lint Pythonsteps:- name: Set up Python ${{ matrix.python-version }}@@ -65,7 +65,7 @@ jobs:run: uv run pyright ${{ github.workspace }}/pedalboard ${{ github.workspace }}/tests/test_*.pylint-cpp:- runs-on: 'ubuntu-24.04'+ runs-on: "ubuntu-24.04"continue-on-error: truename: Lint C++steps:@@ -75,7 +75,7 @@ jobs:uses: jidicula/[email protected]with:clang-format-version: 14- exclude-regex: 'vendors/'+ exclude-regex: "vendors/"fallback-style: LLVM# Build the native module with ccache enabled so we can share object files between builds:@@ -85,7 +85,13 @@ jobs:strategy:matrix:include:- - { os: ubuntu-24.04, python-version: "3.12", compiler: "gcc", cc: "ccache gcc", cxx: "ccache g++" }+ - {+ os: ubuntu-24.04,+ python-version: "3.12",+ compiler: "gcc",+ cc: "ccache gcc",+ cxx: "ccache g++",+ }name: Pre-build on ${{ matrix.os }} with ${{ matrix.compiler }}steps:- name: Set up Python ${{ matrix.python-version }}@@ -183,7 +189,13 @@ jobs:strategy:matrix:include:- - { os: macos-13, python-version: "3.12", compiler: "clang", cc: "ccache clang", cxx: "ccache clang++" }+ - {+ os: macos-13,+ python-version: "3.12",+ compiler: "clang",+ cc: "ccache clang",+ cxx: "ccache clang++",+ }name: Pre-build on ${{ matrix.os }} with ${{ matrix.compiler }}steps:- name: Set up Python ${{ matrix.python-version }}@@ -269,7 +281,13 @@ jobs:strategy:matrix:include:- - { os: ubuntu-24.04, python-version: "3.12", compiler: "clang", cc: "ccache clang", cxx: "ccache clang++" }+ - {+ os: ubuntu-24.04,+ python-version: "3.12",+ compiler: "clang",+ cc: "ccache clang",+ cxx: "ccache clang++",+ }name: Pre-build on ${{ matrix.os }} with ${{ matrix.compiler }}steps:- name: Set up Python ${{ matrix.python-version }}@@ -486,21 +504,111 @@ jobs:strategy:matrix:include:- - { os: macos-13, python-version: "3.9", compiler: "clang", cc: "ccache clang", cxx: "ccache clang++" }- - { os: macos-13, python-version: "3.10", compiler: "clang", cc: "ccache clang", cxx: "ccache clang++" }- - { os: macos-13, python-version: "3.11", compiler: "clang", cc: "ccache clang", cxx: "ccache clang++" }- - { os: macos-13, python-version: "3.12", compiler: "clang", cc: "ccache clang", cxx: "ccache clang++" }- - { os: macos-13, python-version: "3.13", compiler: "clang", cc: "ccache clang", cxx: "ccache clang++" }- - { os: ubuntu-24.04, python-version: "3.9", compiler: "gcc", cc: "ccache gcc", cxx: "ccache g++" }- - { os: ubuntu-24.04, python-version: "3.10", compiler: "gcc", cc: "ccache gcc", cxx: "ccache g++" }- - { os: ubuntu-24.04, python-version: "3.11", compiler: "gcc", cc: "ccache gcc", cxx: "ccache g++" }- - { os: ubuntu-24.04, python-version: "3.12", compiler: "gcc", cc: "ccache gcc", cxx: "ccache g++" }- - { os: ubuntu-24.04, python-version: "3.13", compiler: "gcc", cc: "ccache gcc", cxx: "ccache g++" }- - { os: windows-latest, python-version: "3.9", compiler: "msvc", cc: "msvc", cxx: "msvc" }- - { os: windows-latest, python-version: "3.10", compiler: "msvc", cc: "msvc", cxx: "msvc" }- - { os: windows-latest, python-version: "3.11", compiler: "msvc", cc: "msvc", cxx: "msvc" }- - { os: windows-latest, python-version: "3.12", compiler: "msvc", cc: "msvc", cxx: "msvc" }- - { os: windows-latest, python-version: "3.13", compiler: "msvc", cc: "msvc", cxx: "msvc" }+ - {+ os: macos-13,+ python-version: "3.10",+ compiler: "clang",+ cc: "ccache clang",+ cxx: "ccache clang++",+ }+ - {+ os: macos-13,+ python-version: "3.11",+ compiler: "clang",+ cc: "ccache clang",+ cxx: "ccache clang++",+ }+ - {+ os: macos-13,+ python-version: "3.12",+ compiler: "clang",+ cc: "ccache clang",+ cxx: "ccache clang++",+ }+ - {+ os: macos-13,+ python-version: "3.13",+ compiler: "clang",+ cc: "ccache clang",+ cxx: "ccache clang++",+ }+ - {+ os: macos-13,+ python-version: "3.14",+ compiler: "clang",+ cc: "ccache clang",+ cxx: "ccache clang++",+ }+ - {+ os: ubuntu-24.04,+ python-version: "3.10",+ compiler: "gcc",+ cc: "ccache gcc",+ cxx: "ccache g++",+ }+ - {+ os: ubuntu-24.04,+ python-version: "3.11",+ compiler: "gcc",+ cc: "ccache gcc",+ cxx: "ccache g++",+ }+ - {+ os: ubuntu-24.04,+ python-version: "3.12",+ compiler: "gcc",+ cc: "ccache gcc",+ cxx: "ccache g++",+ }+ - {+ os: ubuntu-24.04,+ python-version: "3.13",+ compiler: "gcc",+ cc: "ccache gcc",+ cxx: "ccache g++",+ }+ - {+ os: ubuntu-24.04,+ python-version: "3.14",+ compiler: "gcc",+ cc: "ccache gcc",+ cxx: "ccache g++",+ }+ - {+ os: windows-latest,+ python-version: "3.10",+ compiler: "msvc",+ cc: "msvc",+ cxx: "msvc",+ }+ - {+ os: windows-latest,+ python-version: "3.11",+ compiler: "msvc",+ cc: "msvc",+ cxx: "msvc",+ }+ - {+ os: windows-latest,+ python-version: "3.12",+ compiler: "msvc",+ cc: "msvc",+ cxx: "msvc",+ }+ - {+ os: windows-latest,+ python-version: "3.13",+ compiler: "msvc",+ cc: "msvc",+ cxx: "msvc",+ }+ - {+ os: windows-latest,+ python-version: "3.14",+ compiler: "msvc",+ cc: "msvc",+ cxx: "msvc",+ }name: Test with Python ${{ matrix.python-version }} on ${{ matrix.os }}steps:- name: Set up Python ${{ matrix.python-version }}@@ -632,8 +740,8 @@ jobs:needs: [prime-asan-build-caches]strategy:matrix:- python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']- os: ['ubuntu-24.04']+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]+ os: ["ubuntu-24.04"]name: Test with Python ${{ matrix.python-version }} + Address Sanitizersteps:- name: Set up Python ${{ matrix.python-version }}@@ -719,53 +827,56 @@ jobs:strategy:matrix:include:- - { os: macos-13, build: cp39-macosx_x86_64 }- - { os: macos-13, build: cp310-macosx_x86_64 }- - { os: macos-13, build: cp311-macosx_x86_64 }- - { os: macos-13, build: cp312-macosx_x86_64 }- - { os: macos-13, build: cp313-macosx_x86_64 }- - { os: macos-13, build: cp313t-macosx_x86_64 }- # Universal wheels are rarely used; only support them for Python 3.12:- - { os: macos-13, build: cp312-macosx_universal2 }- - { os: macos-13, build: cp39-macosx_arm64 }- - { os: macos-13, build: cp310-macosx_arm64 }- - { os: macos-13, build: cp311-macosx_arm64 }- - { os: macos-13, build: cp312-macosx_arm64 }- - { os: macos-13, build: cp313-macosx_arm64 }- - { os: macos-13, build: cp313t-macosx_arm64 }- # - { os: macos-13, build: pp38-macosx_x86_64 }- # - { os: macos-13, build: pp39-macosx_x86_64 }- - { os: windows-latest, build: cp39-win_amd64 }- - { os: windows-latest, build: cp310-win_amd64 }- - { os: windows-latest, build: cp311-win_amd64 }- - { os: windows-latest, build: cp312-win_amd64 }- - { os: windows-latest, build: cp313-win_amd64 }- # - { os: windows-latest, build: cp313t-win_amd64 }- # - { os: windows-latest, build: cp312-win32 }- - { os: 'ubuntu-24.04', build: cp39-manylinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp39-manylinux_aarch64 }- # - { os: 'ubuntu-24.04', build: cp39-musllinux_x86_64 }- # - { os: 'ubuntu-24.04', build: cp39-musllinux_aarch64 }- - { os: 'ubuntu-24.04', build: cp310-manylinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp310-manylinux_aarch64 }- - { os: 'ubuntu-24.04', build: cp310-musllinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp310-musllinux_aarch64 }- - { os: 'ubuntu-24.04', build: cp311-manylinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp311-manylinux_aarch64 }- # - { os: 'ubuntu-24.04', build: cp311-musllinux_x86_64 }- # - { os: 'ubuntu-24.04', build: cp311-musllinux_aarch64 }- - { os: 'ubuntu-24.04', build: cp312-manylinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp312-manylinux_aarch64 }- - { os: 'ubuntu-24.04', build: cp312-musllinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp312-musllinux_aarch64 }- - { os: 'ubuntu-24.04', build: cp313-manylinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp313-manylinux_aarch64 }- # - { os: 'ubuntu-24.04', build: cp313-musllinux_x86_64 }- # - { os: 'ubuntu-24.04', build: cp313-musllinux_aarch64 }- - { os: 'ubuntu-24.04', build: cp313t-manylinux_x86_64 }- - { os: 'ubuntu-24.04', build: cp313t-manylinux_aarch64 }- # - { os: 'ubuntu-24.04', build: cp313t-musllinux_x86_64 }- # - { os: 'ubuntu-24.04', build: cp313t-musllinux_aarch64 }+ - { os: macos-13, build: cp310-macosx_x86_64 }+ - { os: macos-13, build: cp311-macosx_x86_64 }+ - { os: macos-13, build: cp312-macosx_x86_64 }+ - { os: macos-13, build: cp313-macosx_x86_64 }+ - { os: macos-13, build: cp313t-macosx_x86_64 }+ # Universal wheels are rarely used; only support them for Python 3.12:+ - { os: macos-13, build: cp312-macosx_universal2 }+ - { os: macos-13, build: cp310-macosx_arm64 }+ - { os: macos-13, build: cp311-macosx_arm64 }+ - { os: macos-13, build: cp312-macosx_arm64 }+ - { os: macos-13, build: cp313-macosx_arm64 }+ - { os: macos-13, build: cp313t-macosx_arm64 }+ - { os: macos-13, build: cp314-macosx_arm64 }+ - { os: macos-13, build: cp314t-macosx_arm64 }+ # - { os: macos-13, build: pp38-macosx_x86_64 }+ # - { os: macos-13, build: pp39-macosx_x86_64 }+ - { os: windows-latest, build: cp39-win_amd64 }+ - { os: windows-latest, build: cp310-win_amd64 }+ - { os: windows-latest, build: cp311-win_amd64 }+ - { os: windows-latest, build: cp312-win_amd64 }+ - { os: windows-latest, build: cp313-win_amd64 }+ - { os: windows-latest, build: cp314-win_amd64 }+ # - { os: windows-latest, build: cp313t-win_amd64 }+ # - { os: windows-latest, build: cp312-win32 }+ - { os: "ubuntu-24.04", build: cp39-manylinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp39-manylinux_aarch64 }+ # - { os: 'ubuntu-24.04', build: cp39-musllinux_x86_64 }+ # - { os: 'ubuntu-24.04', build: cp39-musllinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp310-manylinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp310-manylinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp310-musllinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp310-musllinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp311-manylinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp311-manylinux_aarch64 }+ # - { os: 'ubuntu-24.04', build: cp311-musllinux_x86_64 }+ # - { os: 'ubuntu-24.04', build: cp311-musllinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp312-manylinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp312-manylinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp312-musllinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp312-musllinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp313-manylinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp313-manylinux_aarch64 }+ # - { os: 'ubuntu-24.04', build: cp313-musllinux_x86_64 }+ # - { os: 'ubuntu-24.04', build: cp313-musllinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp313t-manylinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp313t-manylinux_aarch64 }+ # - { os: 'ubuntu-24.04', build: cp313t-musllinux_x86_64 }+ # - { os: 'ubuntu-24.04', build: cp313t-musllinux_aarch64 }+ - { os: "ubuntu-24.04", build: cp314-manylinux_x86_64 }+ - { os: "ubuntu-24.04", build: cp314t-manylinux_aarch64 }name: Build wheel for ${{ matrix.build }}steps:- uses: actions/checkout@v4@@ -791,7 +902,7 @@ jobs:# Use the minimum macOS deployment target supported by our version of PyBind:MACOSX_DEPLOYMENT_TARGET: "10.14"- name: Ensure wheels have required files- if: runner.os != 'Windows'+ if: runner.os != 'Windows'run: |for wheel in ./wheelhouse/*.whl; do# Print the contents of the wheel for debugging:@@ -817,7 +928,7 @@ jobs:upload-pypi:needs: [merge, run-tests-with-address-sanitizer, run-tests]- runs-on: 'ubuntu-24.04'+ runs-on: "ubuntu-24.04"name: "Upload wheels to PyPI"if: github.event_name == 'release' && github.event.action == 'published'steps:diff --git a/README.md b/README.mdindex 1e6076f..1fc235e 100644--- a/README.md+++ b/README.md@@ -56,7 +56,7 @@ If you are new to Python, follow [INSTALLATION.md](https://github.com/spotify/pe### Compatibility-`pedalboard` is thoroughly tested with Python 3.8, 3.9, 3.10, 3.11, 3.12, and 3.13.+`pedalboard` is thoroughly tested with Python 3.10, 3.11, 3.12, 3.13, and 3.14.- Linux- Tested heavily in production use cases at Spotifydiff --git a/pedalboard/version.py b/pedalboard/version.pyindex ca1347b..28c0ee0 100644--- a/pedalboard/version.py+++ b/pedalboard/version.py@@ -14,6 +14,6 @@# See the License for the specific language governing permissions and# limitations under the License.-__version__ = "0.9.18"+__version__ = "0.9.19"# Done this way so we can use dynamic-metadata to parse the version above.MAJOR, MINOR, PATCH = (int(x) for x in __version__.split("."))diff --git a/pyproject.toml b/pyproject.tomlindex 72598bb..091b3a3 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -56,7 +56,7 @@ classifiers = ["Programming Language :: Python :: 3.13",]dependencies = ["numpy"]-version = "0.9.18"+version = "0.9.19"[project.optional-dependencies]test = [diff --git a/setup.py b/setup.pyindex 5a0dd0e..eb6e00e 100644--- a/setup.py+++ b/setup.py@@ -482,12 +482,11 @@ setup("Programming Language :: C++","Programming Language :: Python","Topic :: Multimedia :: Sound/Audio",- "Programming Language :: Python :: 3.8",- "Programming Language :: Python :: 3.9","Programming Language :: Python :: 3.10","Programming Language :: Python :: 3.11","Programming Language :: Python :: 3.12","Programming Language :: Python :: 3.13",+ "Programming Language :: Python :: 3.14",],ext_modules=[pedalboard_cpp],install_requires=["numpy"],diff --git a/uv.lock b/uv.lockindex 742a3da..c91fada 100644--- a/uv.lock+++ b/uv.lock@@ -325,7 +325,7 @@ wheels = [[[package]]name = "pedalboard"-version = "0.9.18"+version = "0.9.19"source = { editable = "." }dependencies = [{ name = "numpy", version = "2.0.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },diff --git a/vendors/lame_overrides.h b/vendors/lame_overrides.hindex 68337c5..70b6b14 100644--- a/vendors/lame_overrides.h+++ b/vendors/lame_overrides.h@@ -4,6 +4,8 @@* (i.e.: private) to the C file that contains them.*/+#define hip_global_struct mpstr_tag+#include "lame/include/lame.h"/*