Re:Show HN: Update your requirements.txt file with Pur in Py...
by michaelmior on Monday May 09, 2016 @03:35PM
(#11662497)
This makes updating all versions easy. You run a tool like Pur then run your tests. If they pass, you commit and push the requirements.txt changes.
[ Parent
| on HN ]
Re:Show HN: Update your requirements.txt file with Pur in Py...
by tedmiston on Monday May 09, 2016 @04:59PM
(#11663160)
If that's the desired behavior, it's already pretty easy by piping the outdated package list into upgrade.
pip list --outdated | sed 's/(.*//g' | xargs pip install -U
pip freeze > requirements.txt
From http://stackoverflow.com/a/22260015/149428Another similar easy option is pip-review.