simion / pip-upgrader

An interactive pip requirements upgrader. It also updates the version in your requirements.txt file.
Apache License 2.0
512 stars 35 forks source link

Does pip-upgrader honor package requirements? #48

Open me21 opened 1 year ago

me21 commented 1 year ago

For example, nicegui package currently requires justpy<0.3. If I run pip-upgrader, will it upgrade justpy to currently available 0.9.0, or hold the upgrade until nicegui allows?

buchs commented 1 year ago

Currently pip-upgrader does not take into account other package dependencies. It just tries to slam any package to the latest available. Of course, this would make the tool much more useful. My current workflow has me trying one upgrade at a time and running my test suite to see if I hit a requirement mismatch. Then I put the version to match the requirement. So, you can find all the landmines by stepping on each one, but there is probably a much less painful process possible when the tool checks all dependencies. I am not sure how much effort would be involved in adding this capability, but at least it is "more".