{"action":"opened","number":55,"pull_request":{"url":"https://api.github.com/repos/TailorDev/Watson/pulls/55","id":50708931,"html_url":"https://github.com/TailorDev/Watson/pull/55","diff_url":"https://github.com/TailorDev/Watson/pull/55.diff","patch_url":"https://github.com/TailorDev/Watson/pull/55.patch","issue_url":"https://api.github.com/repos/TailorDev/Watson/issues/55","number":55,"state":"open","locked":false,"title":"Add option to display program version (fixes #51)","user":{"login":"SpotlightKid","id":5719151,"avatar_url":"https://avatars.githubusercontent.com/u/5719151?v=3","gravatar_id":"","url":"https://api.github.com/users/SpotlightKid","html_url":"https://github.com/SpotlightKid","followers_url":"https://api.github.com/users/SpotlightKid/followers","following_url":"https://api.github.com/users/SpotlightKid/following{/other_user}","gists_url":"https://api.github.com/users/SpotlightKid/gists{/gist_id}","starred_url":"https://api.github.com/users/SpotlightKid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpotlightKid/subscriptions","organizations_url":"https://api.github.com/users/SpotlightKid/orgs","repos_url":"https://api.github.com/users/SpotlightKid/repos","events_url":"https://api.github.com/users/SpotlightKid/events{/privacy}","received_events_url":"https://api.github.com/users/SpotlightKid/received_events","type":"User","site_admin":false},"body":"Moves the version number from `setup.py` into `watson/version.py`, from where it is imported by `watson/watson.py` and read via `exec` by `setup.py`. Exec is used, so that the version number isn't accidentally imported from an installed version of Watson. The version is in a separate module, so `setup.py` doesn't have to import/exec `watson/watson.py`, which would trigger dependencies. The mechanism can also be used to move additional package metadata - such as author, license, etc. - into `version.py` (it should then probably be renamed).\r\n\r\nI used `\"Watson\"` (capitalized) as the program name, when displayed by click. I hope that's right, but it can easily be changed.","created_at":"2015-11-14T00:23:25Z","updated_at":"2015-11-14T00:23:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TailorDev/Watson/pulls/55/commits","review_comments_url":"https://api.github.com/repos/TailorDev/Watson/pulls/55/comments","review_comment_url":"https://api.github.com/repos/TailorDev/Watson/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TailorDev/Watson/issues/55/comments","statuses_url":"https://api.github.com/repos/TailorDev/Watson/statuses/4c61dfb826e3c35b564108bf593f7f20e96ae6f1","head":{"label":"SpotlightKid:feature/versioninfo","ref":"feature/versioninfo","sha":"4c61dfb826e3c35b564108bf593f7f20e96ae6f1","user":{"login":"SpotlightKid","id":5719151,"avatar_url":"https://avatars.githubusercontent.com/u/5719151?v=3","gravatar_id":"","url":"https://api.github.com/users/SpotlightKid","html_url":"https://github.com/SpotlightKid","followers_url":"https://api.github.com/users/SpotlightKid/followers","following_url":"https://api.github.com/users/SpotlightKid/following{/other_user}","gists_url":"https://api.github.com/users/SpotlightKid/gists{/gist_id}","starred_url":"https://api.github.com/users/SpotlightKid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpotlightKid/subscriptions","organizations_url":"https://api.github.com/users/SpotlightKid/orgs","repos_url":"https://api.github.com/users/SpotlightKid/repos","events_url":"https://api.github.com/users/SpotlightKid/events{/privacy}","received_events_url":"https://api.github.com/users/SpotlightKid/received_events","type":"User","site_admin":false},"repo":{"id":44525740,"name":"Watson","full_name":"SpotlightKid/Watson","owner":{"login":"SpotlightKid","id":5719151,"avatar_url":"https://avatars.githubusercontent.com/u/5719151?v=3","gravatar_id":"","url":"https://api.github.com/users/SpotlightKid","html_url":"https://github.com/SpotlightKid","followers_url":"https://api.github.com/users/SpotlightKid/followers","following_url":"https://api.github.com/users/SpotlightKid/following{/other_user}","gists_url":"https://api.github.com/users/SpotlightKid/gists{/gist_id}","starred_url":"https://api.github.com/users/SpotlightKid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpotlightKid/subscriptions","organizations_url":"https://api.github.com/users/SpotlightKid/orgs","repos_url":"https://api.github.com/users/SpotlightKid/repos","events_url":"https://api.github.com/users/SpotlightKid/events{/privacy}","received_events_url":"https://api.github.com/users/SpotlightKid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpotlightKid/Watson","description":":watch: A wonderful CLI to track your time!","fork":true,"url":"https://api.github.com/repos/SpotlightKid/Watson","forks_url":"https://api.github.com/repos/SpotlightKid/Watson/forks","keys_url":"https://api.github.com/repos/SpotlightKid/Watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpotlightKid/Watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpotlightKid/Watson/teams","hooks_url":"https://api.github.com/repos/SpotlightKid/Watson/hooks","issue_events_url":"https://api.github.com/repos/SpotlightKid/Watson/issues/events{/number}","events_url":"https://api.github.com/repos/SpotlightKid/Watson/events","assignees_url":"https://api.github.com/repos/SpotlightKid/Watson/assignees{/user}","branches_url":"https://api.github.com/repos/SpotlightKid/Watson/branches{/branch}","tags_url":"https://api.github.com/repos/SpotlightKid/Watson/tags","blobs_url":"https://api.github.com/repos/SpotlightKid/Watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpotlightKid/Watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpotlightKid/Watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpotlightKid/Watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpotlightKid/Watson/statuses/{sha}","languages_url":"https://api.github.com/repos/SpotlightKid/Watson/languages","stargazers_url":"https://api.github.com/repos/SpotlightKid/Watson/stargazers","contributors_url":"https://api.github.com/repos/SpotlightKid/Watson/contributors","subscribers_url":"https://api.github.com/repos/SpotlightKid/Watson/subscribers","subscription_url":"https://api.github.com/repos/SpotlightKid/Watson/subscription","commits_url":"https://api.github.com/repos/SpotlightKid/Watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpotlightKid/Watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpotlightKid/Watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpotlightKid/Watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpotlightKid/Watson/contents/{+path}","compare_url":"https://api.github.com/repos/SpotlightKid/Watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpotlightKid/Watson/merges","archive_url":"https://api.github.com/repos/SpotlightKid/Watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpotlightKid/Watson/downloads","issues_url":"https://api.github.com/repos/SpotlightKid/Watson/issues{/number}","pulls_url":"https://api.github.com/repos/SpotlightKid/Watson/pulls{/number}","milestones_url":"https://api.github.com/repos/SpotlightKid/Watson/milestones{/number}","notifications_url":"https://api.github.com/repos/SpotlightKid/Watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpotlightKid/Watson/labels{/name}","releases_url":"https://api.github.com/repos/SpotlightKid/Watson/releases{/id}","created_at":"2015-10-19T09:53:55Z","updated_at":"2015-11-11T19:28:03Z","pushed_at":"2015-11-14T00:14:35Z","git_url":"git://github.com/SpotlightKid/Watson.git","ssh_url":"git@github.com:SpotlightKid/Watson.git","clone_url":"https://github.com/SpotlightKid/Watson.git","svn_url":"https://github.com/SpotlightKid/Watson","homepage":"","size":427,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"TailorDev:develop","ref":"develop","sha":"1dcf0d42ca9e142488ab2a53f8c3a508e8537836","user":{"login":"TailorDev","id":11196253,"avatar_url":"https://avatars.githubusercontent.com/u/11196253?v=3","gravatar_id":"","url":"https://api.github.com/users/TailorDev","html_url":"https://github.com/TailorDev","followers_url":"https://api.github.com/users/TailorDev/followers","following_url":"https://api.github.com/users/TailorDev/following{/other_user}","gists_url":"https://api.github.com/users/TailorDev/gists{/gist_id}","starred_url":"https://api.github.com/users/TailorDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TailorDev/subscriptions","organizations_url":"https://api.github.com/users/TailorDev/orgs","repos_url":"https://api.github.com/users/TailorDev/repos","events_url":"https://api.github.com/users/TailorDev/events{/privacy}","received_events_url":"https://api.github.com/users/TailorDev/received_events","type":"Organization","site_admin":false},"repo":{"id":32409676,"name":"Watson","full_name":"TailorDev/Watson","owner":{"login":"TailorDev","id":11196253,"avatar_url":"https://avatars.githubusercontent.com/u/11196253?v=3","gravatar_id":"","url":"https://api.github.com/users/TailorDev","html_url":"https://github.com/TailorDev","followers_url":"https://api.github.com/users/TailorDev/followers","following_url":"https://api.github.com/users/TailorDev/following{/other_user}","gists_url":"https://api.github.com/users/TailorDev/gists{/gist_id}","starred_url":"https://api.github.com/users/TailorDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TailorDev/subscriptions","organizations_url":"https://api.github.com/users/TailorDev/orgs","repos_url":"https://api.github.com/users/TailorDev/repos","events_url":"https://api.github.com/users/TailorDev/events{/privacy}","received_events_url":"https://api.github.com/users/TailorDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TailorDev/Watson","description":":watch: A wonderful CLI to track your time!","fork":false,"url":"https://api.github.com/repos/TailorDev/Watson","forks_url":"https://api.github.com/repos/TailorDev/Watson/forks","keys_url":"https://api.github.com/repos/TailorDev/Watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TailorDev/Watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TailorDev/Watson/teams","hooks_url":"https://api.github.com/repos/TailorDev/Watson/hooks","issue_events_url":"https://api.github.com/repos/TailorDev/Watson/issues/events{/number}","events_url":"https://api.github.com/repos/TailorDev/Watson/events","assignees_url":"https://api.github.com/repos/TailorDev/Watson/assignees{/user}","branches_url":"https://api.github.com/repos/TailorDev/Watson/branches{/branch}","tags_url":"https://api.github.com/repos/TailorDev/Watson/tags","blobs_url":"https://api.github.com/repos/TailorDev/Watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TailorDev/Watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TailorDev/Watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/TailorDev/Watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TailorDev/Watson/statuses/{sha}","languages_url":"https://api.github.com/repos/TailorDev/Watson/languages","stargazers_url":"https://api.github.com/repos/TailorDev/Watson/stargazers","contributors_url":"https://api.github.com/repos/TailorDev/Watson/contributors","subscribers_url":"https://api.github.com/repos/TailorDev/Watson/subscribers","subscription_url":"https://api.github.com/repos/TailorDev/Watson/subscription","commits_url":"https://api.github.com/repos/TailorDev/Watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/TailorDev/Watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/TailorDev/Watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/TailorDev/Watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/TailorDev/Watson/contents/{+path}","compare_url":"https://api.github.com/repos/TailorDev/Watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TailorDev/Watson/merges","archive_url":"https://api.github.com/repos/TailorDev/Watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TailorDev/Watson/downloads","issues_url":"https://api.github.com/repos/TailorDev/Watson/issues{/number}","pulls_url":"https://api.github.com/repos/TailorDev/Watson/pulls{/number}","milestones_url":"https://api.github.com/repos/TailorDev/Watson/milestones{/number}","notifications_url":"https://api.github.com/repos/TailorDev/Watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TailorDev/Watson/labels{/name}","releases_url":"https://api.github.com/repos/TailorDev/Watson/releases{/id}","created_at":"2015-03-17T17:38:52Z","updated_at":"2015-11-13T21:00:35Z","pushed_at":"2015-11-14T00:23:25Z","git_url":"git://github.com/TailorDev/Watson.git","ssh_url":"git@github.com:TailorDev/Watson.git","clone_url":"https://github.com/TailorDev/Watson.git","svn_url":"https://github.com/TailorDev/Watson","homepage":"","size":735,"stargazers_count":200,"watchers_count":200,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":17,"forks":11,"open_issues":17,"watchers":200,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/55"},"html":{"href":"https://github.com/TailorDev/Watson/pull/55"},"issue":{"href":"https://api.github.com/repos/TailorDev/Watson/issues/55"},"comments":{"href":"https://api.github.com/repos/TailorDev/Watson/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/TailorDev/Watson/statuses/4c61dfb826e3c35b564108bf593f7f20e96ae6f1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":1,"changed_files":5}}