-
Notifications
You must be signed in to change notification settings - Fork 4
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
Recursively search directory tree for requirement files based on some unix-stlye glob pattern #9
Comments
Hi! Thanks for the suggestion. I think this is generally better handled by your terminals own globbing. What shell/OS are you running? Would something like this work?:
|
Hey thanks for the quick response. I am using bash shell on a mixture of ubuntu and Windows (use Git Bash in Windows). We can certainly use |
This worked for me btw, in case others are interested. find . -iname 'requirements*.txt' -exec sort-requirements {} + |
Let me take some time to explore how I think I want to come up with a spec that feels consistent with out Python CLI tools so that the functionality is more intuitive. My other concern is making sure I can do this easily in Python without adding dependencies. My goal with this tool was to have it be free from dependence on other libraries. I think Python's built-in |
In the meanwhile (and at the risk of shameless self promotion) another solution that could give your developers a more consistent easy interface is to use this tool my other project: https://github.com/rehandalal/therapist |
Thanks, @rehandalal. I will check out therapist as well. If you didn't want to change the default functionality of sort-requirements, maybe just an optional flag you can provide a |
Hello,
Thanks a bunch for this library. I have a use case where there are many
requirements.txt
(andrequirements-devel.txt
) in my repo. I was was wondering if you would be open to functionality for recursively searching a directory tree, finding the files that match the glob, and then do the checks on those?Thanks,
Zach
The text was updated successfully, but these errors were encountered: