Transitioning to Python 3
Python 2.7 will no longer be maintained after January 1st, 2020. Accordingly, ROS Noetic will target only Python 3. These tutorials walk through the steps to transition a ROS 1 package from Python 2 to Python 3.
- Choose your branching strategy
Choosing whether to support Melodic and Noetic in the same branch is the first decision to make when Transitioning a package to Python 3.
- Identify dependencies using Python
The first step to determining if your packages support Python 3 is to determine which of your dependencies depend on Python.
- Source code changes to support Python 3
Once dependencies have been transitioned, it's time to make source code changes to your package to support Python 3.
- Build your package using Python 3
While not officially supported until Noetic, building and testing your package using Python 3 is essential to prepare for the upcoming release.
- Contributing Python 3 Fixes
Consider contributing Python 3 fixes. Anything you contribute will help make the Noetic release work better for you.