{"action":"opened","issue":{"url":"https://api.github.com/repos/takluyver/flit/issues/208","repository_url":"https://api.github.com/repos/takluyver/flit","labels_url":"https://api.github.com/repos/takluyver/flit/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/takluyver/flit/issues/208/comments","events_url":"https://api.github.com/repos/takluyver/flit/issues/208/events","html_url":"https://github.com/takluyver/flit/issues/208","id":361803892,"node_id":"MDU6SXNzdWUzNjE4MDM4OTI=","number":208,"title":"Inconsistency in the docs about version constraints on pyproject.toml requires/requires-extra","user":{"login":"gpfreitas","id":1276576,"node_id":"MDQ6VXNlcjEyNzY1NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1276576?v=4","gravatar_id":"","url":"https://api.github.com/users/gpfreitas","html_url":"https://github.com/gpfreitas","followers_url":"https://api.github.com/users/gpfreitas/followers","following_url":"https://api.github.com/users/gpfreitas/following{/other_user}","gists_url":"https://api.github.com/users/gpfreitas/gists{/gist_id}","starred_url":"https://api.github.com/users/gpfreitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpfreitas/subscriptions","organizations_url":"https://api.github.com/users/gpfreitas/orgs","repos_url":"https://api.github.com/users/gpfreitas/repos","events_url":"https://api.github.com/users/gpfreitas/events{/privacy}","received_events_url":"https://api.github.com/users/gpfreitas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-19T15:28:26Z","updated_at":"2018-09-19T15:28:26Z","closed_at":null,"author_association":"NONE","body":"As of 2018-09-19, the docs prescribe adding a version constraint in the `requires` section as for `requests` below:\r\n\r\n```\r\nrequires = [\r\n    \"requests (>=2.6)\",\r\n    \"configparser; python_version == '2.7'\",\r\n]\r\n```\r\n\r\nBut for `requires-extra`, the docs say \"The requirements are specified in the same format as for `requires`\", but the example shows (see the pytest line)\r\n\r\n```\r\ntest = [\r\n    \"pytest>=2.7.3\",\r\n    \"pytest-cov\",\r\n]\r\n``` \r\n\r\n`\"requests (>=2.6)\"` and `pytest>=2.7.3` are not in the same style.\r\n\r\nI'd be happy to submit a PR when someone tells me what the fix should be (I'm guessing it should go all as in `requires`?)."}}
{"actor":{"display_login":"gpfreitas"}}