Details
-
Epic
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Use Python 3 in our codebase
Description
As mentioned by Andrew Schwartzmeyer 2 weeks ago, nothing new should use Python 2. Eric Chung and Armand Grillet are currently working on the CLI while being shepherded by Kevin Klues and, as we plan to do more work on it soon, mentioned again today that it would be a good time to start using Python 3 in our codebase.
We use Python 2 in four areas of the Mesos codebase:
- In the support scripts.
- In the new CLI.
- In the new Mesos Python package.
- In the Python bindings.
The support scripts and CLI can be updated independently of the switch if we assume that most of our devs have Python 2 and 3 installed on their machines. The Python can be updated last as they should not be used anymore, in favor of our V1 API.
This new dependency will require changes in our documentation regarding how to build Python. As it will be a change for Mesos devs, we have to express the reasons behind this change and check if it could cause any issue on their side.
Attachments
Attachments
Issues in epic
MESOS-946 | setup.py should be able to create publishable sdist | Open | Unassigned | |||
|
MESOS-4054 | Evaluate python-compatibility of python bindings and utilities | Resolved | Armand Grillet | ||
MESOS-7163 | python: Produce python3 compatible python bindings | Open | Unassigned | |||
|
MESOS-7658 | apply-reviews.py fails with Unicode characters | Resolved | Armand Grillet | ||
|
MESOS-8770 | Use Python3 for Mesos support scripts | Resolved | Armand Grillet | ||
|
MESOS-8883 | Send email to dev list concerning the Python 3 update | Resolved | Armand Grillet | ||
|
MESOS-8894 | Write documentation page regarding Python support in Mesos | Resolved | Armand Grillet | ||
|
MESOS-8903 | Update the Python CLI to use Python 3 | Resolved | Armand Grillet | ||
|
MESOS-8910 | Update cpplint to a version supporting Python 3 | Resolved | Armand Grillet | ||
|
MESOS-8934 | Update python.m4 to support Python 3 | Resolved | Armand Grillet | ||
|
MESOS-8954 | python3/post-reviews.py errors due to TypeError. | Resolved | Armand Grillet | ||
|
MESOS-8955 | Manage Python2 and 3 in build steps | Resolved | Armand Grillet | ||
|
MESOS-8957 | Install Python 3 on Mesos CI instances | Resolved | Robin Gögge | ||
|
MESOS-9073 | Tox doesn't run in the support virtualenv when using Python 3 mesos-style.py | Resolved | Armand Grillet | ||
|
MESOS-9075 | Virtualenv management in support directory is buggy. | Resolved | Armand Grillet | ||
|
MESOS-9229 | Install Python3 on ubuntu-16.04-arm docker image | Resolved | Tomasz Janiszewski |