You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be started after we cut a v17 GA release. We've released v17 beta this Monday. Given k8s v17 is pretty old, we will give v17 beta one week of soak time. The ETA for v17 GA is next Monday 05-10.
To drop Python 2, most importantly we need to remove
This needs to happen after the v17 GA release because otherwise it will cause trouble pulling master into release-17.0, and accidentally drop Python 2 for v17.
I just realized that some of our tests (e.g. codestyle) only exist in Python 2.
We need to make sure we have the same test in Python 3. @Priyankasaggu11929 would you mind taking a look at adding a Python 3 codestyle test? This doesn't have to be blocked by the v17 GA release.
Sorry this is more complex than I thought. Let me know if you have any questions.
this change doesn't have to be blocked by the GA release
I mean you can start adding the test to Python 3 and don't have to wait for the v17 GA release. Adding additional Python 3 tests can happen before/after the v17 GA release, since we don't mind having extra tests in the release. Dropping Python 2 needs to wait for the v17 GA release, because we promised to keep Python 2 around in the lifetime of v17.
Activity
roycaihw commentedon May 4, 2021
This can be started after we cut a v17 GA release. We've released v17 beta this Monday. Given k8s v17 is pretty old, we will give v17 beta one week of soak time. The ETA for v17 GA is next Monday 05-10.
To drop Python 2, most importantly we need to remove
python/setup.py
Lines 75 to 76 in b13b350
which controls the Python version the package runs in.
Additionally, we should remove any places that use Python 2 in this repo, especially the tests:
https://github.com/kubernetes-client/python/blob/master/.travis.yml
https://github.com/kubernetes-client/python/blob/master/.github/workflows/test.yaml
roycaihw commentedon May 4, 2021
This needs to happen after the v17 GA release because otherwise it will cause trouble pulling master into release-17.0, and accidentally drop Python 2 for v17.
Priyankasaggu11929 commentedon May 5, 2021
/assign
roycaihw commentedon May 7, 2021
the same needs to be done for python-base
Priyankasaggu11929 commentedon May 7, 2021
I’ll do the same for Python-base as well. Thank you for pointing.
roycaihw commentedon May 11, 2021
I just realized that some of our tests (e.g. codestyle) only exist in Python 2.
We need to make sure we have the same test in Python 3. @Priyankasaggu11929 would you mind taking a look at adding a Python 3 codestyle test? This doesn't have to be blocked by the v17 GA release.
Sorry this is more complex than I thought. Let me know if you have any questions.
Priyankasaggu11929 commentedon May 11, 2021
Yes, I will have a look at this & try adding the required tests in python3.
Just to be sure
v17 GA releaseis happening this week itself, right?And when you say this change doesn't have to be blocked by the GA release, that means we can go with
v17 GA releasewithout these changes for now?roycaihw commentedon May 11, 2021
Yes, Scott and I are on it now :) #1458, #1460
I mean you can start adding the test to Python 3 and don't have to wait for the v17 GA release. Adding additional Python 3 tests can happen before/after the v17 GA release, since we don't mind having extra tests in the release. Dropping Python 2 needs to wait for the v17 GA release, because we promised to keep Python 2 around in the lifetime of v17.
Priyankasaggu11929 commentedon May 11, 2021
Understood now. Thank you for the clarification. :)