remove stub files from the wheel distribution

This commit is contained in:
Florian Förster 2025-10-22 10:06:16 +02:00
parent b2162af624
commit 9a421d5fbd

View File

@ -32,7 +32,7 @@ def delete_source_files_from_wheel(pth_to_whl: Path):
tmp_dir.mkdir()
filename = pth_to_whl.name
tmp_whl = tmp_dir / filename
pattern = re.compile(r".*\.c$|.*detection.py$")
pattern = re.compile(r".*\.c$|.*detection.py$|.*\.pyi$")
with zipfile.ZipFile(pth_to_whl, mode="r") as src:
with zipfile.ZipFile(tmp_whl, mode="w") as dst: