Vendoring task: remove __main__.py and cli.py

Some vendored libraries we ship have a command line interface.
We are not using it, so it's safe to remove.
This commit is contained in:
Oz N Tiram
2023-08-21 00:03:09 +02:00
committed by Oz Tiram
parent 58b5cf5a22
commit 3079892a3c
+10
View File
@@ -335,6 +335,16 @@ def post_install_cleanup(ctx, vendor_dir):
remove_all(vendor_dir.glob("toml.py"))
remove_all(vendor_dir / "dotenv" / "cli.py")
remove_all(vendor_dir / "dotenv" / "__main__.py")
remove_all(vendor_dir / "plette" / "__main__.py")
remove_all(vendor_dir / "pipdeptree" / "__main__.py")
remove_all(vendor_dir / "pythonfinder" / "__main__.py")
remove_all(vendor_dir / "pythonfinder" / "cli.py")
@invoke.task
def apply_patches(ctx, patched=False, pre=False):