{"action":"created","comment":{"url":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/comments/79971433","id":79971433,"diff_hunk":"@@ -1,30 +1,62 @@\n-#!/usr/bin/env python\r\n-# Copyright @ 2015 EMC Corporation All Rights Reserved\r\n-#\r\n-# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-# you may not use this file except in compliance with the License.\r\n-# You may obtain a copy of the License at\r\n-#\r\n-#    http://www.apache.org/licenses/LICENSE-2.0\r\n-#\r\n-# Unless required by applicable law or agreed to in writing, software\r\n-# distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r\n-# implied.\r\n-# See the License for the specific language governing permissions and\r\n-# limitations under the License.\r\n-\r\n-# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT\r\n-import setuptools\r\n-\r\n-# In python < 2.7.4, a lazy loading of package `pbr` will break\r\n-# setuptools if some other modules registered functions in `atexit`.\r\n-# solution from: http://bugs.python.org/issue15881#msg170215\r\n-try:\r\n-    import multiprocessing  # noqa\r\n-except ImportError:\r\n-    pass\r\n-\r\n-setuptools.setup(\r\n-    setup_requires=['pbr'],\r\n-    pbr=True)\r\n+#!/usr/bin/env python\n+# Copyright @ 2015 EMC Corporation All Rights Reserved\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#    http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n+# implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT\n+import re\n+import json\n+import fileinput\n+\n+# In python < 2.7.4, a lazy loading of package `pbr` will break\n+# setuptools if some other modules registered functions in `atexit`.\n+# solution from: http://bugs.python.org/issue15881#msg170215\n+try:\n+    import multiprocessing  # noqa\n+except ImportError:\n+    pass\n+import requests\n+import setuptools\n+\n+\n+def load_version(filename):\n+    version = None\n+    with open(filename) as verfile:\n+        for line in verfile:\n+            version = re.search('\\d+.\\d+.\\d+', line)\n+            if version is not None:\n+                version = version.group()\n+                break\n+    return version\n+\n+ver = load_version(\"template/version.yml\")\n+if ver is not None:\n+    for line in fileinput.input(\"setup.cfg\", inplace=True):\n+        print line,","path":"setup.py","position":76,"original_position":76,"commit_id":"80d7534feb5695c6042e64c08411d3ede0157035","original_commit_id":"80d7534feb5695c6042e64c08411d3ede0157035","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"SyntaxError: invalid syntax","created_at":"2016-09-22T03:25:07Z","updated_at":"2016-09-22T03:25:07Z","html_url":"https://github.com/InfraSIM/infrasim-compute/pull/97#discussion_r79971433","pull_request_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/comments/79971433"},"html":{"href":"https://github.com/InfraSIM/infrasim-compute/pull/97#discussion_r79971433"},"pull_request":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97","id":86274402,"html_url":"https://github.com/InfraSIM/infrasim-compute/pull/97","diff_url":"https://github.com/InfraSIM/infrasim-compute/pull/97.diff","patch_url":"https://github.com/InfraSIM/infrasim-compute/pull/97.patch","issue_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/issues/97","number":97,"state":"open","locked":false,"title":"Change setup.py for pypi","user":{"login":"XiaowenJiang","id":14223134,"avatar_url":"https://avatars.githubusercontent.com/u/14223134?v=3","gravatar_id":"","url":"https://api.github.com/users/XiaowenJiang","html_url":"https://github.com/XiaowenJiang","followers_url":"https://api.github.com/users/XiaowenJiang/followers","following_url":"https://api.github.com/users/XiaowenJiang/following{/other_user}","gists_url":"https://api.github.com/users/XiaowenJiang/gists{/gist_id}","starred_url":"https://api.github.com/users/XiaowenJiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XiaowenJiang/subscriptions","organizations_url":"https://api.github.com/users/XiaowenJiang/orgs","repos_url":"https://api.github.com/users/XiaowenJiang/repos","events_url":"https://api.github.com/users/XiaowenJiang/events{/privacy}","received_events_url":"https://api.github.com/users/XiaowenJiang/received_events","type":"User","site_admin":false},"body":"1) Read version number from template/version.yml if it's set.\r\n2) Get latest release version as the package version if we choose\r\n   to make a release package.","created_at":"2016-09-22T03:25:00Z","updated_at":"2016-09-22T03:25:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"557e93773d247d45d0bf2014fe16fd68eda5ce1d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97/commits","review_comments_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97/comments","review_comment_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/comments{/number}","comments_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/issues/97/comments","statuses_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/statuses/80d7534feb5695c6042e64c08411d3ede0157035","head":{"label":"XiaowenJiang:master","ref":"master","sha":"80d7534feb5695c6042e64c08411d3ede0157035","user":{"login":"XiaowenJiang","id":14223134,"avatar_url":"https://avatars.githubusercontent.com/u/14223134?v=3","gravatar_id":"","url":"https://api.github.com/users/XiaowenJiang","html_url":"https://github.com/XiaowenJiang","followers_url":"https://api.github.com/users/XiaowenJiang/followers","following_url":"https://api.github.com/users/XiaowenJiang/following{/other_user}","gists_url":"https://api.github.com/users/XiaowenJiang/gists{/gist_id}","starred_url":"https://api.github.com/users/XiaowenJiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XiaowenJiang/subscriptions","organizations_url":"https://api.github.com/users/XiaowenJiang/orgs","repos_url":"https://api.github.com/users/XiaowenJiang/repos","events_url":"https://api.github.com/users/XiaowenJiang/events{/privacy}","received_events_url":"https://api.github.com/users/XiaowenJiang/received_events","type":"User","site_admin":false},"repo":{"id":63658528,"name":"infrasim-compute","full_name":"XiaowenJiang/infrasim-compute","owner":{"login":"XiaowenJiang","id":14223134,"avatar_url":"https://avatars.githubusercontent.com/u/14223134?v=3","gravatar_id":"","url":"https://api.github.com/users/XiaowenJiang","html_url":"https://github.com/XiaowenJiang","followers_url":"https://api.github.com/users/XiaowenJiang/followers","following_url":"https://api.github.com/users/XiaowenJiang/following{/other_user}","gists_url":"https://api.github.com/users/XiaowenJiang/gists{/gist_id}","starred_url":"https://api.github.com/users/XiaowenJiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XiaowenJiang/subscriptions","organizations_url":"https://api.github.com/users/XiaowenJiang/orgs","repos_url":"https://api.github.com/users/XiaowenJiang/repos","events_url":"https://api.github.com/users/XiaowenJiang/events{/privacy}","received_events_url":"https://api.github.com/users/XiaowenJiang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XiaowenJiang/infrasim-compute","description":null,"fork":true,"url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute","forks_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/forks","keys_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/teams","hooks_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/hooks","issue_events_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/issues/events{/number}","events_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/events","assignees_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/assignees{/user}","branches_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/branches{/branch}","tags_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/tags","blobs_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/git/refs{/sha}","trees_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/statuses/{sha}","languages_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/languages","stargazers_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/stargazers","contributors_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/contributors","subscribers_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/subscribers","subscription_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/subscription","commits_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/commits{/sha}","git_commits_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/git/commits{/sha}","comments_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/comments{/number}","issue_comment_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/issues/comments{/number}","contents_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/contents/{+path}","compare_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/merges","archive_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/downloads","issues_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/issues{/number}","pulls_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/pulls{/number}","milestones_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/milestones{/number}","notifications_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/labels{/name}","releases_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/releases{/id}","deployments_url":"https://api.github.com/repos/XiaowenJiang/infrasim-compute/deployments","created_at":"2016-07-19T03:50:56Z","updated_at":"2016-07-19T03:50:58Z","pushed_at":"2016-09-22T02:20:52Z","git_url":"git://github.com/XiaowenJiang/infrasim-compute.git","ssh_url":"git@github.com:XiaowenJiang/infrasim-compute.git","clone_url":"https://github.com/XiaowenJiang/infrasim-compute.git","svn_url":"https://github.com/XiaowenJiang/infrasim-compute","homepage":null,"size":19373,"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":"InfraSIM:master","ref":"master","sha":"ff953f43641c6c42652902ad9f0dabff86126cae","user":{"login":"InfraSIM","id":15829902,"avatar_url":"https://avatars.githubusercontent.com/u/15829902?v=3","gravatar_id":"","url":"https://api.github.com/users/InfraSIM","html_url":"https://github.com/InfraSIM","followers_url":"https://api.github.com/users/InfraSIM/followers","following_url":"https://api.github.com/users/InfraSIM/following{/other_user}","gists_url":"https://api.github.com/users/InfraSIM/gists{/gist_id}","starred_url":"https://api.github.com/users/InfraSIM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InfraSIM/subscriptions","organizations_url":"https://api.github.com/users/InfraSIM/orgs","repos_url":"https://api.github.com/users/InfraSIM/repos","events_url":"https://api.github.com/users/InfraSIM/events{/privacy}","received_events_url":"https://api.github.com/users/InfraSIM/received_events","type":"Organization","site_admin":false},"repo":{"id":60502320,"name":"infrasim-compute","full_name":"InfraSIM/infrasim-compute","owner":{"login":"InfraSIM","id":15829902,"avatar_url":"https://avatars.githubusercontent.com/u/15829902?v=3","gravatar_id":"","url":"https://api.github.com/users/InfraSIM","html_url":"https://github.com/InfraSIM","followers_url":"https://api.github.com/users/InfraSIM/followers","following_url":"https://api.github.com/users/InfraSIM/following{/other_user}","gists_url":"https://api.github.com/users/InfraSIM/gists{/gist_id}","starred_url":"https://api.github.com/users/InfraSIM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InfraSIM/subscriptions","organizations_url":"https://api.github.com/users/InfraSIM/orgs","repos_url":"https://api.github.com/users/InfraSIM/repos","events_url":"https://api.github.com/users/InfraSIM/events{/privacy}","received_events_url":"https://api.github.com/users/InfraSIM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/InfraSIM/infrasim-compute","description":"","fork":false,"url":"https://api.github.com/repos/InfraSIM/infrasim-compute","forks_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/forks","keys_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/teams","hooks_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/hooks","issue_events_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/issues/events{/number}","events_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/events","assignees_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/assignees{/user}","branches_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/branches{/branch}","tags_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/tags","blobs_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/git/refs{/sha}","trees_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/statuses/{sha}","languages_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/languages","stargazers_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/stargazers","contributors_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/contributors","subscribers_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/subscribers","subscription_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/subscription","commits_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/commits{/sha}","git_commits_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/git/commits{/sha}","comments_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/comments{/number}","issue_comment_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/issues/comments{/number}","contents_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/contents/{+path}","compare_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/merges","archive_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/downloads","issues_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/issues{/number}","pulls_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls{/number}","milestones_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/milestones{/number}","notifications_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/labels{/name}","releases_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/releases{/id}","deployments_url":"https://api.github.com/repos/InfraSIM/infrasim-compute/deployments","created_at":"2016-06-06T06:01:41Z","updated_at":"2016-09-12T02:45:58Z","pushed_at":"2016-09-22T03:25:00Z","git_url":"git://github.com/InfraSIM/infrasim-compute.git","ssh_url":"git@github.com:InfraSIM/infrasim-compute.git","clone_url":"https://github.com/InfraSIM/infrasim-compute.git","svn_url":"https://github.com/InfraSIM/infrasim-compute","homepage":null,"size":19395,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97"},"html":{"href":"https://github.com/InfraSIM/infrasim-compute/pull/97"},"issue":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/issues/97"},"comments":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/InfraSIM/infrasim-compute/statuses/80d7534feb5695c6042e64c08411d3ede0157035"}}}}
{"actor":{"display_login":"houndci-bot"}}