On Tue, Jun 11, 2013 at 7:05 AM, Tomas Schertel <[email protected]> wrote:
> On Monday, 10 June 2013 15:40:14 UTC-3, Anand wrote: >> >> Hello everyone, >> >> I made some progress on migrating web.py to Python3. I'm able to run >> helloworld app both on Python2 and Python3 using the same codebase. >> >> https://github.com/anandology/**webpy/compare/python3<https://github.com/anandology/webpy/compare/python3> >> >> helloworld program: >> https://gist.github.com/**anandology/5751099<https://gist.github.com/anandology/5751099> >> >> I've tried to be very systematic about the migration. The important steps >> are: >> >> 1. covert all imports to relative imports >> 2. replace print statement with print function >> 3. fix exceptions >> 4. fix unicode issues >> >> One thing that'll be useful is to fix the test suite. Anyone interested >> to take it up? The plan is not to add new tests, but convert the existing >> test suite to work with Python3. It'll useful to follow the above listed >> things first before others. >> >> Any takers? >> > > I'm in. > Thanks! > What do I need to do? Fork web.py and ask for a merge? > Yes. I pushed the python3 branch to webpy repo. https://github.com/webpy/webpy Fork that and start a branch python3-tests from python3 and send me a pull request. > Any hint I can use in migration process? > > Already mentioned above. I would like first few commits to fix the obvious issues like fixing imports, print function, exceptions etc. It'll be useful to have each one as a separate commit. Anand -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
