{"action":"created","comment":{"url":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/comments/36010260","id":36010260,"diff_hunk":"@@ -0,0 +1,194 @@\n+#!/bin/bash\n+######################################################################\n+# repo-versions.sh\n+# Copyright (C) 2014, 2015 LEAP\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+######################################################################\n+set -e  # Exit immediately if a command exits with a non-zero status.\n+\n+REPOSITORIES=\"bitmask_client leap_pycommon soledad keymanager leap_mail\"\n+PACKAGES=\"leap_pycommon keymanager soledad/common soledad/client leap_mail bitmask_client\"\n+\n+SCRIPT_DIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\"  )\" && pwd  )\"\n+REPOS_ROOT=\"$SCRIPT_DIR/repositories\"  # Root path for all the needed repositories\n+VENV_DIR=\"$SCRIPT_DIR/bitmask.venv\"  # Root path for all the needed repositories\n+\n+# Escape codes - set colors\n+esc=`echo -en \"\\033\"`\n+cc_green=\"${esc}[0;32m\"\n+cc_yellow=\"${esc}[0;33m\"\n+cc_red=\"${esc}[0;31m\"\n+cc_normal=`echo -en \"${esc}[m\\017\"`\n+\n+mkdir -p $REPOS_ROOT\n+\n+create_venv() {\n+    status=\"creating virtualenv\"\n+    echo \"${cc_green}Status: $status...${cc_normal}\"\n+    set -x  # show commands\n+\n+    virtualenv $VENV_DIR && source $VENV_DIR/bin/activate\n+    pip install --upgrade pip  # get the latest pip\n+\n+    set +x\n+    echo \"${cc_green}Status: $status done.${cc_normal}\"\n+}\n+\n+install_pyinstaller(){\n+    status=\"installing pyinstaller from repo\"\n+    echo \"${cc_green}Status: $status...${cc_normal}\"\n+    set -x  # show commands\n+    source $VENV_DIR/bin/activate\n+    cd $REPOS_ROOT\n+\n+    git clone https://github.com/pyinstaller/pyinstaller.git --depth 1\n+    cd pyinstaller\n+    python setup.py install\n+\n+    set +x\n+    echo \"${cc_green}Status: $status done.${cc_normal}\"\n+}\n+\n+clone_repos() {\n+    status=\"clone repositories\"\n+    echo \"${cc_green}Status: $status...${cc_normal}\"\n+    set -x  # show commands\n+\n+    src=\"https://leap.se/git\"\n+    cd $REPOS_ROOT\n+\n+    for repo in $REPOSITORIES; do\n+        echo \"${cc_yellow}Status: cloning: $repo...${cc_normal}\"\n+        [ ! -d $repo ] && git clone -b develop $src/$repo --depth 1\n+    done\n+\n+    set +x\n+    echo \"${cc_green}Status: $status done!${cc_normal}\"\n+}\n+\n+install_requirements() {\n+    status=\"installing non-leap requirements\"\n+    echo \"${cc_green}Status: $status...${cc_normal}\"\n+    set -x  # show commands\n+    cd $REPOS_ROOT\n+    source $VENV_DIR/bin/activate\n+\n+    for package in $PACKAGES; do\n+        cd $REPOS_ROOT/$package\n+        echo \"${cc_yellow}Status: installing requirements for: $package...${cc_normal}\"\n+        ./pkg/pip_install_requirements.sh\n+    done","path":"bundle_pyinstaller.sh","position":92,"original_position":92,"commit_id":"1dccc8a98d191764b57a30eecdc1073edb78bc6d","original_commit_id":"1dccc8a98d191764b57a30eecdc1073edb78bc6d","user":{"login":"ivanalejandro0","id":806502,"avatar_url":"https://avatars.githubusercontent.com/u/806502?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanalejandro0","html_url":"https://github.com/ivanalejandro0","followers_url":"https://api.github.com/users/ivanalejandro0/followers","following_url":"https://api.github.com/users/ivanalejandro0/following{/other_user}","gists_url":"https://api.github.com/users/ivanalejandro0/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanalejandro0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanalejandro0/subscriptions","organizations_url":"https://api.github.com/users/ivanalejandro0/orgs","repos_url":"https://api.github.com/users/ivanalejandro0/repos","events_url":"https://api.github.com/users/ivanalejandro0/events{/privacy}","received_events_url":"https://api.github.com/users/ivanalejandro0/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2015-07-31T19:55:47Z","updated_at":"2015-07-31T19:55:47Z","html_url":"https://github.com/leapcode/bitmask_bundler/pull/11#discussion_r36010260","pull_request_url":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/comments/36010260"},"html":{"href":"https://github.com/leapcode/bitmask_bundler/pull/11#discussion_r36010260"},"pull_request":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11","id":41285184,"html_url":"https://github.com/leapcode/bitmask_bundler/pull/11","diff_url":"https://github.com/leapcode/bitmask_bundler/pull/11.diff","patch_url":"https://github.com/leapcode/bitmask_bundler/pull/11.patch","issue_url":"https://api.github.com/repos/leapcode/bitmask_bundler/issues/11","number":11,"state":"open","locked":false,"title":"Add bundler script that uses pyinstaller.","user":{"login":"ivanalejandro0","id":806502,"avatar_url":"https://avatars.githubusercontent.com/u/806502?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanalejandro0","html_url":"https://github.com/ivanalejandro0","followers_url":"https://api.github.com/users/ivanalejandro0/followers","following_url":"https://api.github.com/users/ivanalejandro0/following{/other_user}","gists_url":"https://api.github.com/users/ivanalejandro0/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanalejandro0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanalejandro0/subscriptions","organizations_url":"https://api.github.com/users/ivanalejandro0/orgs","repos_url":"https://api.github.com/users/ivanalejandro0/repos","events_url":"https://api.github.com/users/ivanalejandro0/events{/privacy}","received_events_url":"https://api.github.com/users/ivanalejandro0/received_events","type":"User","site_admin":false},"body":"**DO NOT MERGE YET**","created_at":"2015-07-30T21:38:16Z","updated_at":"2015-07-31T19:55:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93b26a2cae8778de738a46010ff5380361376eec","assignee":{"login":"kalikaneko","id":3072993,"avatar_url":"https://avatars.githubusercontent.com/u/3072993?v=3","gravatar_id":"","url":"https://api.github.com/users/kalikaneko","html_url":"https://github.com/kalikaneko","followers_url":"https://api.github.com/users/kalikaneko/followers","following_url":"https://api.github.com/users/kalikaneko/following{/other_user}","gists_url":"https://api.github.com/users/kalikaneko/gists{/gist_id}","starred_url":"https://api.github.com/users/kalikaneko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalikaneko/subscriptions","organizations_url":"https://api.github.com/users/kalikaneko/orgs","repos_url":"https://api.github.com/users/kalikaneko/repos","events_url":"https://api.github.com/users/kalikaneko/events{/privacy}","received_events_url":"https://api.github.com/users/kalikaneko/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11/commits","review_comments_url":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11/comments","review_comment_url":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leapcode/bitmask_bundler/issues/11/comments","statuses_url":"https://api.github.com/repos/leapcode/bitmask_bundler/statuses/1dccc8a98d191764b57a30eecdc1073edb78bc6d","head":{"label":"ivanalejandro0:feature/pyinstaller_bundler","ref":"feature/pyinstaller_bundler","sha":"1dccc8a98d191764b57a30eecdc1073edb78bc6d","user":{"login":"ivanalejandro0","id":806502,"avatar_url":"https://avatars.githubusercontent.com/u/806502?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanalejandro0","html_url":"https://github.com/ivanalejandro0","followers_url":"https://api.github.com/users/ivanalejandro0/followers","following_url":"https://api.github.com/users/ivanalejandro0/following{/other_user}","gists_url":"https://api.github.com/users/ivanalejandro0/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanalejandro0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanalejandro0/subscriptions","organizations_url":"https://api.github.com/users/ivanalejandro0/orgs","repos_url":"https://api.github.com/users/ivanalejandro0/repos","events_url":"https://api.github.com/users/ivanalejandro0/events{/privacy}","received_events_url":"https://api.github.com/users/ivanalejandro0/received_events","type":"User","site_admin":false},"repo":{"id":24905952,"name":"bitmask_bundler","full_name":"ivanalejandro0/bitmask_bundler","owner":{"login":"ivanalejandro0","id":806502,"avatar_url":"https://avatars.githubusercontent.com/u/806502?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanalejandro0","html_url":"https://github.com/ivanalejandro0","followers_url":"https://api.github.com/users/ivanalejandro0/followers","following_url":"https://api.github.com/users/ivanalejandro0/following{/other_user}","gists_url":"https://api.github.com/users/ivanalejandro0/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanalejandro0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanalejandro0/subscriptions","organizations_url":"https://api.github.com/users/ivanalejandro0/orgs","repos_url":"https://api.github.com/users/ivanalejandro0/repos","events_url":"https://api.github.com/users/ivanalejandro0/events{/privacy}","received_events_url":"https://api.github.com/users/ivanalejandro0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ivanalejandro0/bitmask_bundler","description":"","fork":true,"url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler","forks_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/forks","keys_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/teams","hooks_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/hooks","issue_events_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/issues/events{/number}","events_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/events","assignees_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/assignees{/user}","branches_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/branches{/branch}","tags_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/tags","blobs_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/languages","stargazers_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/stargazers","contributors_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/contributors","subscribers_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/subscribers","subscription_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/subscription","commits_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/issues/comments{/number}","contents_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/contents/{+path}","compare_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/merges","archive_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/downloads","issues_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/issues{/number}","pulls_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/labels{/name}","releases_url":"https://api.github.com/repos/ivanalejandro0/bitmask_bundler/releases{/id}","created_at":"2014-10-07T18:46:35Z","updated_at":"2014-10-07T18:41:51Z","pushed_at":"2015-07-30T21:23:21Z","git_url":"git://github.com/ivanalejandro0/bitmask_bundler.git","ssh_url":"git@github.com:ivanalejandro0/bitmask_bundler.git","clone_url":"https://github.com/ivanalejandro0/bitmask_bundler.git","svn_url":"https://github.com/ivanalejandro0/bitmask_bundler","homepage":null,"size":291,"stargazers_count":0,"watchers_count":0,"language":null,"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":"develop"}},"base":{"label":"leapcode:develop","ref":"develop","sha":"6670dccd5f5f1448bc757f3640d7f3cd54266b07","user":{"login":"leapcode","id":1700464,"avatar_url":"https://avatars.githubusercontent.com/u/1700464?v=3","gravatar_id":"","url":"https://api.github.com/users/leapcode","html_url":"https://github.com/leapcode","followers_url":"https://api.github.com/users/leapcode/followers","following_url":"https://api.github.com/users/leapcode/following{/other_user}","gists_url":"https://api.github.com/users/leapcode/gists{/gist_id}","starred_url":"https://api.github.com/users/leapcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapcode/subscriptions","organizations_url":"https://api.github.com/users/leapcode/orgs","repos_url":"https://api.github.com/users/leapcode/repos","events_url":"https://api.github.com/users/leapcode/events{/privacy}","received_events_url":"https://api.github.com/users/leapcode/received_events","type":"Organization","site_admin":false},"repo":{"id":24763933,"name":"bitmask_bundler","full_name":"leapcode/bitmask_bundler","owner":{"login":"leapcode","id":1700464,"avatar_url":"https://avatars.githubusercontent.com/u/1700464?v=3","gravatar_id":"","url":"https://api.github.com/users/leapcode","html_url":"https://github.com/leapcode","followers_url":"https://api.github.com/users/leapcode/followers","following_url":"https://api.github.com/users/leapcode/following{/other_user}","gists_url":"https://api.github.com/users/leapcode/gists{/gist_id}","starred_url":"https://api.github.com/users/leapcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapcode/subscriptions","organizations_url":"https://api.github.com/users/leapcode/orgs","repos_url":"https://api.github.com/users/leapcode/repos","events_url":"https://api.github.com/users/leapcode/events{/privacy}","received_events_url":"https://api.github.com/users/leapcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapcode/bitmask_bundler","description":"","fork":false,"url":"https://api.github.com/repos/leapcode/bitmask_bundler","forks_url":"https://api.github.com/repos/leapcode/bitmask_bundler/forks","keys_url":"https://api.github.com/repos/leapcode/bitmask_bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapcode/bitmask_bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapcode/bitmask_bundler/teams","hooks_url":"https://api.github.com/repos/leapcode/bitmask_bundler/hooks","issue_events_url":"https://api.github.com/repos/leapcode/bitmask_bundler/issues/events{/number}","events_url":"https://api.github.com/repos/leapcode/bitmask_bundler/events","assignees_url":"https://api.github.com/repos/leapcode/bitmask_bundler/assignees{/user}","branches_url":"https://api.github.com/repos/leapcode/bitmask_bundler/branches{/branch}","tags_url":"https://api.github.com/repos/leapcode/bitmask_bundler/tags","blobs_url":"https://api.github.com/repos/leapcode/bitmask_bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapcode/bitmask_bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapcode/bitmask_bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapcode/bitmask_bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapcode/bitmask_bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/leapcode/bitmask_bundler/languages","stargazers_url":"https://api.github.com/repos/leapcode/bitmask_bundler/stargazers","contributors_url":"https://api.github.com/repos/leapcode/bitmask_bundler/contributors","subscribers_url":"https://api.github.com/repos/leapcode/bitmask_bundler/subscribers","subscription_url":"https://api.github.com/repos/leapcode/bitmask_bundler/subscription","commits_url":"https://api.github.com/repos/leapcode/bitmask_bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapcode/bitmask_bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapcode/bitmask_bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapcode/bitmask_bundler/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapcode/bitmask_bundler/contents/{+path}","compare_url":"https://api.github.com/repos/leapcode/bitmask_bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapcode/bitmask_bundler/merges","archive_url":"https://api.github.com/repos/leapcode/bitmask_bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapcode/bitmask_bundler/downloads","issues_url":"https://api.github.com/repos/leapcode/bitmask_bundler/issues{/number}","pulls_url":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/leapcode/bitmask_bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/leapcode/bitmask_bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapcode/bitmask_bundler/labels{/name}","releases_url":"https://api.github.com/repos/leapcode/bitmask_bundler/releases{/id}","created_at":"2014-10-03T15:40:57Z","updated_at":"2015-04-17T19:21:46Z","pushed_at":"2015-07-30T21:38:17Z","git_url":"git://github.com/leapcode/bitmask_bundler.git","ssh_url":"git@github.com:leapcode/bitmask_bundler.git","clone_url":"https://github.com/leapcode/bitmask_bundler.git","svn_url":"https://github.com/leapcode/bitmask_bundler","homepage":null,"size":420,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11"},"html":{"href":"https://github.com/leapcode/bitmask_bundler/pull/11"},"issue":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/issues/11"},"comments":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/leapcode/bitmask_bundler/statuses/1dccc8a98d191764b57a30eecdc1073edb78bc6d"}}}}