{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/123","labels_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/123/comments","events_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/123/events","html_url":"https://github.com/fedora-python/pyp2rpm/issues/123","id":94725195,"number":123,"title":"pyp2rpm should add BR for python-setuptools automatically","user":{"login":"mcyprian","id":12859854,"avatar_url":"https://avatars.githubusercontent.com/u/12859854?v=3","gravatar_id":"","url":"https://api.github.com/users/mcyprian","html_url":"https://github.com/mcyprian","followers_url":"https://api.github.com/users/mcyprian/followers","following_url":"https://api.github.com/users/mcyprian/following{/other_user}","gists_url":"https://api.github.com/users/mcyprian/gists{/gist_id}","starred_url":"https://api.github.com/users/mcyprian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcyprian/subscriptions","organizations_url":"https://api.github.com/users/mcyprian/orgs","repos_url":"https://api.github.com/users/mcyprian/repos","events_url":"https://api.github.com/users/mcyprian/events{/privacy}","received_events_url":"https://api.github.com/users/mcyprian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-13T13:49:14Z","updated_at":"2015-07-13T13:49:15Z","closed_at":"2015-07-13T13:49:14Z","body":"I think a lot of python/pip packages use setuptools to build\nand so their spec files need a BR for python-setuptools to build\nin buildroots (mock, koji, etc).\n\nIt should not be too difficult to detect (guess?) when it is needed\nand add the BR automatically, I think.\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/bkabrda/pyp2rpm/issue/15\n- Originally reported by: Jens Petersen\n- Originally created at: 2014-10-02T10:50:54.255\n"},"comment":{"url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/comments/120933781","html_url":"https://github.com/fedora-python/pyp2rpm/issues/123#issuecomment-120933781","issue_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/123","id":120933781,"user":{"login":"mcyprian","id":12859854,"avatar_url":"https://avatars.githubusercontent.com/u/12859854?v=3","gravatar_id":"","url":"https://api.github.com/users/mcyprian","html_url":"https://github.com/mcyprian","followers_url":"https://api.github.com/users/mcyprian/followers","following_url":"https://api.github.com/users/mcyprian/following{/other_user}","gists_url":"https://api.github.com/users/mcyprian/gists{/gist_id}","starred_url":"https://api.github.com/users/mcyprian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcyprian/subscriptions","organizations_url":"https://api.github.com/users/mcyprian/orgs","repos_url":"https://api.github.com/users/mcyprian/repos","events_url":"https://api.github.com/users/mcyprian/events{/privacy}","received_events_url":"https://api.github.com/users/mcyprian/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T13:49:14Z","updated_at":"2015-07-13T13:49:14Z","body":"pyp2rpm is getting (build) requires for packages from metadata of (pypi) packages, if setuptools are listed as setup requires than they should be added to spec.\n\nI don't really know how it should work otherwise, checking imports in files? I am open to suggestions (or PRs) to improve dependencies detection.\n\n----------------------------------------\nOriginal comment by: Robert Kuska\n"}}