python-poetry / python-poetry/poetry

`poetry show --outdated`: also show latest "wanted" version

Open
#9,495 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/show kind/feature status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

Issue Kind

Change in current behaviour

Description

poetry show --outdated currently shows two versions for each package: the currently installed version and the highest available version.

It would be nice if poetry would also show the latest "wanted" version, that is, the latest version allowed by version constraints.

For example npm outdated reports

$ npm outdated
Package                           Current   Wanted   Latest [...]
[...]
style-loader                        3.3.3    3.3.4    4.0.0 [...]
Impact

Users can easily see that wanted updates are available even when they are not on the latest release.

For example, consider a project using the latest Django LTS release:

[tool.poetry.dependencies]
[...]
Django = "~4.2.10"

I would like to install patch updates for this, but cannot see when some are available: poetry show --outdated only reports that a new major release (5.x) is available. It would be nice if it would also show newer 4.2.x patch releases.

Workarounds

Run poetry update and check what changed or manually look for updates.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the poetry show --outdated command and trace how it currently determines the installed and highest available versions. Review how the project’s version constraints define the latest allowed version, then verify that the output reports installed, wanted, and latest versions for cases such as Django ~4.2.10.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.