-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Allow pip list --outdated
to take a requirements file
#3314
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Sounds like a great idea. Sign me up! |
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. |
Anyone finding this through search: Having it native would be super |
@juanjsebgarcia I think you're asking for #4551? |
I think it applies to both :) The above package lists all the expired requirements in a given I still think having it natively in pip would be great though, something less interactive... |
Would love it, would bring pip closer to "npm" somehow. It's pointless to list ALL outdated packages (even the ones not in your requirements file) since most of them are dependencies you don't even control or can't update directly. |
FWIW, I wrote up a way to do this if you're using pip-tools, by leveraging one of several other tools that operate on requirements files: https://github.com/bhrutledge/pip-tools-outdated. See also jazzband/pip-tools#1167. |
I would like to work on this issue 👍🏻. Do I get assigned or I can just come up with PR directly? |
Just a quick note for other people searching for a solution to this: The following will list outdated packages from a pip install --upgrade -r requirements.txt --dry-run --quiet --report - 2> /dev/null \
| jq -r '.install[] | "\(.metadata.name) \(.metadata.version)"' Since Please note that this won't edit |
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:
To fix this, it would be nice if I could pass my normal
requirements.txt
topip list --outdated
. In other words, given arequirements.txt
like this......I'd like to do this:
(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.
The text was updated successfully, but these errors were encountered: