-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
pip-review? #185
Comments
Could Else, have a look at piprot? |
Thanks, that's great! |
This means we no longer have a replacement for @nvie Is there any hope to get pip-review back, eg. "patches welcome"? Or is it decidedly incompatible with the vision? |
I don't think it's useful. If there's a specific flow that depends on the tool, let's see if we can figure out an alternative. Either you could run I do agree that the guided interactive prompting would be a nice to have, but I don't think we need to bring back |
The workflow really is "interactively update a pinned requirements.txt file". If I think I'll end up using requirements.in at some point, so if nobody else wants interactive review, it's possibly not worth it. |
I like it and use it regularly. Sorry. I liked it, and used it regularly. |
I use pip-review to keep my virtual environment packages up to date and not to manage packages for a particular project. I don't really have a need to pin my packages and don't find pip-compile helpful since I'm not tied in to a specific package version / upgrade path. Could you bring back pip-review for use cases, like mine, where we are purely looking to upgrade all packages without pinning them? Thanks! |
+1, was using pip-review to upgrade packages easily. |
I'd be more than happy having pip-review back :( |
Unless I'm missing something, I think you can all use |
pip list --outdated doesn't upgrade packages, though, does it? We still need to upgrade them one at a time. With pip-review --interactive or auto, I can instruct the process to upgrade all packages at once. |
Before: After: |
I can see the convenience in that, but it's not enough to keep around a separate project for and maintain it even if pip already offers most of this. Since the only added value is the convenience of prompting for upgrades, I suggest you script around pip list for that. A rudimentary simple way of doing this in a shell script that would basically bring back pip-review is this: pip list --outdated | while read pkg; do
echo $pkg
echo 'Update now? [yn]'
read answer
if [ "$answer" = "y" ]; then
pip install -U $(echo "$pkg" | cut -d' ' -f 1)
fi
done |
That's what I was thinking as a substitute - point. |
@nvie i guess this is mostly a problem of handling deprecation which impacts peoples' workflows... this thread is pretty hidden and so most developers who update pip-tools and used pip-review before will suddenly think "wat?"... slowly deprecating it with a warning would've been a bit nicer, but seems it's too late for that now... maybe you could include a few words about pip-review being dropped in favor of |
Note that the script above didn't work for me. This did: #!/bin/bash
for pkg in $( pip list --outdated | cut -d' ' -f 1 )
do
echo $pkg
echo "update now? [yn]:"
read answer
if [ "$answer" == "y" ]; then
pip install -U $pkg
fi
done |
It'd be great to have a note in the README about |
Script with current/latest version: #!/bin/bash
while read line; do
test -z "${line}" && continue;
echo ${line};
pkg=$(echo $line|cut -f 1 -d' ');
echo -n "Upgrade now? [y/n]: ";
read answer </dev/tty;
test "${answer}" == "y" && pip install -U ${pkg};
done< <(pip list --outdated) |
The removal breaks Upgrading all packages with pip use-case. |
Fundamentally changing the tools provided by a project isn't so much a deprecation as a total project re-purpose. It might have been better to leave this repo (and pypi entry) as-is (and marked as "no longer developed") and create a new repo for pip-sync. It would behoove someone to fork this repo and rollback the depreciation. |
I am a little confused and maybe the is not the place to voice this concern. My main use of pip-tools was to keep my cutting edge virtualenv up to date with the latest packages. The removal of pip-review has broken this workflow. An additional note, how does the new system in anyway differentiate itself from the python recommended method of I am really unsure as to what benefit the refactoring of this package brings over what |
@bnice5000: for the best rationale behind the tool over |
In case, you want to update all at once without having to press y all the time (mostly if your project has lots of dependencies, use this: #!/bin/bash
for pkg in $( pip list --outdated | cut -d' ' -f 1 )
do
echo $pkg
pip install -U $pkg
done |
I went ahead and created a standalone package for Please don't be shy and submit as many pull requests as you can manage to my fork: https://github.com/jgonggrijp/pip-review The initial release is called version 0.3.7, but the only difference with 0.3.6 is that I removed |
That's great, thanks! |
Sorry to bring this issue back up, but I did find a use case for which When I want to update the dependencies of my project, I only want to see the newer versions of the packages that are listed in Do this make sense? Is there a way of using the tools that are in the this project to address this point? |
You are probably looking for |
Not quite, because I'd like to see the packages that needs to be updated, and manually update them. My understanding of |
My understanding is that FWIW, I believe that you are not supposed to manually pin your requirements in the As far as I know, there is no tool that lists only the outdated primary requirements and lets you update them interactively. I think the following workflow comes nearest: run Personally, I tend to use a lazier workflow: simply upgrade everything using |
@jgonggrijp Thanks for sharing your workflow. What you are saying makes a lot of sense. I think I initially had only the package names in my But I think I found a solution to the above problem. I also use I wonder if this breaks some patterns that |
Yes, I think the workflow with Frankly, I don't see much place for The reason that you describe, for starting to pin versions in the |
To whom it concerns: pip-review reached version 1.0 (PyPI). It has become a thin wrapper around @nvie pip-review has been ostensibly under BSD license since before I adopted it. I figured it might be time to make it official (see jgonggrijp#56). Do you agree if I add the 3-clause BSD license text to the pip-review repository with the following header?
|
pip-review is still a nice tool to upgrade python package system wide but it will stop if a package fail to install. I recommand pipdate instead : https://github.com/nschloe/pipdate |
Hello,
Thanks for all the great work on pip-tools! I like the way that the project is heading (pip-compile and pip-sync look pretty cool).
I just noticed that the latest release has removed pip-review. I was wondering what the new equivalent is (as I found this tool very useful)?
eg. every night I build a new pyvenv, install required pip libraries and run pip-review to send an email out to the devs letting them know if any libraries require upgrading.
The text was updated successfully, but these errors were encountered: