{"action":"opened","issue":{"url":"https://api.github.com/repos/sdispater/poetry/issues/588","repository_url":"https://api.github.com/repos/sdispater/poetry","labels_url":"https://api.github.com/repos/sdispater/poetry/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/sdispater/poetry/issues/588/comments","events_url":"https://api.github.com/repos/sdispater/poetry/issues/588/events","html_url":"https://github.com/sdispater/poetry/issues/588","id":376178291,"node_id":"MDU6SXNzdWUzNzYxNzgyOTE=","number":588,"title":"poetry fails to parse version constraint, but only with LegacyRepository","user":{"login":"zehauser","id":7400726,"node_id":"MDQ6VXNlcjc0MDA3MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7400726?v=4","gravatar_id":"","url":"https://api.github.com/users/zehauser","html_url":"https://github.com/zehauser","followers_url":"https://api.github.com/users/zehauser/followers","following_url":"https://api.github.com/users/zehauser/following{/other_user}","gists_url":"https://api.github.com/users/zehauser/gists{/gist_id}","starred_url":"https://api.github.com/users/zehauser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zehauser/subscriptions","organizations_url":"https://api.github.com/users/zehauser/orgs","repos_url":"https://api.github.com/users/zehauser/repos","events_url":"https://api.github.com/users/zehauser/events{/privacy}","received_events_url":"https://api.github.com/users/zehauser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-31T22:04:26Z","updated_at":"2018-10-31T22:04:26Z","closed_at":null,"author_association":"NONE","body":"- [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**: MacOS 10.13.6\r\n- **Poetry version**: 0.12.5\r\n- **Link of a [Gist](https://gist.github.com/) with the contents of your pyproject.toml file**: https://gist.github.com/zehauser/337fabdfe20662293b3eddcf113c0a55\r\n\r\n## Issue\r\n\r\nAs best I can tell, this issue only arises with the `LegacyRepository` code path.\r\n\r\nSteps to reproduce:\r\n1. Copy the above gist into a `pyproject.toml` in an empty directory.\r\n2. Run `poetry debug:resolve`. \r\n3. Observe the `[ValueError] Could not parse version constraint: not`\r\n4. Remove the `tool.poetry.source` section from the above `pyproject.toml`. \r\n5. Run `poetry debug:resolve`.\r\n6. Observe that all is well.   \r\n\r\nLooks like the troublesome lines in the dist-info METADATA file are these:\r\n```Requires-Dist: jinja2 (>=2.6,<2.7); python_version in \"3.0,3.1,3.2\" and extra == 'export'\r\nRequires-Dist: jinja2 (>=2.7,<2.8); python_version not in \"3.0,3.1,3.2\" and extra == 'export'```"}}
{"actor":{"display_login":"zehauser"}}