Skip to content

Commit 42c7853

Browse files
authored
Ensure that wheels contain py.typed. (#420)
1 parent 0e1fc8b commit 42c7853

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/all.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,15 @@ jobs:
762762
CIBW_ENVIRONMENT: NPY_BLAS_ORDER="" NPY_LAPACK_ORDER="" CIBW_BUILD="${{ matrix.build }}"
763763
# Use the minimum macOS deployment target supported by our version of PyBind:
764764
MACOSX_DEPLOYMENT_TARGET: "10.14"
765+
- name: Ensure wheels have required files
766+
run: |
767+
for wheel in ./wheelhouse/*.whl; do
768+
# Print the contents of the wheel for debugging:
769+
unzip -l "$wheel"
770+
771+
# Check that the wheel has py.typed in it:
772+
unzip -l "$wheel" | grep 'pedalboard_native/py.typed'
773+
done
765774
- uses: actions/upload-artifact@v4
766775
with:
767776
name: wheel-${{ matrix.build }}

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["scikit-build-core>=0.5.0", "pybind11>=2.9.0"]
33
build-backend = "scikit_build_core.build"
44

55
[tool.cibuildwheel]
6-
free-threaded-support = true
6+
enable = ["cpython-freethreading"]
77
test-requires = ["-r test-requirements.txt"]
88
test-command = "pytest {project}/tests"
99
# The manylinux container doesn't have a new enough glibc version,
@@ -69,6 +69,8 @@ wheel.packages = ["pedalboard", "pedalboard.io", "pedalboard_native"]
6969
sdist.include = [
7070
"pedalboard/**/*.py",
7171
"pedalboard_native/**/*.py",
72+
"pedalboard/py.typed",
73+
"pedalboard_native/py.typed",
7274
"JUCE/**/*.cpp",
7375
"JUCE/**/*.c",
7476
"JUCE/**/*.h",

0 commit comments

Comments
 (0)