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.

Support `pdm outdated`

See original GitHub issue

Is your feature request related to a problem? Please describe.

There is no any related problem.

Describe the solution you’d like

  1. command pdm outdated, or pdm list --outdated.
  2. pdm prints all the dependencies (in local/global) which is outdated.

Reason: It’s common feature of package manager and I used them often. If this proposal is positive, I will try implementing and send PR.

Remarks: I think pdm outdated is better than pdm list --outdated because I want an exact one option.

  • pdm outdated -> returns only top-level dependencies.
  • pdm outdated -a(--all) -> returns all dependencies.

Motivation came from this issue https://github.com/python-poetry/poetry/issues/2684#issuecomment-767046631.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
frostmingcommented, Mar 31, 2021

Done, now you can test on the master branch. Note that --outdated is just an alias of --dry-run image

1reaction
frostmingcommented, Mar 31, 2021

The design will be as the following:

  • add --dry-run to update command to display (to install, to update, to remove) packages but not to modify the pdm.lock.
  • Under the hood, lock will be performed to fetch the latest available versions, then show the diff between the result and the installed versions in the current environment
  • Other arguments and options such as --dev, sections, packages, --unconstrained and --update-strategy will all influence the result.
  • Based on the above, add an option --top to limit the result to top-level packages only(those list in pyproject.toml), again, which can be further limited by --dev, sections. Plus, when --top is passed, specifying packages via packages is not allowed.

If anything is not clear, feel free to reply in this thread

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outdated PDM" status in the Notification Center in Creo ...
Information regarding the Outdated PDM status in the Notification Center What does the Notification Center Outdated PDM status indicate?
Read more >
Webinar: Top 10 Signs You've Outgrown Your PDM System
An outdated PDM can make this worse. ... What's missing from basic PDM systems; How to support more advanced PDM processes; Server, ...
Read more >
Manage Project - PDM
So, make sure you write requires-python properly if you don't want any outdated packages to be locked. Working with Python < 3.7#. Although...
Read more >
How To Collect Support Information for PDM - YouTube
Learn more and get support at https://www.mlc-cad.com/solidworks- help -center/collect- support -information-for- pdm /To properly troubleshoot ...
Read more >
What's New In PDM 2.0? - Frost's Blog
As much as possible, we make sure that the old project does not break, but only the default way of the new project...
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