Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Preparing for the great snakes migration by Heather Williams
Pycon ZA
October 09, 2020
Programming
0
8
Preparing for the great snakes migration by Heather Williams
A Lightning Talk at PyCon ZA 2020
Pycon ZA
October 09, 2020
Tweet
Share
More Decks by Pycon ZA
See All by Pycon ZA
pyconza
0
35
pyconza
0
29
pyconza
0
10
pyconza
0
19
pyconza
0
56
pyconza
0
29
pyconza
0
17
pyconza
0
20
pyconza
0
15
Other Decks in Programming
See All in Programming
manfredsteyer
PRO
0
290
sisshiki1969
1
240
sysrich
0
240
samjulien
0
190
daiki_0816
0
130
etagwerker
1
120
marcoow
0
160
n1215
1
460
cc4966
1
110
hkusu
0
280
adarapata
1
460
joytomo
1
530
Featured
See All Featured
sachag
267
17k
keathley
20
760
dotmariusz
94
5.5k
addyosmani
312
21k
bkeepers
PRO
408
58k
lara
16
2.9k
lara
172
9.7k
colly
188
14k
maltzj
502
36k
bryan
32
3.5k
malarkey
392
61k
imathis
479
150k
Transcript
Great snakes migration Upgrading from python 2 to python 3
By Heather Williams
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 it Python 2to3 is a great tool https://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 migration Take the plunge and do it!