A Lightning Talk at PyCon ZA 2020
Great snakes migrationUpgrading from python 2 to python 3By Heather Williams
View Slide
The Problem● A large codebase● Around 3 000 python files used to generate questions on a website● Monolith disguised as microservices
Solution: Walled gardens● Make the monolith a true monolith● Identify the real microservices● Docker all the things● Walled garden around the python files for questions
Solution: automate itPython 2to3 is a great toolhttps://docs.python.org/3.0/library/2to3.html
Solution: requirements files● Remove unnecessary dependencies● Upgrade out of date dependencies● Note what needs python 3 to upgrade
Great snakes migrationTake the plunge and do it!