-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Issue #2731: Constraints files. #2857
Conversation
ff03334
to
1aeb3a6
Compare
This adds constraints files. Like requirements files constraints files control what version of a package is installed, but unlike requirements files this doesn't itself choose to install the package. This allows things that aren't explicitly desired to be constrained if and only if they are installed.
Failure on py27 is unrelated to patch - Download error on https://pypi.python.org/simple/INITools/: [Errno 110] Connection timed out -- Some packages may not be found! |
neat, +1 |
This looks OK to me, my only thing is not a "thing to fix" exactly, but more of thinking if we want to claim the |
Ultimately thats your call; but unless you have other things clamouring for -c, I'd like to use it ;). As for usage - I can fairly easily see this being more popular than requirements files, for orgs with multiple repositories and non-homogeneous installs. E.g. three services, each in their own container, use constraints to keep everything aligned. |
yea, I'm wary of claiming the
sorry, I don't follow how contraints would be "more popular"? yes, I can see using them to enforce certain general patches across your service environments, but still these services could still want frozen requirements files for dependencies specific to themselves? |
I can imagine folk using constraints files in combination with requirements files, or for one-service-per-venv situations, instead of: particularly when you want to keep things in sync rather than each deployed thing being different. |
Ok I'm going to merge that. I feel similarly to @qwcode, I'm wary of claiming |
Issue #2731: Constraints files.
This adds constraints files. Like requirements files constraints files
control what version of a package is installed, but unlike
requirements files this doesn't itself choose to install the package.
This allows things that aren't explicitly desired to be constrained if
and only if they are installed.