{"action":"created","comment":{"url":"https://api.github.com/repos/evansde77/cirrus/pulls/comments/34273215","id":34273215,"diff_hunk":"@@ -152,6 +152,19 @@ def build_parser(argslist):\n         dest='no_upload',\n         help=\"do not upload build artifact to pypi\"\n     )\n+    upload_command.add_argument(\n+        '--pypi-sudo',\n+        action='store_true',\n+        dest='pypi_sudo',\n+        help=\"use sudo to upload build artifact to pypi\"\n+    )\n+    upload_command.add_argument(\n+        '--no-pypi-sudo',\n+        action='store_false',\n+        dest='pypi_sudo',\n+        help=\"do not use sudo to upload build artifact to pypi\"\n+    )\n+    upload_command.set_defaults(pypi_sudo=True)","path":"src/cirrus/release.py","position":16,"original_position":16,"commit_id":"2b67eb7b56e16b9ac25f3dc67b29e7048dde2321","original_commit_id":"2b67eb7b56e16b9ac25f3dc67b29e7048dde2321","user":{"login":"shudgston","id":1087548,"avatar_url":"https://avatars.githubusercontent.com/u/1087548?v=3","gravatar_id":"","url":"https://api.github.com/users/shudgston","html_url":"https://github.com/shudgston","followers_url":"https://api.github.com/users/shudgston/followers","following_url":"https://api.github.com/users/shudgston/following{/other_user}","gists_url":"https://api.github.com/users/shudgston/gists{/gist_id}","starred_url":"https://api.github.com/users/shudgston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shudgston/subscriptions","organizations_url":"https://api.github.com/users/shudgston/orgs","repos_url":"https://api.github.com/users/shudgston/repos","events_url":"https://api.github.com/users/shudgston/events{/privacy}","received_events_url":"https://api.github.com/users/shudgston/received_events","type":"User","site_admin":false},"body":"I believe you can assign a default value in `add_argument`","created_at":"2015-07-09T16:21:04Z","updated_at":"2015-07-09T16:21:04Z","html_url":"https://github.com/evansde77/cirrus/pull/53#discussion_r34273215","pull_request_url":"https://api.github.com/repos/evansde77/cirrus/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/evansde77/cirrus/pulls/comments/34273215"},"html":{"href":"https://github.com/evansde77/cirrus/pull/53#discussion_r34273215"},"pull_request":{"href":"https://api.github.com/repos/evansde77/cirrus/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/evansde77/cirrus/pulls/53","id":39596468,"html_url":"https://github.com/evansde77/cirrus/pull/53","diff_url":"https://github.com/evansde77/cirrus/pull/53.diff","patch_url":"https://github.com/evansde77/cirrus/pull/53.patch","issue_url":"https://api.github.com/repos/evansde77/cirrus/issues/53","number":53,"state":"open","locked":false,"title":"Option to not use sudo when uploading build artifact","user":{"login":"appeltel","id":4991673,"avatar_url":"https://avatars.githubusercontent.com/u/4991673?v=3","gravatar_id":"","url":"https://api.github.com/users/appeltel","html_url":"https://github.com/appeltel","followers_url":"https://api.github.com/users/appeltel/followers","following_url":"https://api.github.com/users/appeltel/following{/other_user}","gists_url":"https://api.github.com/users/appeltel/gists{/gist_id}","starred_url":"https://api.github.com/users/appeltel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appeltel/subscriptions","organizations_url":"https://api.github.com/users/appeltel/orgs","repos_url":"https://api.github.com/users/appeltel/repos","events_url":"https://api.github.com/users/appeltel/events{/privacy}","received_events_url":"https://api.github.com/users/appeltel/received_events","type":"User","site_admin":false},"body":"This feature will allow users to upload a release artifact to pypi without using sudo if they have the appropriate permissions as `git cirrus release upload --no-pypi-sudo`. The default remains to use sudo.\r\n\r\nA command line option was chosen over a configuration option as the cirrus.conf is tied to the package being developed and not to the developer performing the command.","created_at":"2015-07-09T15:33:40Z","updated_at":"2015-07-09T16:21:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a7dc05a99f4fe7beac641b7f9aafb9738569a10","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evansde77/cirrus/pulls/53/commits","review_comments_url":"https://api.github.com/repos/evansde77/cirrus/pulls/53/comments","review_comment_url":"https://api.github.com/repos/evansde77/cirrus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evansde77/cirrus/issues/53/comments","statuses_url":"https://api.github.com/repos/evansde77/cirrus/statuses/2b67eb7b56e16b9ac25f3dc67b29e7048dde2321","head":{"label":"evansde77:feature/no-pypi-sudo-option","ref":"feature/no-pypi-sudo-option","sha":"2b67eb7b56e16b9ac25f3dc67b29e7048dde2321","user":{"login":"evansde77","id":342380,"avatar_url":"https://avatars.githubusercontent.com/u/342380?v=3","gravatar_id":"","url":"https://api.github.com/users/evansde77","html_url":"https://github.com/evansde77","followers_url":"https://api.github.com/users/evansde77/followers","following_url":"https://api.github.com/users/evansde77/following{/other_user}","gists_url":"https://api.github.com/users/evansde77/gists{/gist_id}","starred_url":"https://api.github.com/users/evansde77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evansde77/subscriptions","organizations_url":"https://api.github.com/users/evansde77/orgs","repos_url":"https://api.github.com/users/evansde77/repos","events_url":"https://api.github.com/users/evansde77/events{/privacy}","received_events_url":"https://api.github.com/users/evansde77/received_events","type":"User","site_admin":false},"repo":{"id":17570751,"name":"cirrus","full_name":"evansde77/cirrus","owner":{"login":"evansde77","id":342380,"avatar_url":"https://avatars.githubusercontent.com/u/342380?v=3","gravatar_id":"","url":"https://api.github.com/users/evansde77","html_url":"https://github.com/evansde77","followers_url":"https://api.github.com/users/evansde77/followers","following_url":"https://api.github.com/users/evansde77/following{/other_user}","gists_url":"https://api.github.com/users/evansde77/gists{/gist_id}","starred_url":"https://api.github.com/users/evansde77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evansde77/subscriptions","organizations_url":"https://api.github.com/users/evansde77/orgs","repos_url":"https://api.github.com/users/evansde77/repos","events_url":"https://api.github.com/users/evansde77/events{/privacy}","received_events_url":"https://api.github.com/users/evansde77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evansde77/cirrus","description":"python library build, test and devop like things assistant","fork":false,"url":"https://api.github.com/repos/evansde77/cirrus","forks_url":"https://api.github.com/repos/evansde77/cirrus/forks","keys_url":"https://api.github.com/repos/evansde77/cirrus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evansde77/cirrus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evansde77/cirrus/teams","hooks_url":"https://api.github.com/repos/evansde77/cirrus/hooks","issue_events_url":"https://api.github.com/repos/evansde77/cirrus/issues/events{/number}","events_url":"https://api.github.com/repos/evansde77/cirrus/events","assignees_url":"https://api.github.com/repos/evansde77/cirrus/assignees{/user}","branches_url":"https://api.github.com/repos/evansde77/cirrus/branches{/branch}","tags_url":"https://api.github.com/repos/evansde77/cirrus/tags","blobs_url":"https://api.github.com/repos/evansde77/cirrus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evansde77/cirrus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evansde77/cirrus/git/refs{/sha}","trees_url":"https://api.github.com/repos/evansde77/cirrus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evansde77/cirrus/statuses/{sha}","languages_url":"https://api.github.com/repos/evansde77/cirrus/languages","stargazers_url":"https://api.github.com/repos/evansde77/cirrus/stargazers","contributors_url":"https://api.github.com/repos/evansde77/cirrus/contributors","subscribers_url":"https://api.github.com/repos/evansde77/cirrus/subscribers","subscription_url":"https://api.github.com/repos/evansde77/cirrus/subscription","commits_url":"https://api.github.com/repos/evansde77/cirrus/commits{/sha}","git_commits_url":"https://api.github.com/repos/evansde77/cirrus/git/commits{/sha}","comments_url":"https://api.github.com/repos/evansde77/cirrus/comments{/number}","issue_comment_url":"https://api.github.com/repos/evansde77/cirrus/issues/comments{/number}","contents_url":"https://api.github.com/repos/evansde77/cirrus/contents/{+path}","compare_url":"https://api.github.com/repos/evansde77/cirrus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evansde77/cirrus/merges","archive_url":"https://api.github.com/repos/evansde77/cirrus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evansde77/cirrus/downloads","issues_url":"https://api.github.com/repos/evansde77/cirrus/issues{/number}","pulls_url":"https://api.github.com/repos/evansde77/cirrus/pulls{/number}","milestones_url":"https://api.github.com/repos/evansde77/cirrus/milestones{/number}","notifications_url":"https://api.github.com/repos/evansde77/cirrus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evansde77/cirrus/labels{/name}","releases_url":"https://api.github.com/repos/evansde77/cirrus/releases{/id}","created_at":"2014-03-09T18:35:33Z","updated_at":"2015-04-09T15:15:49Z","pushed_at":"2015-07-09T15:33:41Z","git_url":"git://github.com/evansde77/cirrus.git","ssh_url":"git@github.com:evansde77/cirrus.git","clone_url":"https://github.com/evansde77/cirrus.git","svn_url":"https://github.com/evansde77/cirrus","homepage":null,"size":4064,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"develop"}},"base":{"label":"evansde77:develop","ref":"develop","sha":"77fc1106d48fe03ff98d431c50612af49d5c5f80","user":{"login":"evansde77","id":342380,"avatar_url":"https://avatars.githubusercontent.com/u/342380?v=3","gravatar_id":"","url":"https://api.github.com/users/evansde77","html_url":"https://github.com/evansde77","followers_url":"https://api.github.com/users/evansde77/followers","following_url":"https://api.github.com/users/evansde77/following{/other_user}","gists_url":"https://api.github.com/users/evansde77/gists{/gist_id}","starred_url":"https://api.github.com/users/evansde77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evansde77/subscriptions","organizations_url":"https://api.github.com/users/evansde77/orgs","repos_url":"https://api.github.com/users/evansde77/repos","events_url":"https://api.github.com/users/evansde77/events{/privacy}","received_events_url":"https://api.github.com/users/evansde77/received_events","type":"User","site_admin":false},"repo":{"id":17570751,"name":"cirrus","full_name":"evansde77/cirrus","owner":{"login":"evansde77","id":342380,"avatar_url":"https://avatars.githubusercontent.com/u/342380?v=3","gravatar_id":"","url":"https://api.github.com/users/evansde77","html_url":"https://github.com/evansde77","followers_url":"https://api.github.com/users/evansde77/followers","following_url":"https://api.github.com/users/evansde77/following{/other_user}","gists_url":"https://api.github.com/users/evansde77/gists{/gist_id}","starred_url":"https://api.github.com/users/evansde77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evansde77/subscriptions","organizations_url":"https://api.github.com/users/evansde77/orgs","repos_url":"https://api.github.com/users/evansde77/repos","events_url":"https://api.github.com/users/evansde77/events{/privacy}","received_events_url":"https://api.github.com/users/evansde77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evansde77/cirrus","description":"python library build, test and devop like things assistant","fork":false,"url":"https://api.github.com/repos/evansde77/cirrus","forks_url":"https://api.github.com/repos/evansde77/cirrus/forks","keys_url":"https://api.github.com/repos/evansde77/cirrus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evansde77/cirrus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evansde77/cirrus/teams","hooks_url":"https://api.github.com/repos/evansde77/cirrus/hooks","issue_events_url":"https://api.github.com/repos/evansde77/cirrus/issues/events{/number}","events_url":"https://api.github.com/repos/evansde77/cirrus/events","assignees_url":"https://api.github.com/repos/evansde77/cirrus/assignees{/user}","branches_url":"https://api.github.com/repos/evansde77/cirrus/branches{/branch}","tags_url":"https://api.github.com/repos/evansde77/cirrus/tags","blobs_url":"https://api.github.com/repos/evansde77/cirrus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evansde77/cirrus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evansde77/cirrus/git/refs{/sha}","trees_url":"https://api.github.com/repos/evansde77/cirrus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evansde77/cirrus/statuses/{sha}","languages_url":"https://api.github.com/repos/evansde77/cirrus/languages","stargazers_url":"https://api.github.com/repos/evansde77/cirrus/stargazers","contributors_url":"https://api.github.com/repos/evansde77/cirrus/contributors","subscribers_url":"https://api.github.com/repos/evansde77/cirrus/subscribers","subscription_url":"https://api.github.com/repos/evansde77/cirrus/subscription","commits_url":"https://api.github.com/repos/evansde77/cirrus/commits{/sha}","git_commits_url":"https://api.github.com/repos/evansde77/cirrus/git/commits{/sha}","comments_url":"https://api.github.com/repos/evansde77/cirrus/comments{/number}","issue_comment_url":"https://api.github.com/repos/evansde77/cirrus/issues/comments{/number}","contents_url":"https://api.github.com/repos/evansde77/cirrus/contents/{+path}","compare_url":"https://api.github.com/repos/evansde77/cirrus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evansde77/cirrus/merges","archive_url":"https://api.github.com/repos/evansde77/cirrus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evansde77/cirrus/downloads","issues_url":"https://api.github.com/repos/evansde77/cirrus/issues{/number}","pulls_url":"https://api.github.com/repos/evansde77/cirrus/pulls{/number}","milestones_url":"https://api.github.com/repos/evansde77/cirrus/milestones{/number}","notifications_url":"https://api.github.com/repos/evansde77/cirrus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evansde77/cirrus/labels{/name}","releases_url":"https://api.github.com/repos/evansde77/cirrus/releases{/id}","created_at":"2014-03-09T18:35:33Z","updated_at":"2015-04-09T15:15:49Z","pushed_at":"2015-07-09T15:33:41Z","git_url":"git://github.com/evansde77/cirrus.git","ssh_url":"git@github.com:evansde77/cirrus.git","clone_url":"https://github.com/evansde77/cirrus.git","svn_url":"https://github.com/evansde77/cirrus","homepage":null,"size":4064,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/evansde77/cirrus/pulls/53"},"html":{"href":"https://github.com/evansde77/cirrus/pull/53"},"issue":{"href":"https://api.github.com/repos/evansde77/cirrus/issues/53"},"comments":{"href":"https://api.github.com/repos/evansde77/cirrus/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/evansde77/cirrus/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/evansde77/cirrus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evansde77/cirrus/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/evansde77/cirrus/statuses/2b67eb7b56e16b9ac25f3dc67b29e7048dde2321"}}}}