{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pipenv/issues/154","repository_url":"https://api.github.com/repos/pypa/pipenv","labels_url":"https://api.github.com/repos/pypa/pipenv/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pipenv/issues/154/comments","events_url":"https://api.github.com/repos/pypa/pipenv/issues/154/events","html_url":"https://github.com/pypa/pipenv/issues/154","id":203883865,"number":154,"title":"How this project correlates with tox.","user":{"login":"proofit404","id":1862725,"avatar_url":"https://avatars1.githubusercontent.com/u/1862725?v=4","gravatar_id":"","url":"https://api.github.com/users/proofit404","html_url":"https://github.com/proofit404","followers_url":"https://api.github.com/users/proofit404/followers","following_url":"https://api.github.com/users/proofit404/following{/other_user}","gists_url":"https://api.github.com/users/proofit404/gists{/gist_id}","starred_url":"https://api.github.com/users/proofit404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proofit404/subscriptions","organizations_url":"https://api.github.com/users/proofit404/orgs","repos_url":"https://api.github.com/users/proofit404/repos","events_url":"https://api.github.com/users/proofit404/events{/privacy}","received_events_url":"https://api.github.com/users/proofit404/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-29T17:48:41Z","updated_at":"2018-05-20T21:29:58Z","closed_at":"2017-01-29T20:07:03Z","author_association":"NONE","body":"I'm trying to get my head around this tool and understand its proper usecases.\r\n\r\nIn tox I can create many virtual environments and run my tests in different ways against multiple python versions. Is it possible with `pipenv` right now or maybe planned milestone in the future? "},"comment":{"url":"https://api.github.com/repos/pypa/pipenv/issues/comments/390514268","html_url":"https://github.com/pypa/pipenv/issues/154#issuecomment-390514268","issue_url":"https://api.github.com/repos/pypa/pipenv/issues/154","id":390514268,"user":{"login":"matthijskooijman","id":194491,"avatar_url":"https://avatars3.githubusercontent.com/u/194491?v=4","gravatar_id":"","url":"https://api.github.com/users/matthijskooijman","html_url":"https://github.com/matthijskooijman","followers_url":"https://api.github.com/users/matthijskooijman/followers","following_url":"https://api.github.com/users/matthijskooijman/following{/other_user}","gists_url":"https://api.github.com/users/matthijskooijman/gists{/gist_id}","starred_url":"https://api.github.com/users/matthijskooijman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthijskooijman/subscriptions","organizations_url":"https://api.github.com/users/matthijskooijman/orgs","repos_url":"https://api.github.com/users/matthijskooijman/repos","events_url":"https://api.github.com/users/matthijskooijman/events{/privacy}","received_events_url":"https://api.github.com/users/matthijskooijman/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T21:29:58Z","updated_at":"2018-05-20T21:29:58Z","author_association":"NONE","body":"I explored this a bit, and the following works in my `tox.ino`:\r\n\r\n```\r\n[testenv]\r\n# We must specify deps, in order to get tox to run the install_command\r\ndeps = pipenv\r\n# Allow using sh from outside the virtualenv\r\nwhitelist_externals = sh\r\n# Use sh to allow running multiple commands. First run pip to install\r\n# pipenv (and any other dependencies), then run pipenv to install stuff\r\n# from the pipfile. This passes a dummy argument to sh to fill $0 and\r\n# the list of packages (from deps=) as $@.\r\ninstall_command = sh -c 'pip install \"$@\" && pipenv install --ignore-pipfile --deploy --system --dev' dummy {packages}\r\n\r\ncommands = actual_test_command\r\n```\r\n\r\nAnnoyingly it seems this only works in the actual test section, so all this stuff must be repeated for every test section. Also, this uses `pipenv install`, since `sync` does not support --system (#2227)."}}
{"actor":{"display_login":"matthijskooijman"}}