Option to upgrade only packages with no specified version
davidhesselbomvcc opened this issue · 2 comments
There is an option -f
that
forces updating packages even when a package has no version specified in the input requirements.txt file.
I would like an option for the inverse; to update only these packages and not touch the packages for which a version has been specified.
Example:
Input | Output |
---|---|
argcomplete | argcomplete==1.12.2 |
robotframework==3.1.2 | robotframework==3.1.2 |
Note that robotframework is version 3.1.2 both in the input and in the output. Normally, robotframework would have been updated to 4.0, which is the newest version available at the time of writing this.
I can of course put the packages for which there is a specified version and the ones for which there isn't in two separate requirements.txt files, but it's much less convenient...
You can only use that option once, because after running you won't have any packages without versions. Is that ok?
after running you won't have any packages without versions
Haha, yes, that's what I'd expect.
But... are you saying that if I use this option, and the input has no packages without versions, the program will exit with an error? I'm not sure that's what I want...