{"action":"created","comment":{"url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/comments/227299944","pull_request_review_id":167307315,"id":227299944,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzI5OTk0NA==","diff_hunk":"@@ -0,0 +1,114 @@\n+package com.ableton\n+\n+\n+/**\n+ * Provides an easy way to run a command with Pipenv using multiple Python versions.\n+ */\n+class Pipenv implements Serializable {\n+  /**\n+   * Script context.\n+   * <strong>Required value, may not be null!</strong>\n+   */\n+  @SuppressWarnings('FieldTypeRequired')\n+  def script\n+\n+  /**\n+   * Run a command with Pipenv using multiple versions of Python. Because the virtualenv\n+   * created by Pipenv must be wiped out between runs, this function cannot be\n+   * parallelized and therefore the commands are run serially for each Python version.\n+   *\n+   * @param args Map of arguments. Valid arguments include:\n+   *             <ul>\n+   *               <li>\n+   *                 {@code command}: Command to run.\n+   *                 <strong>Required value, may not be null!</strong>\n+   *               </li>\n+   *               <li>\n+   *                 {@code pythonVersions}: List of Python versions to run the command\n+   *                 with. This argument is passed to Pipenv via {@code pipenv --python}.\n+   *                 See {@code pipenv --help} for supported syntax.\n+   *                 <strong>Required value, may not be null!</strong>\n+   *               </li>\n+   *               <li>\n+   *                 {@code returnStatus}: Return the status code of the script.\n+   *                 <strong>Note:</strong> this option and the {@code returnStdout}\n+   *                 option are mutually exclusive.\n+   *               </li>\n+   *               <li>\n+   *                 {@code returnStatus}: Return standard output from the script.\n+   *                 <strong>Note:</strong> this option and the {@code returnStatus}\n+   *                 option are mutually exclusive.\n+   *               </li>\n+   *             </ul>\n+   * @return Map of return values. The keys in the map correspond to the Python versions\n+   *         given in {@code args.pythonVersions}, and the values are either integers,\n+   *         strings, or null, depending on whether {@code returnStatus},\n+   *         {@code returnStdout}, or neither option was specified (respectively).\n+   */\n+  Map runCommand(Map args) {\n+    assert script\n+    assert args\n+    assert args.command\n+    assert args.pythonVersions\n+\n+    Map result = [:]\n+\n+    try {\n+      args.pythonVersions.each { python ->\n+        script.sh \"pipenv install --dev --python ${python}\"","path":"src/com/ableton/Pipenv.groovy","position":null,"original_position":58,"commit_id":"911eb511babd029a0e49ee5a7a53b9568fd8d7ee","original_commit_id":"8a25e65c331a8de0335b742a381f1cfcdc74f16e","user":{"login":"nre-ableton","id":16208985,"node_id":"MDQ6VXNlcjE2MjA4OTg1","avatar_url":"https://avatars2.githubusercontent.com/u/16208985?v=4","gravatar_id":"","url":"https://api.github.com/users/nre-ableton","html_url":"https://github.com/nre-ableton","followers_url":"https://api.github.com/users/nre-ableton/followers","following_url":"https://api.github.com/users/nre-ableton/following{/other_user}","gists_url":"https://api.github.com/users/nre-ableton/gists{/gist_id}","starred_url":"https://api.github.com/users/nre-ableton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nre-ableton/subscriptions","organizations_url":"https://api.github.com/users/nre-ableton/orgs","repos_url":"https://api.github.com/users/nre-ableton/repos","events_url":"https://api.github.com/users/nre-ableton/events{/privacy}","received_events_url":"https://api.github.com/users/nre-ableton/received_events","type":"User","site_admin":false},"body":"I've removed this method (see below)","created_at":"2018-10-23T09:17:05Z","updated_at":"2018-10-23T09:17:05Z","html_url":"https://github.com/AbletonDevTools/python-pipeline-utils/pull/38#discussion_r227299944","pull_request_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/comments/227299944"},"html":{"href":"https://github.com/AbletonDevTools/python-pipeline-utils/pull/38#discussion_r227299944"},"pull_request":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38"}},"in_reply_to_id":226975848},"pull_request":{"url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38","id":221787709,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNzg3NzA5","html_url":"https://github.com/AbletonDevTools/python-pipeline-utils/pull/38","diff_url":"https://github.com/AbletonDevTools/python-pipeline-utils/pull/38.diff","patch_url":"https://github.com/AbletonDevTools/python-pipeline-utils/pull/38.patch","issue_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/38","number":38,"state":"open","locked":false,"title":"Introduce new class: Pipenv","user":{"login":"nre-ableton","id":16208985,"node_id":"MDQ6VXNlcjE2MjA4OTg1","avatar_url":"https://avatars2.githubusercontent.com/u/16208985?v=4","gravatar_id":"","url":"https://api.github.com/users/nre-ableton","html_url":"https://github.com/nre-ableton","followers_url":"https://api.github.com/users/nre-ableton/followers","following_url":"https://api.github.com/users/nre-ableton/following{/other_user}","gists_url":"https://api.github.com/users/nre-ableton/gists{/gist_id}","starred_url":"https://api.github.com/users/nre-ableton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nre-ableton/subscriptions","organizations_url":"https://api.github.com/users/nre-ableton/orgs","repos_url":"https://api.github.com/users/nre-ableton/repos","events_url":"https://api.github.com/users/nre-ableton/events{/privacy}","received_events_url":"https://api.github.com/users/nre-ableton/received_events","type":"User","site_admin":false},"body":"This class is designed to facilitate running a Pipenv command against\r\nmultiple versions of Python, which is something that Pipenv cannot do\r\nby itself very gracefully. We do this by using the `--python` argument\r\nto Pipenv, which assumes that the `Pipfile` does not contain a\r\n`requirements` section which may cause Pipenv to throw an error.\r\n\r\n---\r\n\r\nThis is the first step in solving https://github.com/AbletonAppDev/devtools/issues/1340, ping @AbletonDevTools/gotham-city ","created_at":"2018-10-10T13:22:52Z","updated_at":"2018-10-23T09:17:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df82f087ae5944555789a3444104974abad57653","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38/commits","review_comments_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38/comments","review_comment_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/38/comments","statuses_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/statuses/911eb511babd029a0e49ee5a7a53b9568fd8d7ee","head":{"label":"AbletonDevTools:nre/master/pipenv-multiple-python","ref":"nre/master/pipenv-multiple-python","sha":"911eb511babd029a0e49ee5a7a53b9568fd8d7ee","user":{"login":"AbletonDevTools","id":13663661,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjYzNjYx","avatar_url":"https://avatars3.githubusercontent.com/u/13663661?v=4","gravatar_id":"","url":"https://api.github.com/users/AbletonDevTools","html_url":"https://github.com/AbletonDevTools","followers_url":"https://api.github.com/users/AbletonDevTools/followers","following_url":"https://api.github.com/users/AbletonDevTools/following{/other_user}","gists_url":"https://api.github.com/users/AbletonDevTools/gists{/gist_id}","starred_url":"https://api.github.com/users/AbletonDevTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbletonDevTools/subscriptions","organizations_url":"https://api.github.com/users/AbletonDevTools/orgs","repos_url":"https://api.github.com/users/AbletonDevTools/repos","events_url":"https://api.github.com/users/AbletonDevTools/events{/privacy}","received_events_url":"https://api.github.com/users/AbletonDevTools/received_events","type":"Organization","site_admin":false},"repo":{"id":114109123,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQxMDkxMjM=","name":"python-pipeline-utils","full_name":"AbletonDevTools/python-pipeline-utils","private":false,"owner":{"login":"AbletonDevTools","id":13663661,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjYzNjYx","avatar_url":"https://avatars3.githubusercontent.com/u/13663661?v=4","gravatar_id":"","url":"https://api.github.com/users/AbletonDevTools","html_url":"https://github.com/AbletonDevTools","followers_url":"https://api.github.com/users/AbletonDevTools/followers","following_url":"https://api.github.com/users/AbletonDevTools/following{/other_user}","gists_url":"https://api.github.com/users/AbletonDevTools/gists{/gist_id}","starred_url":"https://api.github.com/users/AbletonDevTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbletonDevTools/subscriptions","organizations_url":"https://api.github.com/users/AbletonDevTools/orgs","repos_url":"https://api.github.com/users/AbletonDevTools/repos","events_url":"https://api.github.com/users/AbletonDevTools/events{/privacy}","received_events_url":"https://api.github.com/users/AbletonDevTools/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AbletonDevTools/python-pipeline-utils","description":"Jenkins shared pipeline library for Python-related utilities","fork":false,"url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils","forks_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/forks","keys_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/teams","hooks_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/hooks","issue_events_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/events{/number}","events_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/events","assignees_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/assignees{/user}","branches_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/branches{/branch}","tags_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/tags","blobs_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/languages","stargazers_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/stargazers","contributors_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/contributors","subscribers_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/subscribers","subscription_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/subscription","commits_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/contents/{+path}","compare_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/merges","archive_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/downloads","issues_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues{/number}","pulls_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/labels{/name}","releases_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/releases{/id}","deployments_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/deployments","created_at":"2017-12-13T10:48:33Z","updated_at":"2018-10-09T12:22:39Z","pushed_at":"2018-10-23T09:16:27Z","git_url":"git://github.com/AbletonDevTools/python-pipeline-utils.git","ssh_url":"git@github.com:AbletonDevTools/python-pipeline-utils.git","clone_url":"https://github.com/AbletonDevTools/python-pipeline-utils.git","svn_url":"https://github.com/AbletonDevTools/python-pipeline-utils","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AbletonDevTools:master","ref":"master","sha":"95f1f8c3d11b77980fd36603ec822222b05d0afc","user":{"login":"AbletonDevTools","id":13663661,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjYzNjYx","avatar_url":"https://avatars3.githubusercontent.com/u/13663661?v=4","gravatar_id":"","url":"https://api.github.com/users/AbletonDevTools","html_url":"https://github.com/AbletonDevTools","followers_url":"https://api.github.com/users/AbletonDevTools/followers","following_url":"https://api.github.com/users/AbletonDevTools/following{/other_user}","gists_url":"https://api.github.com/users/AbletonDevTools/gists{/gist_id}","starred_url":"https://api.github.com/users/AbletonDevTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbletonDevTools/subscriptions","organizations_url":"https://api.github.com/users/AbletonDevTools/orgs","repos_url":"https://api.github.com/users/AbletonDevTools/repos","events_url":"https://api.github.com/users/AbletonDevTools/events{/privacy}","received_events_url":"https://api.github.com/users/AbletonDevTools/received_events","type":"Organization","site_admin":false},"repo":{"id":114109123,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQxMDkxMjM=","name":"python-pipeline-utils","full_name":"AbletonDevTools/python-pipeline-utils","private":false,"owner":{"login":"AbletonDevTools","id":13663661,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjYzNjYx","avatar_url":"https://avatars3.githubusercontent.com/u/13663661?v=4","gravatar_id":"","url":"https://api.github.com/users/AbletonDevTools","html_url":"https://github.com/AbletonDevTools","followers_url":"https://api.github.com/users/AbletonDevTools/followers","following_url":"https://api.github.com/users/AbletonDevTools/following{/other_user}","gists_url":"https://api.github.com/users/AbletonDevTools/gists{/gist_id}","starred_url":"https://api.github.com/users/AbletonDevTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbletonDevTools/subscriptions","organizations_url":"https://api.github.com/users/AbletonDevTools/orgs","repos_url":"https://api.github.com/users/AbletonDevTools/repos","events_url":"https://api.github.com/users/AbletonDevTools/events{/privacy}","received_events_url":"https://api.github.com/users/AbletonDevTools/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AbletonDevTools/python-pipeline-utils","description":"Jenkins shared pipeline library for Python-related utilities","fork":false,"url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils","forks_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/forks","keys_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/teams","hooks_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/hooks","issue_events_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/events{/number}","events_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/events","assignees_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/assignees{/user}","branches_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/branches{/branch}","tags_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/tags","blobs_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/languages","stargazers_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/stargazers","contributors_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/contributors","subscribers_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/subscribers","subscription_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/subscription","commits_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/contents/{+path}","compare_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/merges","archive_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/downloads","issues_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues{/number}","pulls_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/labels{/name}","releases_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/releases{/id}","deployments_url":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/deployments","created_at":"2017-12-13T10:48:33Z","updated_at":"2018-10-09T12:22:39Z","pushed_at":"2018-10-23T09:16:27Z","git_url":"git://github.com/AbletonDevTools/python-pipeline-utils.git","ssh_url":"git@github.com:AbletonDevTools/python-pipeline-utils.git","clone_url":"https://github.com/AbletonDevTools/python-pipeline-utils.git","svn_url":"https://github.com/AbletonDevTools/python-pipeline-utils","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38"},"html":{"href":"https://github.com/AbletonDevTools/python-pipeline-utils/pull/38"},"issue":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/38"},"comments":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/AbletonDevTools/python-pipeline-utils/statuses/911eb511babd029a0e49ee5a7a53b9568fd8d7ee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nre-ableton"}}