question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow `pip list --outdated` to take a requirements file

See original GitHub issue

Sometimes, 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:open
  • Created 8 years ago
  • Reactions:27
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
Herstcommented, Feb 19, 2017

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.

6reactions
pradyunsgcommented, Feb 5, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found