StarlingX/Python2

= Python2 to Python3 Transition Sub-project =

October 2021 PTG: This project is no longer active

Team Information

 * Project Lead: Cindy Xie 
 * Technical Lead:
 * Contributors: Austin Sun ; Yan Chen 

Team Objective / Priorities
Python 2 support will be ending in the community in 2020. We have a lot of Python2 code that needs to be converted to be 2/3 compatible. http://python-future.org/compatible_idioms.html https://wiki.openstack.org/wiki/Python3#Common_patterns https://etherpad.openstack.org/p/liberty-cross-project-python3
 * Guide for the compatible code:
 * OpenStack Python3 reference

Story Board Tags
All story board stories created for this team should use the tag "stx.python2" and the prefix [Python2].

Stories / Bugs

 * Story Board
 * All
 * Active Stories
 * Merged Stories
 * Active Release - stx.2.0
 * Active Stories
 * Active Release - stx.3.0
 * Active Stories
 * Active Release - stx.4.0
 * Active Stories
 * Launchpad Bugs
 * All
 * Open Bugs
 * Fixed Bugs
 * Active Release - stx.2.0
 * Open Bugs


 * There is an Etherpad with some notes here.
 * There is a Story with a good summary of the work needed here.

Deliverables for this sub-project

 * 1) All python code in StarlingX is python 3 compatible
 * 2) All python repos have Zuul jobs which check for python 3 compatibility
 * 3) All Zuul jobs are made Voting
 * 4) Once all the Python 2 code is removed, any python 2 support packages are removed from the build and build mirror

ToDo
For example cgcs-root/stx/stx-fault/fm-common/sources/fm_python_mod_main.cpp, " #include "
 * Turn the Notes in the Etherpad into Stories
 * Write stories for each of the repos in the table below and list the Links in the table below
 * We also use packages that have Python2 code. We need to replace and/or update such packages.  Need to identify that list.
 * Once all the P2 code is removed we need to remove the P2 dependencies
 * some c code will support python and we should analysis such code

RPMs python3 info
The RPM depends checking excel is attached to https://bugs.launchpad.net/starlingx/+bug/1808073, please check this bug for details.