pydeps
pydeps copied to clipboard
Exclude/include dependencies by filepath
I am migrating a number of Python packages to another location internally.
It would be very helpful to have an option to include/exclude based on module filepath, not just name. EG:
- --incdir: only include dependencies under a particular directory.
- --excdir: exclude dependencies under a particular directory.
Hi @JP01, and thank you for your interest in Pydeps.
The -x, -xx, and --only filters might do what you need:
-x PATTERN [PATTERN ...], --exclude PATTERN [PATTERN ...]
input files to skip (e.g. `foo.*`), multiple file names can be provided
-xx MODULE [MODULE ...], --exclude-exact MODULE [MODULE ...]
same as --exclude, except requires the full match. `-xx foo.bar` will exclude foo.bar, but not
foo.bar.blob
--only MODULE_PATH [MODULE_PATH ...]
only include modules that start with MODULE_PATH