{"action":"created","issue":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/768","labels_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/768/comments","events_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/768/events","html_url":"https://github.com/hyperspy/hyperspy/issues/768","id":118638799,"number":768,"title":"Migration to Python 3","user":{"login":"francisco-dlp","id":989719,"avatar_url":"https://avatars.githubusercontent.com/u/989719?v=3","gravatar_id":"","url":"https://api.github.com/users/francisco-dlp","html_url":"https://github.com/francisco-dlp","followers_url":"https://api.github.com/users/francisco-dlp/followers","following_url":"https://api.github.com/users/francisco-dlp/following{/other_user}","gists_url":"https://api.github.com/users/francisco-dlp/gists{/gist_id}","starred_url":"https://api.github.com/users/francisco-dlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisco-dlp/subscriptions","organizations_url":"https://api.github.com/users/francisco-dlp/orgs","repos_url":"https://api.github.com/users/francisco-dlp/repos","events_url":"https://api.github.com/users/francisco-dlp/events{/privacy}","received_events_url":"https://api.github.com/users/francisco-dlp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hyperspy/hyperspy/labels/proposal","name":"proposal","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hyperspy/hyperspy/milestones/8","html_url":"https://github.com/hyperspy/hyperspy/milestones/0.9","labels_url":"https://api.github.com/repos/hyperspy/hyperspy/milestones/8/labels","id":856137,"number":8,"title":"0.9","description":"","creator":{"login":"francisco-dlp","id":989719,"avatar_url":"https://avatars.githubusercontent.com/u/989719?v=3","gravatar_id":"","url":"https://api.github.com/users/francisco-dlp","html_url":"https://github.com/francisco-dlp","followers_url":"https://api.github.com/users/francisco-dlp/followers","following_url":"https://api.github.com/users/francisco-dlp/following{/other_user}","gists_url":"https://api.github.com/users/francisco-dlp/gists{/gist_id}","starred_url":"https://api.github.com/users/francisco-dlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisco-dlp/subscriptions","organizations_url":"https://api.github.com/users/francisco-dlp/orgs","repos_url":"https://api.github.com/users/francisco-dlp/repos","events_url":"https://api.github.com/users/francisco-dlp/events{/privacy}","received_events_url":"https://api.github.com/users/francisco-dlp/received_events","type":"User","site_admin":false},"open_issues":56,"closed_issues":15,"state":"open","created_at":"2014-11-06T15:54:23Z","updated_at":"2015-11-24T18:41:13Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-11-24T15:51:27Z","updated_at":"2015-11-25T22:35:22Z","closed_at":null,"body":"Now that all of our dependencies has finally been ported to Python 3 (thanks @vidartf  for poiting this out) we should start considering porting HyperSpy too.\r\n\r\nI'm opening this issue to discuss how to proceed.\r\n\r\nA number of core packages support both Py2 and 3. Many of them using the [six library](https://pythonhosted.org/six/).  Personally I would prefer to port HyperSpy to Python 3 for good without relying in any extra library dependency to maintain support with Py3. Then we could run 3to2 or [these other tools](http://python-future.org/) to create the Py2 versions for the releases until we drop Py2 support. What do you think?\r\n\r\n\r\nTODO\r\n--------\r\n(This is a draft, all is open for discussion)\r\n\r\n* [ ] Merge as much as possible for HyperSpy 0.9\r\n* [ ] Run 2to3 + manual polishing\r\n* [ ] Run to 3to2 or similiar to support Py2 just for release.\r\n"},"comment":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/comments/159746855","html_url":"https://github.com/hyperspy/hyperspy/issues/768#issuecomment-159746855","issue_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/768","id":159746855,"user":{"login":"jrminter","id":1134585,"avatar_url":"https://avatars.githubusercontent.com/u/1134585?v=3","gravatar_id":"","url":"https://api.github.com/users/jrminter","html_url":"https://github.com/jrminter","followers_url":"https://api.github.com/users/jrminter/followers","following_url":"https://api.github.com/users/jrminter/following{/other_user}","gists_url":"https://api.github.com/users/jrminter/gists{/gist_id}","starred_url":"https://api.github.com/users/jrminter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrminter/subscriptions","organizations_url":"https://api.github.com/users/jrminter/orgs","repos_url":"https://api.github.com/users/jrminter/repos","events_url":"https://api.github.com/users/jrminter/events{/privacy}","received_events_url":"https://api.github.com/users/jrminter/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T22:35:22Z","updated_at":"2015-11-25T22:35:22Z","body":"This is timely. I just noticed that Ubuntu is dropping python 2.7 from 16.04LTS (https://wiki.ubuntu.com/Python/FoundationsXPythonVersions)\r\n\r\n> Feature freeze is the drop dead date for dropping Python 2.7 from the images. We will be hard-nosed about this! Once python2.7 and libpython2.7 are removed from a seed, we'll blacklist them so they can't be accidentally reseeded.\r\n\r\nPerhaps this will spur some of the package maintainers to accelerate their efforts."}}