{"action":"created","issue":{"url":"https://api.github.com/repos/spectralpython/spectral/issues/14","repository_url":"https://api.github.com/repos/spectralpython/spectral","labels_url":"https://api.github.com/repos/spectralpython/spectral/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/spectralpython/spectral/issues/14/comments","events_url":"https://api.github.com/repos/spectralpython/spectral/issues/14/events","html_url":"https://github.com/spectralpython/spectral/issues/14","id":37615919,"number":14,"title":"Support for python 3.x","user":{"login":"tboggs","id":4976161,"avatar_url":"https://avatars.githubusercontent.com/u/4976161?v=3","gravatar_id":"","url":"https://api.github.com/users/tboggs","html_url":"https://github.com/tboggs","followers_url":"https://api.github.com/users/tboggs/followers","following_url":"https://api.github.com/users/tboggs/following{/other_user}","gists_url":"https://api.github.com/users/tboggs/gists{/gist_id}","starred_url":"https://api.github.com/users/tboggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboggs/subscriptions","organizations_url":"https://api.github.com/users/tboggs/orgs","repos_url":"https://api.github.com/users/tboggs/repos","events_url":"https://api.github.com/users/tboggs/events{/privacy}","received_events_url":"https://api.github.com/users/tboggs/received_events","type":"User","site_admin":false},"labels":[{"id":78951875,"url":"https://api.github.com/repos/spectralpython/spectral/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/spectralpython/spectral/milestones/3","html_url":"https://github.com/spectralpython/spectral/milestones/python3","labels_url":"https://api.github.com/repos/spectralpython/spectral/milestones/3/labels","id":713994,"number":3,"title":"python3","description":null,"creator":{"login":"tboggs","id":4976161,"avatar_url":"https://avatars.githubusercontent.com/u/4976161?v=3","gravatar_id":"","url":"https://api.github.com/users/tboggs","html_url":"https://github.com/tboggs","followers_url":"https://api.github.com/users/tboggs/followers","following_url":"https://api.github.com/users/tboggs/following{/other_user}","gists_url":"https://api.github.com/users/tboggs/gists{/gist_id}","starred_url":"https://api.github.com/users/tboggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboggs/subscriptions","organizations_url":"https://api.github.com/users/tboggs/orgs","repos_url":"https://api.github.com/users/tboggs/repos","events_url":"https://api.github.com/users/tboggs/events{/privacy}","received_events_url":"https://api.github.com/users/tboggs/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2014-07-08T14:18:07Z","updated_at":"2014-07-10T23:49:25Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-07-10T23:44:44Z","updated_at":"2016-11-09T04:01:35Z","closed_at":null,"body":"SPy is currently developed for python 2.{6,7}. This enhancement will add support for python3. The current plan is to have a single code base that works for both python 2 and 3 (I realize some people discourage this).\n\nThe basic tasks to get this done are\n- [x] Run [2to3](https://docs.python.org/2/library/2to3.html) on the entire module.\n- [x] Add needed future imports for python2:\n  \n  ```\n  from __future__ import division, print_function, unicode_literals\n  ```\n- [x] Fix all the miscellaneous things that are broken (most likely due to [non]integer division).\n- [x] Verify all unit tests pass under python 2 and 3.\n- [ ] Figure out a way to get `view_cube` and `view_nd` working with python3.\n\nThe last item above is probably the hardest part because those functions rely on wxPython, which is not ported to python3. I've confirmed that most of the needed matplotlib functions that are used for interactive GUI capabilities in SPy will work under alternate matplotlib backends (with python3) but the two functions mentioned will need to be migrated to another GUI toolkit that provides an OpenGL wrapper (unless wxPython gets ported). If there isn't a relatively easy way to port those two functions, it is probably still worth making the rest of the module work with python3 and deferring those two functions until later.\n"},"comment":{"url":"https://api.github.com/repos/spectralpython/spectral/issues/comments/259329580","html_url":"https://github.com/spectralpython/spectral/issues/14#issuecomment-259329580","issue_url":"https://api.github.com/repos/spectralpython/spectral/issues/14","id":259329580,"user":{"login":"lewismc","id":1165719,"avatar_url":"https://avatars.githubusercontent.com/u/1165719?v=3","gravatar_id":"","url":"https://api.github.com/users/lewismc","html_url":"https://github.com/lewismc","followers_url":"https://api.github.com/users/lewismc/followers","following_url":"https://api.github.com/users/lewismc/following{/other_user}","gists_url":"https://api.github.com/users/lewismc/gists{/gist_id}","starred_url":"https://api.github.com/users/lewismc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewismc/subscriptions","organizations_url":"https://api.github.com/users/lewismc/orgs","repos_url":"https://api.github.com/users/lewismc/repos","events_url":"https://api.github.com/users/lewismc/events{/privacy}","received_events_url":"https://api.github.com/users/lewismc/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T04:01:35Z","updated_at":"2016-11-09T04:01:35Z","body":"I can confirm this as well. I've just tested spectral python3 branch for the same. \r\nWould a TravisCI build be of use for this project? This would enable future pull requests to be tested immediately and automatically against Python 2.7, 3.3, 3.4 and 3.5. What do you think @tboggs ?"}}
{"actor":{"display_login":"lewismc"}}