/
Migration to Python3
Migration to Python3
Python2.7 EOL is coming:
https://mail.python.org/pipermail/python-dev/2018-March/152348.html
To prepare our scripts for this I recommend doing the following:
- 3.6 32 and 64 bit wheel files are in the local pip index, esp the ones from goehke. If there are any more, please let me know.
- Validation has already been built and run under 3 64 bit. The SVN functionality has been dropped in 3 - I couldn't not get it to compile and it does not do the job it was internded for.
- Bamboo runs tox tests for 2.7, 3.6 (32 bit) and 3.6 (64bit) on the larger products.
- For each repo Bamboo builds, it produces a report from 2to3 script.
- I’ve started using
https://pypi.python.org/pypi/six
to provide 2.7 to 3 compatibility at a code level. It was included in most of the repo’s but not being used in earnest. I encourage people to start using this module to make the transition easier. - As I use individual scripts, I transfer it to using python3, preferably 64bit. Again, I encourage people to do likewise. The mods aren’t difficult, and the six module is useful here.
- One caveat is that not everyone has 64bit machines; I suspect by the time the code is working under python3, the machines will have been replaced.