{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/2","id":40933524,"html_url":"https://github.com/asottile/pip-custom-platform/pull/2","diff_url":"https://github.com/asottile/pip-custom-platform/pull/2.diff","patch_url":"https://github.com/asottile/pip-custom-platform/pull/2.patch","issue_url":"https://api.github.com/repos/asottile/pip-custom-platform/issues/2","number":2,"state":"open","locked":false,"title":"Add default platform name guessing","user":{"login":"chriskuehl","id":665269,"avatar_url":"https://avatars.githubusercontent.com/u/665269?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskuehl","html_url":"https://github.com/chriskuehl","followers_url":"https://api.github.com/users/chriskuehl/followers","following_url":"https://api.github.com/users/chriskuehl/following{/other_user}","gists_url":"https://api.github.com/users/chriskuehl/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuehl/subscriptions","organizations_url":"https://api.github.com/users/chriskuehl/orgs","repos_url":"https://api.github.com/users/chriskuehl/repos","events_url":"https://api.github.com/users/chriskuehl/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuehl/received_events","type":"User","site_admin":false},"body":"I feel kind of bad because you should be fishing instead of reviewing PRs. Feel free to wait until you get back to review this, there's no rush on it!\r\n\r\n----\r\n\r\nAt `$JOB` we want the ability to have wheels for both an ancient version of Ubuntu and a slightly newer version of Ubuntu. The transition would be easier if we could just swap `pip` for `pip-custom-platform` without adding logic for guessing a platform name every place we install things.\r\n\r\nAdding a guessed default would be convenient. The logic is basically:\r\n\r\n* For non-Linux, use whatever pip uses already\r\n* For Linux, use `platform.linux_distribution()` to try to guess a reasonable platform name.\r\n\r\nHere are some examples (also added to the README):\r\n\r\n| Platform                | Default Platform Name      |\r\n|-------------------------|----------------------------|\r\n| Ubuntu Trusty (14.04)   | linux_ubuntu_trusty_x86_64 |\r\n| Debian Jessie (8)       | linux_debian_8_x86_64      |\r\n| CentOS 7                | linux_centos_7_x86_64      |\r\n| Fedora 22               | linux_fedora_22_x86_64     |\r\n| Red Hat 7               | linux_rhel_7_x86_64        |\r\n| openSUSE 13.2           | linux_opensuse_13_x86_64   |\r\n| Arch Linux              | linux_arch_unknown_x86_64  |","created_at":"2015-07-27T18:24:17Z","updated_at":"2015-07-27T18:24:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df8fe0190c1500cda604760056d3857ceee54ec1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/2/commits","review_comments_url":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/2/comments","review_comment_url":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asottile/pip-custom-platform/issues/2/comments","statuses_url":"https://api.github.com/repos/asottile/pip-custom-platform/statuses/90d66a881117247e3553b74257c99698392cbf66","head":{"label":"chriskuehl:default-platform-name","ref":"default-platform-name","sha":"90d66a881117247e3553b74257c99698392cbf66","user":{"login":"chriskuehl","id":665269,"avatar_url":"https://avatars.githubusercontent.com/u/665269?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskuehl","html_url":"https://github.com/chriskuehl","followers_url":"https://api.github.com/users/chriskuehl/followers","following_url":"https://api.github.com/users/chriskuehl/following{/other_user}","gists_url":"https://api.github.com/users/chriskuehl/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuehl/subscriptions","organizations_url":"https://api.github.com/users/chriskuehl/orgs","repos_url":"https://api.github.com/users/chriskuehl/repos","events_url":"https://api.github.com/users/chriskuehl/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuehl/received_events","type":"User","site_admin":false},"repo":{"id":39642114,"name":"pip-custom-platform","full_name":"chriskuehl/pip-custom-platform","owner":{"login":"chriskuehl","id":665269,"avatar_url":"https://avatars.githubusercontent.com/u/665269?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskuehl","html_url":"https://github.com/chriskuehl","followers_url":"https://api.github.com/users/chriskuehl/followers","following_url":"https://api.github.com/users/chriskuehl/following{/other_user}","gists_url":"https://api.github.com/users/chriskuehl/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuehl/subscriptions","organizations_url":"https://api.github.com/users/chriskuehl/orgs","repos_url":"https://api.github.com/users/chriskuehl/repos","events_url":"https://api.github.com/users/chriskuehl/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuehl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chriskuehl/pip-custom-platform","description":"pip+wheel wrapper which allows you to choose a custom platform name for building, downloading, and installing wheels.","fork":true,"url":"https://api.github.com/repos/chriskuehl/pip-custom-platform","forks_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/forks","keys_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/teams","hooks_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/hooks","issue_events_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/issues/events{/number}","events_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/events","assignees_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/assignees{/user}","branches_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/branches{/branch}","tags_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/tags","blobs_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/languages","stargazers_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/stargazers","contributors_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/contributors","subscribers_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/subscribers","subscription_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/subscription","commits_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/contents/{+path}","compare_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/merges","archive_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/downloads","issues_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/issues{/number}","pulls_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/labels{/name}","releases_url":"https://api.github.com/repos/chriskuehl/pip-custom-platform/releases{/id}","created_at":"2015-07-24T15:32:21Z","updated_at":"2015-07-24T15:32:21Z","pushed_at":"2015-07-27T18:00:08Z","git_url":"git://github.com/chriskuehl/pip-custom-platform.git","ssh_url":"git@github.com:chriskuehl/pip-custom-platform.git","clone_url":"https://github.com/chriskuehl/pip-custom-platform.git","svn_url":"https://github.com/chriskuehl/pip-custom-platform","homepage":null,"size":94,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"default-platform-name"}},"base":{"label":"asottile:master","ref":"master","sha":"ae8eac07b7b20ed0f03a17f96c73f2d2f0ea7ad4","user":{"login":"asottile","id":1810591,"avatar_url":"https://avatars.githubusercontent.com/u/1810591?v=3","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"repo":{"id":35378438,"name":"pip-custom-platform","full_name":"asottile/pip-custom-platform","owner":{"login":"asottile","id":1810591,"avatar_url":"https://avatars.githubusercontent.com/u/1810591?v=3","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asottile/pip-custom-platform","description":"pip+wheel wrapper which allows you to choose a custom platform name for building, downloading, and installing wheels.","fork":false,"url":"https://api.github.com/repos/asottile/pip-custom-platform","forks_url":"https://api.github.com/repos/asottile/pip-custom-platform/forks","keys_url":"https://api.github.com/repos/asottile/pip-custom-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asottile/pip-custom-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asottile/pip-custom-platform/teams","hooks_url":"https://api.github.com/repos/asottile/pip-custom-platform/hooks","issue_events_url":"https://api.github.com/repos/asottile/pip-custom-platform/issues/events{/number}","events_url":"https://api.github.com/repos/asottile/pip-custom-platform/events","assignees_url":"https://api.github.com/repos/asottile/pip-custom-platform/assignees{/user}","branches_url":"https://api.github.com/repos/asottile/pip-custom-platform/branches{/branch}","tags_url":"https://api.github.com/repos/asottile/pip-custom-platform/tags","blobs_url":"https://api.github.com/repos/asottile/pip-custom-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asottile/pip-custom-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asottile/pip-custom-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/asottile/pip-custom-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asottile/pip-custom-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/asottile/pip-custom-platform/languages","stargazers_url":"https://api.github.com/repos/asottile/pip-custom-platform/stargazers","contributors_url":"https://api.github.com/repos/asottile/pip-custom-platform/contributors","subscribers_url":"https://api.github.com/repos/asottile/pip-custom-platform/subscribers","subscription_url":"https://api.github.com/repos/asottile/pip-custom-platform/subscription","commits_url":"https://api.github.com/repos/asottile/pip-custom-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/asottile/pip-custom-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/asottile/pip-custom-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/asottile/pip-custom-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/asottile/pip-custom-platform/contents/{+path}","compare_url":"https://api.github.com/repos/asottile/pip-custom-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asottile/pip-custom-platform/merges","archive_url":"https://api.github.com/repos/asottile/pip-custom-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asottile/pip-custom-platform/downloads","issues_url":"https://api.github.com/repos/asottile/pip-custom-platform/issues{/number}","pulls_url":"https://api.github.com/repos/asottile/pip-custom-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/asottile/pip-custom-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/asottile/pip-custom-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asottile/pip-custom-platform/labels{/name}","releases_url":"https://api.github.com/repos/asottile/pip-custom-platform/releases{/id}","created_at":"2015-05-10T16:21:03Z","updated_at":"2015-07-24T03:25:56Z","pushed_at":"2015-07-27T18:24:17Z","git_url":"git://github.com/asottile/pip-custom-platform.git","ssh_url":"git@github.com:asottile/pip-custom-platform.git","clone_url":"https://github.com/asottile/pip-custom-platform.git","svn_url":"https://github.com/asottile/pip-custom-platform","homepage":null,"size":130,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/2"},"html":{"href":"https://github.com/asottile/pip-custom-platform/pull/2"},"issue":{"href":"https://api.github.com/repos/asottile/pip-custom-platform/issues/2"},"comments":{"href":"https://api.github.com/repos/asottile/pip-custom-platform/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asottile/pip-custom-platform/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/asottile/pip-custom-platform/statuses/90d66a881117247e3553b74257c99698392cbf66"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":269,"deletions":9,"changed_files":9}}