π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Ensure that wheels contain py.typed. (#420)
Peter Sobot42c78535c96d
diff --git a/.github/workflows/all.yml b/.github/workflows/all.ymlindex 57e5c3f..9f93a41 100644--- a/.github/workflows/all.yml+++ b/.github/workflows/all.yml@@ -762,6 +762,15 @@ jobs:CIBW_ENVIRONMENT: NPY_BLAS_ORDER="" NPY_LAPACK_ORDER="" CIBW_BUILD="${{ matrix.build }}"# Use the minimum macOS deployment target supported by our version of PyBind:MACOSX_DEPLOYMENT_TARGET: "10.14"+ - name: Ensure wheels have required files+ run: |+ for wheel in ./wheelhouse/*.whl; do+ # Print the contents of the wheel for debugging:+ unzip -l "$wheel"++ # Check that the wheel has py.typed in it:+ unzip -l "$wheel" | grep 'pedalboard_native/py.typed'+ done- uses: actions/upload-artifact@v4with:name: wheel-${{ matrix.build }}diff --git a/pyproject.toml b/pyproject.tomlindex 426886e..df1474a 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -3,7 +3,7 @@ requires = ["scikit-build-core>=0.5.0", "pybind11>=2.9.0"]build-backend = "scikit_build_core.build"[tool.cibuildwheel]-free-threaded-support = true+enable = ["cpython-freethreading"]test-requires = ["-r test-requirements.txt"]test-command = "pytest {project}/tests"# The manylinux container doesn't have a new enough glibc version,@@ -69,6 +69,8 @@ wheel.packages = ["pedalboard", "pedalboard.io", "pedalboard_native"]sdist.include = ["pedalboard/**/*.py","pedalboard_native/**/*.py",+ "pedalboard/py.typed",+ "pedalboard_native/py.typed","JUCE/**/*.cpp","JUCE/**/*.c","JUCE/**/*.h",