Skip to content

Commit

Permalink
update: docs, add: logging for excluding (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
metaist committed Sep 16, 2024
1 parent dfd45f6 commit 235525a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cosmofy/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
-x GLOB, --exclude GLOB
One or more glob-like patterns to exclude from being added.
By default, "*.egg-info" and "__pycache__" are excluded.
Common things to exclude are: "**/*.egg-info/*" and "**/__pycache__/*".
--rm GLOB, --remove GLOB
One or more glob-like patters to remove from the output.
Expand Down
1 change: 1 addition & 0 deletions src/cosmofy/bundler.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def zip_add(
pkgs = ("Lib", "site-packages")
for path, files in include:
if path in exclude:
log.debug(f"{self.banner}exclude: {path}")
continue
if path.is_dir():
if any(True for p in PACKAGE_FILES if p in files):
Expand Down

0 comments on commit 235525a

Please sign in to comment.