{"action":"opened","number":41,"pull_request":{"url":"https://api.github.com/repos/bndr/pipreqs/pulls/41","id":58928330,"html_url":"https://github.com/bndr/pipreqs/pull/41","diff_url":"https://github.com/bndr/pipreqs/pull/41.diff","patch_url":"https://github.com/bndr/pipreqs/pull/41.patch","issue_url":"https://api.github.com/repos/bndr/pipreqs/issues/41","number":41,"state":"open","locked":false,"title":"Make pipreqs not write diplicate lines to requirements.txt file","user":{"login":"dmand","id":668589,"avatar_url":"https://avatars.githubusercontent.com/u/668589?v=3","gravatar_id":"","url":"https://api.github.com/users/dmand","html_url":"https://github.com/dmand","followers_url":"https://api.github.com/users/dmand/followers","following_url":"https://api.github.com/users/dmand/following{/other_user}","gists_url":"https://api.github.com/users/dmand/gists{/gist_id}","starred_url":"https://api.github.com/users/dmand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmand/subscriptions","organizations_url":"https://api.github.com/users/dmand/orgs","repos_url":"https://api.github.com/users/dmand/repos","events_url":"https://api.github.com/users/dmand/events{/privacy}","received_events_url":"https://api.github.com/users/dmand/received_events","type":"User","site_admin":false},"body":"Test file:\r\n```python\r\nimport pymongo\r\nfrom bson.objectid import ObjectId\r\n```\r\n\r\nFor this file `pipreqs` generates the following `requirements.txt`:\r\n```\r\npymongo==3.2.1\r\npymongo==3.2.1\r\n```\r\n\r\nThis pull-request fixes this unfortunate behaviour by patching `get_pkg_names` function.","created_at":"2016-02-10T17:57:19Z","updated_at":"2016-02-10T17:57:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bndr/pipreqs/pulls/41/commits","review_comments_url":"https://api.github.com/repos/bndr/pipreqs/pulls/41/comments","review_comment_url":"https://api.github.com/repos/bndr/pipreqs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bndr/pipreqs/issues/41/comments","statuses_url":"https://api.github.com/repos/bndr/pipreqs/statuses/c3761598ce99854b4d5c8adeeb895969aadf8a31","head":{"label":"dmand:fix-duplicate-dependencies","ref":"fix-duplicate-dependencies","sha":"c3761598ce99854b4d5c8adeeb895969aadf8a31","user":{"login":"dmand","id":668589,"avatar_url":"https://avatars.githubusercontent.com/u/668589?v=3","gravatar_id":"","url":"https://api.github.com/users/dmand","html_url":"https://github.com/dmand","followers_url":"https://api.github.com/users/dmand/followers","following_url":"https://api.github.com/users/dmand/following{/other_user}","gists_url":"https://api.github.com/users/dmand/gists{/gist_id}","starred_url":"https://api.github.com/users/dmand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmand/subscriptions","organizations_url":"https://api.github.com/users/dmand/orgs","repos_url":"https://api.github.com/users/dmand/repos","events_url":"https://api.github.com/users/dmand/events{/privacy}","received_events_url":"https://api.github.com/users/dmand/received_events","type":"User","site_admin":false},"repo":{"id":51453718,"name":"pipreqs","full_name":"dmand/pipreqs","owner":{"login":"dmand","id":668589,"avatar_url":"https://avatars.githubusercontent.com/u/668589?v=3","gravatar_id":"","url":"https://api.github.com/users/dmand","html_url":"https://github.com/dmand","followers_url":"https://api.github.com/users/dmand/followers","following_url":"https://api.github.com/users/dmand/following{/other_user}","gists_url":"https://api.github.com/users/dmand/gists{/gist_id}","starred_url":"https://api.github.com/users/dmand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmand/subscriptions","organizations_url":"https://api.github.com/users/dmand/orgs","repos_url":"https://api.github.com/users/dmand/repos","events_url":"https://api.github.com/users/dmand/events{/privacy}","received_events_url":"https://api.github.com/users/dmand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmand/pipreqs","description":"pipreqs - Generate pip requirements.txt file based on imports of any project","fork":true,"url":"https://api.github.com/repos/dmand/pipreqs","forks_url":"https://api.github.com/repos/dmand/pipreqs/forks","keys_url":"https://api.github.com/repos/dmand/pipreqs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmand/pipreqs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmand/pipreqs/teams","hooks_url":"https://api.github.com/repos/dmand/pipreqs/hooks","issue_events_url":"https://api.github.com/repos/dmand/pipreqs/issues/events{/number}","events_url":"https://api.github.com/repos/dmand/pipreqs/events","assignees_url":"https://api.github.com/repos/dmand/pipreqs/assignees{/user}","branches_url":"https://api.github.com/repos/dmand/pipreqs/branches{/branch}","tags_url":"https://api.github.com/repos/dmand/pipreqs/tags","blobs_url":"https://api.github.com/repos/dmand/pipreqs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmand/pipreqs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmand/pipreqs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmand/pipreqs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmand/pipreqs/statuses/{sha}","languages_url":"https://api.github.com/repos/dmand/pipreqs/languages","stargazers_url":"https://api.github.com/repos/dmand/pipreqs/stargazers","contributors_url":"https://api.github.com/repos/dmand/pipreqs/contributors","subscribers_url":"https://api.github.com/repos/dmand/pipreqs/subscribers","subscription_url":"https://api.github.com/repos/dmand/pipreqs/subscription","commits_url":"https://api.github.com/repos/dmand/pipreqs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmand/pipreqs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmand/pipreqs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmand/pipreqs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmand/pipreqs/contents/{+path}","compare_url":"https://api.github.com/repos/dmand/pipreqs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmand/pipreqs/merges","archive_url":"https://api.github.com/repos/dmand/pipreqs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmand/pipreqs/downloads","issues_url":"https://api.github.com/repos/dmand/pipreqs/issues{/number}","pulls_url":"https://api.github.com/repos/dmand/pipreqs/pulls{/number}","milestones_url":"https://api.github.com/repos/dmand/pipreqs/milestones{/number}","notifications_url":"https://api.github.com/repos/dmand/pipreqs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmand/pipreqs/labels{/name}","releases_url":"https://api.github.com/repos/dmand/pipreqs/releases{/id}","deployments_url":"https://api.github.com/repos/dmand/pipreqs/deployments","created_at":"2016-02-10T16:26:12Z","updated_at":"2016-02-10T16:26:12Z","pushed_at":"2016-02-10T17:49:37Z","git_url":"git://github.com/dmand/pipreqs.git","ssh_url":"git@github.com:dmand/pipreqs.git","clone_url":"https://github.com/dmand/pipreqs.git","svn_url":"https://github.com/dmand/pipreqs","homepage":"","size":137,"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":"bndr:master","ref":"master","sha":"96a76f58c0f5928103603a878a2aaa7d385cf446","user":{"login":"bndr","id":1145456,"avatar_url":"https://avatars.githubusercontent.com/u/1145456?v=3","gravatar_id":"","url":"https://api.github.com/users/bndr","html_url":"https://github.com/bndr","followers_url":"https://api.github.com/users/bndr/followers","following_url":"https://api.github.com/users/bndr/following{/other_user}","gists_url":"https://api.github.com/users/bndr/gists{/gist_id}","starred_url":"https://api.github.com/users/bndr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndr/subscriptions","organizations_url":"https://api.github.com/users/bndr/orgs","repos_url":"https://api.github.com/users/bndr/repos","events_url":"https://api.github.com/users/bndr/events{/privacy}","received_events_url":"https://api.github.com/users/bndr/received_events","type":"User","site_admin":false},"repo":{"id":34402403,"name":"pipreqs","full_name":"bndr/pipreqs","owner":{"login":"bndr","id":1145456,"avatar_url":"https://avatars.githubusercontent.com/u/1145456?v=3","gravatar_id":"","url":"https://api.github.com/users/bndr","html_url":"https://github.com/bndr","followers_url":"https://api.github.com/users/bndr/followers","following_url":"https://api.github.com/users/bndr/following{/other_user}","gists_url":"https://api.github.com/users/bndr/gists{/gist_id}","starred_url":"https://api.github.com/users/bndr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndr/subscriptions","organizations_url":"https://api.github.com/users/bndr/orgs","repos_url":"https://api.github.com/users/bndr/repos","events_url":"https://api.github.com/users/bndr/events{/privacy}","received_events_url":"https://api.github.com/users/bndr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bndr/pipreqs","description":"pipreqs - Generate pip requirements.txt file based on imports of any project","fork":false,"url":"https://api.github.com/repos/bndr/pipreqs","forks_url":"https://api.github.com/repos/bndr/pipreqs/forks","keys_url":"https://api.github.com/repos/bndr/pipreqs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bndr/pipreqs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bndr/pipreqs/teams","hooks_url":"https://api.github.com/repos/bndr/pipreqs/hooks","issue_events_url":"https://api.github.com/repos/bndr/pipreqs/issues/events{/number}","events_url":"https://api.github.com/repos/bndr/pipreqs/events","assignees_url":"https://api.github.com/repos/bndr/pipreqs/assignees{/user}","branches_url":"https://api.github.com/repos/bndr/pipreqs/branches{/branch}","tags_url":"https://api.github.com/repos/bndr/pipreqs/tags","blobs_url":"https://api.github.com/repos/bndr/pipreqs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bndr/pipreqs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bndr/pipreqs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bndr/pipreqs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bndr/pipreqs/statuses/{sha}","languages_url":"https://api.github.com/repos/bndr/pipreqs/languages","stargazers_url":"https://api.github.com/repos/bndr/pipreqs/stargazers","contributors_url":"https://api.github.com/repos/bndr/pipreqs/contributors","subscribers_url":"https://api.github.com/repos/bndr/pipreqs/subscribers","subscription_url":"https://api.github.com/repos/bndr/pipreqs/subscription","commits_url":"https://api.github.com/repos/bndr/pipreqs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bndr/pipreqs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bndr/pipreqs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bndr/pipreqs/issues/comments{/number}","contents_url":"https://api.github.com/repos/bndr/pipreqs/contents/{+path}","compare_url":"https://api.github.com/repos/bndr/pipreqs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bndr/pipreqs/merges","archive_url":"https://api.github.com/repos/bndr/pipreqs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bndr/pipreqs/downloads","issues_url":"https://api.github.com/repos/bndr/pipreqs/issues{/number}","pulls_url":"https://api.github.com/repos/bndr/pipreqs/pulls{/number}","milestones_url":"https://api.github.com/repos/bndr/pipreqs/milestones{/number}","notifications_url":"https://api.github.com/repos/bndr/pipreqs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bndr/pipreqs/labels{/name}","releases_url":"https://api.github.com/repos/bndr/pipreqs/releases{/id}","deployments_url":"https://api.github.com/repos/bndr/pipreqs/deployments","created_at":"2015-04-22T16:38:14Z","updated_at":"2016-02-10T14:27:53Z","pushed_at":"2016-02-05T17:04:01Z","git_url":"git://github.com/bndr/pipreqs.git","ssh_url":"git@github.com:bndr/pipreqs.git","clone_url":"https://github.com/bndr/pipreqs.git","svn_url":"https://github.com/bndr/pipreqs","homepage":"","size":146,"stargazers_count":659,"watchers_count":659,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":6,"forks":36,"open_issues":6,"watchers":659,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bndr/pipreqs/pulls/41"},"html":{"href":"https://github.com/bndr/pipreqs/pull/41"},"issue":{"href":"https://api.github.com/repos/bndr/pipreqs/issues/41"},"comments":{"href":"https://api.github.com/repos/bndr/pipreqs/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/bndr/pipreqs/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/bndr/pipreqs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bndr/pipreqs/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/bndr/pipreqs/statuses/c3761598ce99854b4d5c8adeeb895969aadf8a31"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":15,"deletions":1,"changed_files":3}}