{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/1201","repository_url":"https://api.github.com/repos/jordansissel/fpm","labels_url":"https://api.github.com/repos/jordansissel/fpm/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/fpm/issues/1201/comments","events_url":"https://api.github.com/repos/jordansissel/fpm/issues/1201/events","html_url":"https://github.com/jordansissel/fpm/issues/1201","id":181819677,"number":1201,"title":"[BUG?] rpm creation does not handle underscores in python packages properly","user":{"login":"sobolevn","id":4660275,"avatar_url":"https://avatars.githubusercontent.com/u/4660275?v=3","gravatar_id":"","url":"https://api.github.com/users/sobolevn","html_url":"https://github.com/sobolevn","followers_url":"https://api.github.com/users/sobolevn/followers","following_url":"https://api.github.com/users/sobolevn/following{/other_user}","gists_url":"https://api.github.com/users/sobolevn/gists{/gist_id}","starred_url":"https://api.github.com/users/sobolevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobolevn/subscriptions","organizations_url":"https://api.github.com/users/sobolevn/orgs","repos_url":"https://api.github.com/users/sobolevn/repos","events_url":"https://api.github.com/users/sobolevn/events{/privacy}","received_events_url":"https://api.github.com/users/sobolevn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-08T10:58:46Z","updated_at":"2016-10-19T14:40:22Z","closed_at":null,"body":"I have faced this issue when working on https://github.com/dbcli/pgcli/issues/70#issuecomment-252417251\r\n\r\nI have [this setup.py file](https://github.com/dbcli/pgcli/blob/12c268c13b848ba3a2408b05e4371c300a7d457e/setup.py). Take a note that `prompt_toolkit` is spelled with `_`.\r\n\r\nNow, when creating a `rpm` package for all the `pip` deps, everything goes fine:\r\n\r\n> [root@30722cfb4b5b repo]# fpm -s python -t rpm --python-pip pip prompt-toolkit\r\n> Created package {:path=>\"python-prompt_toolkit-1.0.7-1.noarch.rpm\"}\r\n[root@30722cfb4b5b repo]# yum install python-prompt-toolkit\r\n\r\n> Redirecting to '/usr/bin/dnf install python-prompt-toolkit' (see 'man yum2dnf')\r\n> \r\n> My Awesome Repo                                 3.0 MB/s | 8.1 kB     00:00    \r\n> No package python-prompt-toolkit available.\r\n> Error: Unable to find a match.\r\n> [root@30722cfb4b5b repo]# yum install python-prompt_toolkit\r\n> Redirecting to '/usr/bin/dnf install python-prompt_toolkit' (see 'man yum2dnf')\r\n> \r\n> My Awesome Repo                                 4.0 MB/s | 8.1 kB     00:00    \r\n> Dependencies resolved.\r\n\r\nWhen checking for deps, that's what happens:\r\n\r\n> [root@30722cfb4b5b repo]# rpm -qRp python-pgcli-1.2.0-1.noarch.rpm \r\n> ...\r\n> python-prompt-toolkit >= 1.0.0\r\n> python-prompt-toolkit < 1.1.0\r\n> ...\r\n\r\nWhen trying to install all fails:\r\n\r\n> [root@30722cfb4b5b repo]# yum install -y python-pgcli\r\n> Redirecting to '/usr/bin/dnf install -y python-pgcli' (see 'man yum2dnf')\r\n> \r\n> My Awesome Repo                                 3.3 MB/s | 8.1 kB     00:00    \r\n> Error: nothing provides python-prompt-toolkit >= 1.0.0 needed by python-pgcli-1.2.0-1.noarch\r\n> (try to add '--allowerasing' to command line to replace conflicting packages)\r\n\r\nI have tried almost everything. Specifying `-n` and other options (even `-e` with `sed`). The only workaround I found is to remove auto-deps with `--no-auto-deps` and specify them manually.\r\n\r\nMaybe related https://github.com/jordansissel/fpm/issues/65"},"comment":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/comments/254833352","html_url":"https://github.com/jordansissel/fpm/issues/1201#issuecomment-254833352","issue_url":"https://api.github.com/repos/jordansissel/fpm/issues/1201","id":254833352,"user":{"login":"rutsky","id":46573,"avatar_url":"https://avatars.githubusercontent.com/u/46573?v=3","gravatar_id":"","url":"https://api.github.com/users/rutsky","html_url":"https://github.com/rutsky","followers_url":"https://api.github.com/users/rutsky/followers","following_url":"https://api.github.com/users/rutsky/following{/other_user}","gists_url":"https://api.github.com/users/rutsky/gists{/gist_id}","starred_url":"https://api.github.com/users/rutsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rutsky/subscriptions","organizations_url":"https://api.github.com/users/rutsky/orgs","repos_url":"https://api.github.com/users/rutsky/repos","events_url":"https://api.github.com/users/rutsky/events{/privacy}","received_events_url":"https://api.github.com/users/rutsky/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T14:40:22Z","updated_at":"2016-10-19T14:40:22Z","body":"Maybe related https://github.com/jordansissel/fpm/issues/1016"}}
{"actor":{"display_login":"rutsky"}}