{"action":"created","issue":{"url":"https://api.github.com/repos/enthought/sat-solver/issues/157","repository_url":"https://api.github.com/repos/enthought/sat-solver","labels_url":"https://api.github.com/repos/enthought/sat-solver/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/enthought/sat-solver/issues/157/comments","events_url":"https://api.github.com/repos/enthought/sat-solver/issues/157/events","html_url":"https://github.com/enthought/sat-solver/pull/157","id":140660415,"number":157,"title":"ENH: add api for checking requirements against a repo","user":{"login":"johntyree","id":108972,"avatar_url":"https://avatars.githubusercontent.com/u/108972?v=3","gravatar_id":"","url":"https://api.github.com/users/johntyree","html_url":"https://github.com/johntyree","followers_url":"https://api.github.com/users/johntyree/followers","following_url":"https://api.github.com/users/johntyree/following{/other_user}","gists_url":"https://api.github.com/users/johntyree/gists{/gist_id}","starred_url":"https://api.github.com/users/johntyree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johntyree/subscriptions","organizations_url":"https://api.github.com/users/johntyree/orgs","repos_url":"https://api.github.com/users/johntyree/repos","events_url":"https://api.github.com/users/johntyree/events{/privacy}","received_events_url":"https://api.github.com/users/johntyree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-14T12:27:22Z","updated_at":"2016-03-15T17:20:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/enthought/sat-solver/pulls/157","html_url":"https://github.com/enthought/sat-solver/pull/157","diff_url":"https://github.com/enthought/sat-solver/pull/157.diff","patch_url":"https://github.com/enthought/sat-solver/pull/157.patch"},"body":"How does `DependencySolver.requirements_are_satisfiable(repositories, requirements)` look?\r\n\r\nCloses #137 "},"comment":{"url":"https://api.github.com/repos/enthought/sat-solver/issues/comments/196932842","html_url":"https://github.com/enthought/sat-solver/pull/157#issuecomment-196932842","issue_url":"https://api.github.com/repos/enthought/sat-solver/issues/157","id":196932842,"user":{"login":"cournape","id":25111,"avatar_url":"https://avatars.githubusercontent.com/u/25111?v=3","gravatar_id":"","url":"https://api.github.com/users/cournape","html_url":"https://github.com/cournape","followers_url":"https://api.github.com/users/cournape/followers","following_url":"https://api.github.com/users/cournape/following{/other_user}","gists_url":"https://api.github.com/users/cournape/gists{/gist_id}","starred_url":"https://api.github.com/users/cournape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cournape/subscriptions","organizations_url":"https://api.github.com/users/cournape/orgs","repos_url":"https://api.github.com/users/cournape/repos","events_url":"https://api.github.com/users/cournape/events{/privacy}","received_events_url":"https://api.github.com/users/cournape/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T17:20:49Z","updated_at":"2016-03-15T17:20:49Z","body":"This is also why I suggested the API to have the `installed_repository` specified separately, and then forgot about it !\r\n\r\nSo what we really need is:\r\n\r\n1. something to check that a given (installed) repository is consistent: the idea is to check that we are starting from a consistent state.\r\n2. something to validate that a given set of requirements is a valid, full solution\r\n3. something that checks that given an installed repository validated by 1, we can apply a set of requirements validated by 2. The idea here is to enable applying a requirements file into an existing environment with already installed packages. I am not sure that can always be done, though"}}