{"action":"created","issue":{"url":"https://api.github.com/repos/prodicus/tnote/issues/10","repository_url":"https://api.github.com/repos/prodicus/tnote","labels_url":"https://api.github.com/repos/prodicus/tnote/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/prodicus/tnote/issues/10/comments","events_url":"https://api.github.com/repos/prodicus/tnote/issues/10/events","html_url":"https://github.com/prodicus/tnote/pull/10","id":131245039,"number":10,"title":"Changed project structure for pip and unit testing, added travis support","user":{"login":"maxwellgerber","id":11035210,"avatar_url":"https://avatars.githubusercontent.com/u/11035210?v=3","gravatar_id":"","url":"https://api.github.com/users/maxwellgerber","html_url":"https://github.com/maxwellgerber","followers_url":"https://api.github.com/users/maxwellgerber/followers","following_url":"https://api.github.com/users/maxwellgerber/following{/other_user}","gists_url":"https://api.github.com/users/maxwellgerber/gists{/gist_id}","starred_url":"https://api.github.com/users/maxwellgerber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxwellgerber/subscriptions","organizations_url":"https://api.github.com/users/maxwellgerber/orgs","repos_url":"https://api.github.com/users/maxwellgerber/repos","events_url":"https://api.github.com/users/maxwellgerber/events{/privacy}","received_events_url":"https://api.github.com/users/maxwellgerber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-04T05:04:09Z","updated_at":"2016-02-04T05:26:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/prodicus/tnote/pulls/10","html_url":"https://github.com/prodicus/tnote/pull/10","diff_url":"https://github.com/prodicus/tnote/pull/10.diff","patch_url":"https://github.com/prodicus/tnote/pull/10.patch"},"body":"[![Build Status](https://travis-ci.org/maxwellgerber/tnote.svg?branch=master)](https://travis-ci.org/maxwellgerber/tnote)[![Build Status](https://travis-ci.org/maxwellgerber/tnote.svg?branch=master)](https://travis-ci.org/maxwellgerber/tnote)[![Build Status](https://travis-ci.org/maxwellgerber/tnote.svg?branch=master)](https://travis-ci.org/maxwellgerber/tnote)\r\nComplete overhaul of project structure based on what I learned in this blog post:\r\n[https://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/](url)\r\nIntegrated automatic testing with travis-cl ([travis-ci.org](url))\r\nAdded a setup.py for use with pip.\r\nStarted a documentation folder.\r\nI ran into a really big problem where I accidentally installed tnote as a module and then would update the tnote.py, but when I imported it into the testing file, it would import the copy of tnote I had installed. Not entirely sure how module importing works, as is evident from my commit history. I'd push to github and travis wouldn't be able to find the module, and then fail. Finally got it to work but it took some time.\r\n\r\nIf anyone has advice or resources as to how to structure a python project, I'm all ears.\r\n\r\nTomorrow I'm going to try to restructure tnote.py so that we can write tests involving sample databases.\r\n[![Build Status](https://travis-ci.org/maxwellgerber/tnote.svg?branch=master)](https://travis-ci.org/maxwellgerber/tnote)[![Build Status](https://travis-ci.org/maxwellgerber/tnote.svg?branch=master)](https://travis-ci.org/maxwellgerber/tnote)[![Build Status](https://travis-ci.org/maxwellgerber/tnote.svg?branch=master)](https://travis-ci.org/maxwellgerber/tnote)"},"comment":{"url":"https://api.github.com/repos/prodicus/tnote/issues/comments/179645754","html_url":"https://github.com/prodicus/tnote/pull/10#issuecomment-179645754","issue_url":"https://api.github.com/repos/prodicus/tnote/issues/10","id":179645754,"user":{"login":"synlestidae","id":2817982,"avatar_url":"https://avatars.githubusercontent.com/u/2817982?v=3","gravatar_id":"","url":"https://api.github.com/users/synlestidae","html_url":"https://github.com/synlestidae","followers_url":"https://api.github.com/users/synlestidae/followers","following_url":"https://api.github.com/users/synlestidae/following{/other_user}","gists_url":"https://api.github.com/users/synlestidae/gists{/gist_id}","starred_url":"https://api.github.com/users/synlestidae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synlestidae/subscriptions","organizations_url":"https://api.github.com/users/synlestidae/orgs","repos_url":"https://api.github.com/users/synlestidae/repos","events_url":"https://api.github.com/users/synlestidae/events{/privacy}","received_events_url":"https://api.github.com/users/synlestidae/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T05:26:03Z","updated_at":"2016-02-04T05:26:03Z","body":"Have you used [http://docs.python-guide.org/en/latest/dev/virtualenvs/](virtualenv) before? It allows you to isolate your pip dependencies... might be helpful!\r\n\r\nAs for refactoring, what needs to be done is restructuring tnote.py into separate (and more testable) modules e.g. database.py, render.py, etc. \r\n"}}