Poetry: How do I find outdated dependencies?

Created on 18 Jul 2020  Â·  4Comments  Â·  Source: python-poetry/poetry

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.

Issue

I've a large project with ~32 pinned dependencies.

poetry update is good for updating within the constraints of these project.

However, I want to find which dependencies are out of date. E.g.: list all dependencies for which I've pinned a specific version, but has newer releases.

I try to proactively keep my deps up to date, but so far I've been manually checking in pypi if each one has a new version. How can I figure out this using poetry?

Documentation

Most helpful comment

@sdispater Is there a way to filter this to top-level dependencies only? Without this the option is quite useless for me.

All 4 comments

You can use the poetry show command with the --outdated/-o option:

poetry show -o

For more information, you can check out the documentation: https://python-poetry.org/docs/cli/#show

@sdispater Is there a way to filter this to top-level dependencies only? Without this the option is quite useless for me.

Is this issue a WONTFIX?

This is becoming super annoying to deal with manually, especially for large projects.

@abn I agree here – we generally only care about our project-specific top-level dependencies, not stuff five layers deep. poetry show -o is really noisy for large projects.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulope picture ulope  Â·  3Comments

tonysyu picture tonysyu  Â·  3Comments

jackemuk picture jackemuk  Â·  3Comments

probablykasper picture probablykasper  Â·  3Comments

Euphorbium picture Euphorbium  Â·  3Comments