simion / pip-upgrader

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

Only upgrade packages withing major version ranges #12

Open bj00rn opened 5 years ago

bj00rn commented 5 years ago

It would be nice to have default behaviour of pip-upgrader to only upgrade within major version ranges to avoid introducing backwards incompatible changes.

I would suggest implementing a --latest flag to overriding this behaviour mimicing yarn

The upgrade --latest command upgrades packages the same as the upgrade command but
ignores the version range specified in package.json. Instead, the version specified by the 
latest tag will be used (potentially upgrading the packages across major versions).

https://yarnpkg.com/lang/en/docs/cli/upgrade/#toc-yarn-upgrade-package-latest-l-caret-tilde-exact-pattern

Thoughts?

simion commented 5 years ago

Hey, this is actually a quite good idea.

simion commented 5 years ago

Will implement as soon as i have some spare time (it's very limited these days).