Allow `pip list --outdated` to take a requirements file
See original GitHub issueSometimes, I’m not on the latest release of a Python package. For example, I haven’t upgraded to Django 1.9 yet. But is there a bug fix or security release for 1.8? With pip, I can’t tell:
% pip list --outdated
Django (Current: 1.8.6 Latest: 1.9 [wheel])
requests (Current: 2.8.0 Latest: 2.9.1 [wheel])
To fix this, it would be nice if I could pass my normal requirements.txt to pip list --outdated. In other words, given a requirements.txt like this…
Django>=1.8,<1.9
requests>=2.8,<2.9
…I’d like to do this:
% pip list --outdated -r requirements.txt
Django (Current: 1.8.6 Wanted: 1.8.7 Latest: 1.9 [wheel])
requests (Current: 2.8.0 Wanted: 2.8.1 Latest: 2.9.1 [wheel])
(I’m not dead-set on that output format, just giving it as an example.)
I searched around for similar issues, but the closest I could find was #2982. That’s not so much a functional change as a stylistic one.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:27
- Comments:9 (3 by maintainers)
Top Results From Across the Web
List only outdated pip packages mentioned in requirements file
Use this tool: https://github.com/simion/pip-upgrader. All you have to do is the following: pip install pip-upgrader pip-upgrade.
Read more >pip-outdated - PyPI
Find outdated dependencies in your requirements.txt or setup.cfg file. Report missing/outdated/incompatible packages with table and colors.
Read more >Find outdated/updatable pip packages - Super User
Since version 1.3, pip features a new command: $ pip list --outdated requests (Current: 1.1.0 Latest: 1.2.0). See this post for more information....
Read more >pip freeze - pip documentation v22.3.1
Output installed packages in requirements format. ... Use the order in the given requirements file and its comments when generating output.
Read more >The Python Requirements File and How to Create it
Learn what a Python requirements.txt file is, how to create it, and how to maintain it with a list of required modules.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

With this you could also tell whether there is an update for your packages directly listed in your requirements file and not packages that are just dependencies and which you might not be able to update without possibly breaking something.
I think I can pick this up at some point in the near future. Self-assigning this on that assumption. I’d still be working on this in volunteered time, so, no promises on that.