Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Preparing for the great snakes migration by Heather Williams

7b0645f018c0bddc8ce3900ccc3ba70c?s=47 Pycon ZA
October 09, 2020

Preparing for the great snakes migration by Heather Williams

A Lightning Talk at PyCon ZA 2020


Pycon ZA

October 09, 2020


  1. Great snakes migration Upgrading from python 2 to python 3

    By Heather Williams
  2. The Problem • A large codebase • Around 3 000

    python files used to generate questions on a website • Monolith disguised as microservices
  3. 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
  4. Solution: automate it Python 2to3 is a great tool https://docs.python.org/3.0/library/2to3.html

  5. Solution: requirements files • Remove unnecessary dependencies • Upgrade out

    of date dependencies • Note what needs python 3 to upgrade
  6. Great snakes migration Take the plunge and do it!