-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Single package update? #6122
Comments
I don’t want use ‘pipevn install’ because i don’t want to add sub-dependencies into Pipfile |
Doesn't Also, I personally recommend using the |
I had never know We have a sub-dep package the example is I don't want to add So adding sub-dep packages sound like bad practice for me, but we should update it some times, but it can be very good if where was a way to update only one package without adding it into I hope it's make more sense now and big thanks for you answer! |
So my target is to update one package without adding it into |
I checked source code of pipenv lib and now I understand what docs are pourly written or it's hard to read it for me We can use pipenv update black for update single package, but it will add it into Pipfile, so it's working the same way as pipenv install black and because we don't want to add something into Pipfile (sub-deps as example) we don't want to use that logic But we have --lock-only falg for update what will update it in Pipfile.lock but not in Pipfile, so it's what we are really need to update the things like cryptography for example So if you have a problem with cryptography you can run pipenv update cryptography --lock-only and it will update only cryptography and only in the lock file But it's impotrant to use --dev flag! If you want to update something from dev section (you can just CTRL + F lock file to find it) you should run pipenv update cryptography --dev --lock-only because if you will not add that you will have 2 cryptography packages one for default section and one for dev, so please double check is that dev dependency or not |
If you don't want the package to be in the pipfile, you can also use Im surprised that if you feel the need to update a package, you don't want to add it to your pipfile. It's possible that the next time someone runs |
On using ‘pipenv update’ it will update all packages what is available, but some of them can include breaking changes, so you will need to find the broken one, pin it in Pipfile and run pipenv update after that.
but why not to add ‘pipenv upadate package_name’ command?
if there is a possibility to have that i am happy to write the code for it and publish my PR
Let me know if you want to have it and if not what is the reasoning behind that
Thanks! You are doing great job I am really appreciate your work what was done on that package, i am using it a lot and enjoy
The text was updated successfully, but these errors were encountered: