From 9a421d5fbdcc6c00daaf80fa01a4cf57afa52cdb Mon Sep 17 00:00:00 2001 From: foefl Date: Wed, 22 Oct 2025 10:06:16 +0200 Subject: [PATCH] remove stub files from the wheel distribution --- pdm_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: