-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add vf upgrade $venv
to upgrade major/minor Python versions
#141
Comments
That'd be really nice, I'm interested into sending a PR for this, how should I proceed? |
Hi Ryan. Your contribution implementing this functionality would be most helpful. Let us know if you have any specific questions. We look forward your pull request! ✨ |
Hi @justinmayer — thank you! I'm looking at the repo, I see a |
It sounds like it has been built for this: 6e269b0 |
Ah, so it seems that existing Update Python plugin already addresses this issue. Could you perhaps test it and confirm? |
@justinmayer It's working ~quite well, I'm not sure if we expect it to restore all packages which were in the former venv (because I guess all we would like is the ability to get the packages without using |
@RaitoBezarius: Having personally run into situations when Python interpreters have been yanked out from underneath the virtual environments that relied on them (I'm looking at you, Homebrew), I agree that it would be nice to recover from those situations in a more graceful manner than is currently available.
I agree that may indeed be a good approach, particularly since the installed version numbers are available in the |
Regarding upgrading virtual environments, I have a WIP solution that I will submit shortly. While I was working on it, I realized that introspecting virtual environment state is difficult and cumbersome, so I came up with a solution via #190 whereby one can run Anyone have any feedback on its implementation? Comments on PR #190 would be most welcome. 😊 |
I submitted a pull request (#191) for the new In addition to the other PR mentioned above, comments on this new PR would also be appreciated: #191 |
I'm quite pleased with the new upgrade feature, so it's time to ship it. 🚀 |
Stock Python
venv
module has an--upgrade
function that lets you upgrade virtualenvs created via that, but that doesn't seem to work with virtualfish created venvs. Having a similar mode forvf
(e.g.,vf upgrade $venv
) would be great.The text was updated successfully, but these errors were encountered: