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

Allow for sorting the requirements when exporting requirements.txt #1988

Closed
thejcannon opened this issue Nov 21, 2022 · 2 comments · Fixed by #1992
Closed

Allow for sorting the requirements when exporting requirements.txt #1988

thejcannon opened this issue Nov 21, 2022 · 2 comments · Fixed by #1992
Assignees

Comments

@thejcannon
Copy link
Contributor

This allows for much easier diffing (migrating from pip-tools) and grokking (trying to scroll and find)

@thejcannon
Copy link
Contributor Author

Currently I have the following:

sed -i -z "s/\\\\\n  //g" requirements.txt
sort -o requirements.txt requirements.txt
sed -i "s/ --hash=\(.*\)/ \\\\\\n  --hash=\1/" requirements.txt

@jsirois
Copy link
Member

jsirois commented Nov 22, 2022

This seems fine, if ~arbitrary. That said, its hard to imagine too many more axes beyond alpha-sort and pip-tools is a thing.

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

Successfully merging a pull request may close this issue.

2 participants