3 ms·
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.
by michaelmior 11y ago
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.
- tedmiston 11y agoIf 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/149428 http://stackoverflow.com/a/22260015/149428 Another similar easy option is pip-review. https://github.com/jgonggrijp/pip-review https://github.com/jgonggrijp/pip-review
- welder 11y agoI explained in more detail in another comment here, but I don't directly install requirements so install first solutions like pip-review and pip list --outdated don't work for me.