Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: dry mode that lists packages that can be upgraded #50

Closed
Merinorus opened this issue Sep 8, 2022 · 3 comments
Closed

Feature: dry mode that lists packages that can be upgraded #50

Merinorus opened this issue Sep 8, 2022 · 3 comments

Comments

@Merinorus
Copy link

Merinorus commented Sep 8, 2022

Hello,

First of all, many thanks for this tool which is easy and convenient to use!

Is there a possibility to have a kind-of dry mode that lists only packages to be upgraded?

For instance:

$> pur -r requirements.txt -d
fastapi: 0.80.0 -> 0.82.0
python-dotenv: 0.20.0 -> 0.21.0
2 package upgrade(s) available.

I tried something like:

$> pur -n -r requirements.txt -d | sed '$ d' | diff --suppress-common-lines -y requirements.txt -
                                                              > ==> requirements.txt <==
fastapi==0.80.0                                               | fastapi==0.82.0
python-dotenv==0.20.0                                         | python-dotenv==0.21.0

Or maybe there is another tool that already provides this information.

Thank you!

@alanhamlett
Copy link
Owner

Yes, this already exists with -d.

@Merinorus
Copy link
Author

Merinorus commented Oct 2, 2022

Hello,
Thanks for your feedback. But I meant a command to list packages that need to be upgraded and only them. Not all the packages of the requirements file.

@alanhamlett alanhamlett reopened this Oct 6, 2022
@alanhamlett
Copy link
Owner

Implemented in v7.1.0 with a new --dry-run-changed option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants