|
|
|
|
|
by erichurkman
4400 days ago
|
|
Or just specify versions in your requirements.txt file to begin with. If you want to keep up to date with security and bug fixes (but aren't yet ready for the next big feature/backwards incompatible release), you can specify the lines as 'package>=1.1,<1.2' to get 1.1.x fix releases. `pip list --outdated` is helpful, too. |
|
Basically, when you use >=1.1,<1.2 it will install the best version that matches at the time of first install, and then that version will never be upgraded because it will always satisfy the requirements. So you don't actually get 1.1.x release updates unless you install them manually.
We do, however, use this syntax in development when testing new versions to make sure any subsequent runnings of pip doesn't obliterate the new versions of modules we are testing.
I'd love official pip support for ~1.1 type declarations.