{"action":"opened","number":113,"pull_request":{"url":"https://api.github.com/repos/Binstar/binstar/pulls/113","id":28130006,"html_url":"https://github.com/Binstar/binstar/pull/113","diff_url":"https://github.com/Binstar/binstar/pull/113.diff","patch_url":"https://github.com/Binstar/binstar/pull/113.patch","issue_url":"https://api.github.com/repos/Binstar/binstar/issues/113","number":113,"state":"open","locked":false,"title":"PyPI upload of sdist package appears broken","user":{"login":"coleb","id":127899,"avatar_url":"https://avatars.githubusercontent.com/u/127899?v=3","gravatar_id":"","url":"https://api.github.com/users/coleb","html_url":"https://github.com/coleb","followers_url":"https://api.github.com/users/coleb/followers","following_url":"https://api.github.com/users/coleb/following{/other_user}","gists_url":"https://api.github.com/users/coleb/gists{/gist_id}","starred_url":"https://api.github.com/users/coleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coleb/subscriptions","organizations_url":"https://api.github.com/users/coleb/orgs","repos_url":"https://api.github.com/users/coleb/repos","events_url":"https://api.github.com/users/coleb/events{/privacy}","received_events_url":"https://api.github.com/users/coleb/received_events","type":"User","site_admin":false},"body":"10.1 of binstar is giving us the following traceback: \r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/bin/binstar\", line 9, in <module>\r\n    load_entry_point('binstar==0.10.1', 'console_scripts', 'binstar')()\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/lib/python2.7/site-packages/binstar_client/scripts/cli.py\", line 94, in main\r\n    description=__doc__, version=version)\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/lib/python2.7/site-packages/binstar_client/scripts/cli.py\", line 76, in binstar_main\r\n    return args.main(args)\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/lib/python2.7/site-packages/binstar_client/commands/upload.py\", line 168, in main\r\n    package_attrs, release_attrs, file_attrs = get_attrs(package_type, filename)\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/lib/python2.7/site-packages/binstar_client/utils/detect.py\", line 81, in get_attrs\r\n    return detectors[package_type](filename, fileobj)\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/lib/python2.7/site-packages/binstar_client/inspect_package/pypi.py\", line 372, in inspect_pypi_package\r\n    return inspect_pypi_package_sdist(filename, fileobj)\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/lib/python2.7/site-packages/binstar_client/inspect_package/pypi.py\", line 230, in inspect_pypi_package_sdist\r\n    'version': pop_key(attrs, 'Version'),\r\n  File \"/Users/coleb/.virtualenvs/binstar_client/lib/python2.7/site-packages/binstar_client/inspect_package/uitls.py\", line 43, in pop_key\r\n    value = data.pop(k, *d)\r\nKeyError: 'Version'\r\n\r\nIt can be chased to the fact that email.parser.Parser().parsestr() does not handle unicode cleanly, instead deciding to die silently and return nothing useful. \r\n\r\nForcing a coercion to UTF-8 fixes the problem. \r\n\r\nNote, binstar doesn't appear to currently work with python3, so I punted on python3 compatibility. ","created_at":"2015-01-27T17:58:25Z","updated_at":"2015-01-27T17:58:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Binstar/binstar/pulls/113/commits","review_comments_url":"https://api.github.com/repos/Binstar/binstar/pulls/113/comments","review_comment_url":"https://api.github.com/repos/Binstar/binstar/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Binstar/binstar/issues/113/comments","statuses_url":"https://api.github.com/repos/Binstar/binstar/statuses/28645767eadff2261800cce6d45b3e70087823dc","head":{"label":"coleb:master","ref":"master","sha":"28645767eadff2261800cce6d45b3e70087823dc","user":{"login":"coleb","id":127899,"avatar_url":"https://avatars.githubusercontent.com/u/127899?v=3","gravatar_id":"","url":"https://api.github.com/users/coleb","html_url":"https://github.com/coleb","followers_url":"https://api.github.com/users/coleb/followers","following_url":"https://api.github.com/users/coleb/following{/other_user}","gists_url":"https://api.github.com/users/coleb/gists{/gist_id}","starred_url":"https://api.github.com/users/coleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coleb/subscriptions","organizations_url":"https://api.github.com/users/coleb/orgs","repos_url":"https://api.github.com/users/coleb/repos","events_url":"https://api.github.com/users/coleb/events{/privacy}","received_events_url":"https://api.github.com/users/coleb/received_events","type":"User","site_admin":false},"repo":{"id":29925788,"name":"binstar","full_name":"coleb/binstar","owner":{"login":"coleb","id":127899,"avatar_url":"https://avatars.githubusercontent.com/u/127899?v=3","gravatar_id":"","url":"https://api.github.com/users/coleb","html_url":"https://github.com/coleb","followers_url":"https://api.github.com/users/coleb/followers","following_url":"https://api.github.com/users/coleb/following{/other_user}","gists_url":"https://api.github.com/users/coleb/gists{/gist_id}","starred_url":"https://api.github.com/users/coleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coleb/subscriptions","organizations_url":"https://api.github.com/users/coleb/orgs","repos_url":"https://api.github.com/users/coleb/repos","events_url":"https://api.github.com/users/coleb/events{/privacy}","received_events_url":"https://api.github.com/users/coleb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coleb/binstar","description":"Binstar Client Library ","fork":true,"url":"https://api.github.com/repos/coleb/binstar","forks_url":"https://api.github.com/repos/coleb/binstar/forks","keys_url":"https://api.github.com/repos/coleb/binstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coleb/binstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coleb/binstar/teams","hooks_url":"https://api.github.com/repos/coleb/binstar/hooks","issue_events_url":"https://api.github.com/repos/coleb/binstar/issues/events{/number}","events_url":"https://api.github.com/repos/coleb/binstar/events","assignees_url":"https://api.github.com/repos/coleb/binstar/assignees{/user}","branches_url":"https://api.github.com/repos/coleb/binstar/branches{/branch}","tags_url":"https://api.github.com/repos/coleb/binstar/tags","blobs_url":"https://api.github.com/repos/coleb/binstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coleb/binstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coleb/binstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/coleb/binstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coleb/binstar/statuses/{sha}","languages_url":"https://api.github.com/repos/coleb/binstar/languages","stargazers_url":"https://api.github.com/repos/coleb/binstar/stargazers","contributors_url":"https://api.github.com/repos/coleb/binstar/contributors","subscribers_url":"https://api.github.com/repos/coleb/binstar/subscribers","subscription_url":"https://api.github.com/repos/coleb/binstar/subscription","commits_url":"https://api.github.com/repos/coleb/binstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/coleb/binstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/coleb/binstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/coleb/binstar/issues/comments/{number}","contents_url":"https://api.github.com/repos/coleb/binstar/contents/{+path}","compare_url":"https://api.github.com/repos/coleb/binstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coleb/binstar/merges","archive_url":"https://api.github.com/repos/coleb/binstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coleb/binstar/downloads","issues_url":"https://api.github.com/repos/coleb/binstar/issues{/number}","pulls_url":"https://api.github.com/repos/coleb/binstar/pulls{/number}","milestones_url":"https://api.github.com/repos/coleb/binstar/milestones{/number}","notifications_url":"https://api.github.com/repos/coleb/binstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coleb/binstar/labels{/name}","releases_url":"https://api.github.com/repos/coleb/binstar/releases{/id}","created_at":"2015-01-27T17:33:04Z","updated_at":"2015-01-27T17:37:36Z","pushed_at":"2015-01-27T17:37:36Z","git_url":"git://github.com/coleb/binstar.git","ssh_url":"git@github.com:coleb/binstar.git","clone_url":"https://github.com/coleb/binstar.git","svn_url":"https://github.com/coleb/binstar","homepage":null,"size":476,"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":"master"}},"base":{"label":"Binstar:master","ref":"master","sha":"25d4ca09d97c9512493a82d8eaed452c89ee14e8","user":{"login":"Binstar","id":3571983,"avatar_url":"https://avatars.githubusercontent.com/u/3571983?v=3","gravatar_id":"","url":"https://api.github.com/users/Binstar","html_url":"https://github.com/Binstar","followers_url":"https://api.github.com/users/Binstar/followers","following_url":"https://api.github.com/users/Binstar/following{/other_user}","gists_url":"https://api.github.com/users/Binstar/gists{/gist_id}","starred_url":"https://api.github.com/users/Binstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Binstar/subscriptions","organizations_url":"https://api.github.com/users/Binstar/orgs","repos_url":"https://api.github.com/users/Binstar/repos","events_url":"https://api.github.com/users/Binstar/events{/privacy}","received_events_url":"https://api.github.com/users/Binstar/received_events","type":"Organization","site_admin":false},"repo":{"id":9064487,"name":"binstar","full_name":"Binstar/binstar","owner":{"login":"Binstar","id":3571983,"avatar_url":"https://avatars.githubusercontent.com/u/3571983?v=3","gravatar_id":"","url":"https://api.github.com/users/Binstar","html_url":"https://github.com/Binstar","followers_url":"https://api.github.com/users/Binstar/followers","following_url":"https://api.github.com/users/Binstar/following{/other_user}","gists_url":"https://api.github.com/users/Binstar/gists{/gist_id}","starred_url":"https://api.github.com/users/Binstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Binstar/subscriptions","organizations_url":"https://api.github.com/users/Binstar/orgs","repos_url":"https://api.github.com/users/Binstar/repos","events_url":"https://api.github.com/users/Binstar/events{/privacy}","received_events_url":"https://api.github.com/users/Binstar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Binstar/binstar","description":"Binstar Client Library ","fork":false,"url":"https://api.github.com/repos/Binstar/binstar","forks_url":"https://api.github.com/repos/Binstar/binstar/forks","keys_url":"https://api.github.com/repos/Binstar/binstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Binstar/binstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Binstar/binstar/teams","hooks_url":"https://api.github.com/repos/Binstar/binstar/hooks","issue_events_url":"https://api.github.com/repos/Binstar/binstar/issues/events{/number}","events_url":"https://api.github.com/repos/Binstar/binstar/events","assignees_url":"https://api.github.com/repos/Binstar/binstar/assignees{/user}","branches_url":"https://api.github.com/repos/Binstar/binstar/branches{/branch}","tags_url":"https://api.github.com/repos/Binstar/binstar/tags","blobs_url":"https://api.github.com/repos/Binstar/binstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Binstar/binstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Binstar/binstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/Binstar/binstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Binstar/binstar/statuses/{sha}","languages_url":"https://api.github.com/repos/Binstar/binstar/languages","stargazers_url":"https://api.github.com/repos/Binstar/binstar/stargazers","contributors_url":"https://api.github.com/repos/Binstar/binstar/contributors","subscribers_url":"https://api.github.com/repos/Binstar/binstar/subscribers","subscription_url":"https://api.github.com/repos/Binstar/binstar/subscription","commits_url":"https://api.github.com/repos/Binstar/binstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/Binstar/binstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/Binstar/binstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/Binstar/binstar/issues/comments/{number}","contents_url":"https://api.github.com/repos/Binstar/binstar/contents/{+path}","compare_url":"https://api.github.com/repos/Binstar/binstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Binstar/binstar/merges","archive_url":"https://api.github.com/repos/Binstar/binstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Binstar/binstar/downloads","issues_url":"https://api.github.com/repos/Binstar/binstar/issues{/number}","pulls_url":"https://api.github.com/repos/Binstar/binstar/pulls{/number}","milestones_url":"https://api.github.com/repos/Binstar/binstar/milestones{/number}","notifications_url":"https://api.github.com/repos/Binstar/binstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Binstar/binstar/labels{/name}","releases_url":"https://api.github.com/repos/Binstar/binstar/releases{/id}","created_at":"2013-03-27T21:52:37Z","updated_at":"2015-01-14T21:00:01Z","pushed_at":"2015-01-14T21:00:01Z","git_url":"git://github.com/Binstar/binstar.git","ssh_url":"git@github.com:Binstar/binstar.git","clone_url":"https://github.com/Binstar/binstar.git","svn_url":"https://github.com/Binstar/binstar","homepage":null,"size":1799,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":18,"forks":22,"open_issues":18,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Binstar/binstar/pulls/113"},"html":{"href":"https://github.com/Binstar/binstar/pull/113"},"issue":{"href":"https://api.github.com/repos/Binstar/binstar/issues/113"},"comments":{"href":"https://api.github.com/repos/Binstar/binstar/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/Binstar/binstar/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/Binstar/binstar/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Binstar/binstar/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/Binstar/binstar/statuses/28645767eadff2261800cce6d45b3e70087823dc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}