{"action":"created","issue":{"url":"https://api.github.com/repos/sdispater/poetry/issues/592","repository_url":"https://api.github.com/repos/sdispater/poetry","labels_url":"https://api.github.com/repos/sdispater/poetry/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/sdispater/poetry/issues/592/comments","events_url":"https://api.github.com/repos/sdispater/poetry/issues/592/events","html_url":"https://github.com/sdispater/poetry/issues/592","id":376831948,"node_id":"MDU6SXNzdWUzNzY4MzE5NDg=","number":592,"title":"poetry add --path=../my_package my_package includes extras when it shouldn't","user":{"login":"cjw296","id":632049,"node_id":"MDQ6VXNlcjYzMjA0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/632049?v=4","gravatar_id":"","url":"https://api.github.com/users/cjw296","html_url":"https://github.com/cjw296","followers_url":"https://api.github.com/users/cjw296/followers","following_url":"https://api.github.com/users/cjw296/following{/other_user}","gists_url":"https://api.github.com/users/cjw296/gists{/gist_id}","starred_url":"https://api.github.com/users/cjw296/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjw296/subscriptions","organizations_url":"https://api.github.com/users/cjw296/orgs","repos_url":"https://api.github.com/users/cjw296/repos","events_url":"https://api.github.com/users/cjw296/events{/privacy}","received_events_url":"https://api.github.com/users/cjw296/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-02T14:27:00Z","updated_at":"2018-11-02T18:40:09Z","closed_at":null,"author_association":"NONE","body":"<!-- Checked checkbox should look like this: [x] -->\r\n- [X] I am on the [latest](https://github.com/sdispater/poetry/releases/latest) Poetry version.\r\n- [X] I have searched the [issues](https://github.com/sdispater/poetry/issues) of this repo and believe that this is not a duplicate.\r\n- [X] If an exception occurs when executing a command, I executed it again in debug mode (`-vvv` option).\r\n\r\n- **OS version and name**: RHEL 7.5\r\n- **Poetry version**: 0.12.5\r\n\r\n## Issue\r\n\r\nI have the following layout on disk\r\n\r\n```\r\n├─my_project\r\n│ ├─ pyproject.toml\r\n| ├─ ...\r\n| └─ .git/\r\n|\r\n└─git_clone_of_some_library\r\n  ├─ setup.py\r\n  ├─ ...\r\n  └─ .git/\r\n```\r\n\r\n`git_clone_of_some_library/setup.py` contains:\r\n\r\n```\r\nfrom setuptools import find_packages, setup\r\n...\r\nsetup(\r\n...\r\n    install_requires=[\r\n...\r\n    ],\r\n    extras_require=dict(\r\n        dev=[\r\n            'a_dev_only_library_not_available_in_my_current_context',\r\n...\r\n        ]\r\n    ),\r\n...\r\n)\r\n```\r\n\r\nSo, I'm trying to  set up my environment with:\r\n\r\n```\r\nmy_project $ poetry install\r\nmy_project $ poetry add --path=../git_clone_of_some_library git_clone_of_some_library\r\n```\r\nBut I get:\r\n\r\n```\r\n[SolverProblemError]\r\nBecause git_clone_of_some_library (x.y.z) depends on a_dev_only_library_not_available_in_my_current_context (*) which doesn't match any versions, git_clone_of_some_library  is forbidden.\r\nSo, because my_project depends on git_clone_of_some_library  (...), version solving failed.\r\n```\r\n\r\nWhat I don't understand is why a package in the `[dev]` extra is being installed? \r\nThat seems like a bug, but it also raises the question: if I want to specify one or more extras when adding a library as a dependency, how do I do that?"},"comment":{"url":"https://api.github.com/repos/sdispater/poetry/issues/comments/435471938","html_url":"https://github.com/sdispater/poetry/issues/592#issuecomment-435471938","issue_url":"https://api.github.com/repos/sdispater/poetry/issues/592","id":435471938,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTQ3MTkzOA==","user":{"login":"narimanizett","id":6004127,"node_id":"MDQ6VXNlcjYwMDQxMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/6004127?v=4","gravatar_id":"","url":"https://api.github.com/users/narimanizett","html_url":"https://github.com/narimanizett","followers_url":"https://api.github.com/users/narimanizett/followers","following_url":"https://api.github.com/users/narimanizett/following{/other_user}","gists_url":"https://api.github.com/users/narimanizett/gists{/gist_id}","starred_url":"https://api.github.com/users/narimanizett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narimanizett/subscriptions","organizations_url":"https://api.github.com/users/narimanizett/orgs","repos_url":"https://api.github.com/users/narimanizett/repos","events_url":"https://api.github.com/users/narimanizett/events{/privacy}","received_events_url":"https://api.github.com/users/narimanizett/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T18:40:09Z","updated_at":"2018-11-02T18:40:09Z","author_association":"NONE","body":"@stefanfoulis your case is a little bit different due to markers presence.\r\nThis bug is from here https://github.com/sdispater/poetry/issues/425#issuecomment-431678068, and I hope it will be resolved soon.\r\n\r\n@cjw296 \r\n> I really want the 'editable' bit\r\n\r\nMaybe, `poetry install` with `--develop` will help you.\r\n\r\nhttps://github.com/sdispater/poetry/blob/82c38f215c3906153a6649ab0569d5f38e8aca3b/poetry/console/commands/install.py#L10-L15\r\n\r\nMost likely `poetry install --develop=git_clone_of_some_library`, dependency should be added first.\r\n\r\n> if I want to specify one or more extras when adding a library as a dependency, how do I do that?\r\n\r\n`poetry add --extras=a --extras=b --path=../git_clone_of_some_library git_clone_of_some_library`"}}
{"actor":{"display_login":"narimanizett"}}