Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 2 in azure-cli #11362

Closed
rodrigc opened this issue Nov 23, 2019 · 2 comments · Fixed by #11363
Closed

Drop support for Python 2 in azure-cli #11362

rodrigc opened this issue Nov 23, 2019 · 2 comments · Fixed by #11363
Assignees
Labels
Core CLI core infrastructure Packaging
Milestone

Comments

@rodrigc
Copy link
Contributor

rodrigc commented Nov 23, 2019

Is your feature request related to a problem? Please describe.
Certain new features of azure-cli and its extensions are using Python-3 only features, causing problems on Python-2, such as #11206 .

Since the Python project is dropping support for Python 2 in 2020: https://pythonclock.org/

At some point azure-cli should probably drop support for Python 2 as well,
since maintaining code which can work perfectly on Python 2 and Python 3 is a maintenance burden.

Describe the solution you'd like
Drop support for Python-2 in azure-cli, and error out if you try to install azure-cli with Python-2.

@fengzhou-msft
Copy link
Member

Thanks for submitting this issue and a PR to fix it. RPM with Python 3 will roll out before Thanksgiving thanks to your previous PR #11235. Let's see how people react to that change. We will then evaluate when to officially drop support for Python 2.

@fengzhou-msft fengzhou-msft self-assigned this Nov 23, 2019
@fengzhou-msft fengzhou-msft added Core CLI core infrastructure Packaging labels Nov 23, 2019
@fengzhou-msft fengzhou-msft added this to the S163 milestone Nov 26, 2019
@fengzhou-msft
Copy link
Member

We still have about 10% active users on Python 2. We may defer the drop for Python 2 for a bit longer. As more users install RPM with Python 3, I believe the number of Python 2 would drop significantly since the majority of our Python 2 users are on centos or redhat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core CLI core infrastructure Packaging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants