Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude/include dependencies by filepath #217

Open
JP01 opened this issue Apr 10, 2024 · 1 comment
Open

Exclude/include dependencies by filepath #217

JP01 opened this issue Apr 10, 2024 · 1 comment
Labels

Comments

@JP01
Copy link

JP01 commented Apr 10, 2024

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:

  1. --incdir: only include dependencies under a particular directory.
  2. --excdir: exclude dependencies under a particular directory.
@thebjorn
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants