diff --git a/pdm_build.py b/pdm_build.py index 81ada12..76be076 100644 --- a/pdm_build.py +++ b/pdm_build.py @@ -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: