I'm porting stuff to Python 3. And I'm loving it
A GSoC update: Splash runs on Qt5, and porting its dependencies to Python 3 is under way.
GSoC update time! In case you didn’t read my previous post, I’m participating in GSoC and porting Splash to Python 3.
Quick update on what has been done so far. The pull request to add support for Qt5 and PyQt5 has been merged into the qt5 branch. The plan is to merge it into master after Python 3 porting and some other cleanup(fixing the docs, Vagrantfile etc) is done.
So now on to Python 3 porting.
The main road block in porting Splash to Python 3 is that some dependencies don’t (fully) support Python 3 yet. The major one at that is Twisted. But the good thing is the most used parts of Twisted already support Python 3 and the developers behind Twisted are actively working on porting more and more modules. Also Twisted has a fairly well laid out guide for Python 3 porting and the community is really responsive with feedback and reviews. Thanks to that I have ported a module already and working on porting twisted.web.proxy for now.
Among other dependencies, my fork of qt5reactor is Python 3 compatible. And pyre2, a faster drop-in replacement of the re module from standard library, is now Python 3 compatible after my PR was merged.
For now, I’m porting the Splash code base one test at a time. Splash has a good test coverage and lots of tests. So that’s working in my favor. That and pdb.
That’s all I have to share for now. Thanks for reading.