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

Preparing for the great snakes migration by Heather Williams

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

More Decks by Pycon ZA

Other Decks in Programming


  1. Great snakes migration
    Upgrading from python 2 to python 3
    By Heather Williams

    View Slide

  2. The Problem
    ● A large codebase
    ● Around 3 000 python files used to generate questions on a website
    ● Monolith disguised as microservices

    View Slide

  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

    View Slide

  4. Solution: automate it
    Python 2to3 is a great tool

    View Slide

  5. Solution: requirements files
    ● Remove unnecessary dependencies
    ● Upgrade out of date dependencies
    ● Note what needs python 3 to upgrade

    View Slide

  6. Great snakes migration
    Take the plunge and do it!

    View Slide