{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pep517/issues/4","repository_url":"https://api.github.com/repos/pypa/pep517","labels_url":"https://api.github.com/repos/pypa/pep517/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pep517/issues/4/comments","events_url":"https://api.github.com/repos/pypa/pep517/issues/4/events","html_url":"https://github.com/pypa/pep517/issues/4","id":343403264,"node_id":"MDU6SXNzdWUzNDM0MDMyNjQ=","number":4,"title":"Test automation","user":{"login":"pfmoore","id":1110419,"node_id":"MDQ6VXNlcjExMTA0MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1110419?v=4","gravatar_id":"","url":"https://api.github.com/users/pfmoore","html_url":"https://github.com/pfmoore","followers_url":"https://api.github.com/users/pfmoore/followers","following_url":"https://api.github.com/users/pfmoore/following{/other_user}","gists_url":"https://api.github.com/users/pfmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/pfmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfmoore/subscriptions","organizations_url":"https://api.github.com/users/pfmoore/orgs","repos_url":"https://api.github.com/users/pfmoore/repos","events_url":"https://api.github.com/users/pfmoore/events{/privacy}","received_events_url":"https://api.github.com/users/pfmoore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-22T12:45:21Z","updated_at":"2018-07-22T14:08:41Z","closed_at":null,"author_association":"MEMBER","body":"Setting up the tests is a little cumbersome at the moment. You need to:\r\n\r\n1. Create a virtualenv\r\n2. Install the test dependencies (which aren't documented anywhere)\r\n3. Run pytest by hand from the project directory\r\n4. Repeat for as many versions of Python as you ant to test for\r\n\r\nIdeally, a test automation tool should be used (a `dev-requirements.txt` file would also help with (2), and I assume that's not an issue to add). There are two that I know of:\r\n\r\n1. Tox, by far the most commonly used/known\r\n2. Nox, a newcomer that is more flexible, but has some rough edges still (see https://github.com/theacodes/nox/issues/93 in particular)\r\n\r\nThe biggest problem with tox is that it expects a `setup.py` file, which flit doesn't use. I have a configuration for tox that works, but it needs a dummy (empty) `setup.py` added to the project.\r\n\r\nWhat are your thoughts? Until nox can better handle missing Python versions, I'm in favour of tox. But I don't want to get into a philosophical debate over `setup.py` and alternative build systems, I just want something that lets me run the tests locally without jumping through hoops :-("},"comment":{"url":"https://api.github.com/repos/pypa/pep517/issues/comments/406869411","html_url":"https://github.com/pypa/pep517/issues/4#issuecomment-406869411","issue_url":"https://api.github.com/repos/pypa/pep517/issues/4","id":406869411,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjg2OTQxMQ==","user":{"login":"pfmoore","id":1110419,"node_id":"MDQ6VXNlcjExMTA0MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1110419?v=4","gravatar_id":"","url":"https://api.github.com/users/pfmoore","html_url":"https://github.com/pfmoore","followers_url":"https://api.github.com/users/pfmoore/followers","following_url":"https://api.github.com/users/pfmoore/following{/other_user}","gists_url":"https://api.github.com/users/pfmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/pfmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfmoore/subscriptions","organizations_url":"https://api.github.com/users/pfmoore/orgs","repos_url":"https://api.github.com/users/pfmoore/repos","events_url":"https://api.github.com/users/pfmoore/events{/privacy}","received_events_url":"https://api.github.com/users/pfmoore/received_events","type":"User","site_admin":false},"created_at":"2018-07-22T14:08:41Z","updated_at":"2018-07-22T14:08:41Z","author_association":"MEMBER","body":"I'm OK with sticking with flit (at least for now) - although it's still a bit of a struggle interoperating with tools that assume `setup.py` and setuptools, it's actually useful finding out where the pain points lie.\r\n\r\nBut to get tox to work needs an empty `setup.py` (or better, one that simply reports an error and quits) - tox has an explicit check for the file. It's a hack, but I've no appetite right now for pushing tox to support flit and/or PEP 517 (I hope they accept that they'll need to at some point, but that's not my fight TBH).\r\n\r\nAs long as you're not against having a dummy `setup.py` in here, I'll have a think for a while and then submit a PR for either tox or nox, depending on how I end up feeling about the ugliness of the tox hack vs the nox limitation."}}
{"actor":{"display_login":"pfmoore"}}