From 3079892a3cd18e981d7e83c20a99eaf5adaea1de Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Mon, 21 Aug 2023 00:03:09 +0200 Subject: [PATCH] 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. --- tasks/vendoring/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/vendoring/__init__.py b/tasks/vendoring/__init__.py index 21b09307..5199b020 100644 --- a/tasks/vendoring/__init__.py +++ b/tasks/vendoring/__init__.py @@ -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):