generated from dopt-python/py311
remove stub files from the wheel distribution
This commit is contained in:
parent
b2162af624
commit
9a421d5fbd
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user