-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add a dependencies
command, which dumps the list of dependencies
#241
Conversation
The use of |
This is useful for automating things like installing only a project's dependencies, in CI.
@click.option('-o', '--output', type=click.File('w'), default='-', | ||
help='File in which to save the list of dependencies.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, print(string, file='-')
doesn't work — is accepting -
a magical click thing? If so, that's pretty neat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm, I r'd tfm and yup it's a magical click thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's a click thing
bors r+ this is fantastic, thank you. ^.^ |
Build succeeded: |
blushes brightly. You are fantastic 💜 |
This is useful for automating things like installing only a project's
dependencies. The specific usecase I just ran into, was generating container
images for CI with all dependencies preinstalled.
Obviously, this doesn't work well with pipelines that trigger actions if a file
changed in the source repo, but it's still much better than nothing.