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

Feature: give an option to only list running dependencies #16

Closed
2 tasks done
takeda opened this issue Sep 13, 2021 · 2 comments
Closed
2 tasks done

Feature: give an option to only list running dependencies #16

takeda opened this issue Sep 13, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@takeda
Copy link

takeda commented Sep 13, 2021

Feature

  • I have read the comment above and have completed each step
  • I have filled in each heading below

Is your feature request related to a problem? Please describe

Currently when running licensecheck with poetry, it shows licenses for all dependencies (including development tools).
Most of the time only running dependencies matter since those are integrated with package's code.

Describe the solution you'd like

Since there might be use cases where someone wants to check all dependencies, consider adding an option where we can exclude dev-dependencies. Not sure what the default should be, I'm fine with either way.

Describe alternatives you've considered

I found a workaround by simply invoking two commands, but it would be great if that was not necessary:

poetry export --without-hashes -o requirements.txt
poetry run licensecheck -u requirements

Additional context

@takeda takeda added the enhancement New feature or request label Sep 13, 2021
@FredHappyface
Copy link
Member

Taken a look and seems this can be achieved pretty easily: https://python-poetry.org/docs/cli/#options-5 so I'll take a look at this

@FredHappyface FredHappyface added this to the 2021.5 milestone Sep 13, 2021
@FredHappyface
Copy link
Member

Fixed in 0784b2b

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

No branches or pull requests

2 participants