Closed
Description
Description
Python 3.12 has been released on 2023-10-02: https://www.python.org/downloads/release/python-3120/
Azure CLI needs to support Python 3.12 like how we supported 3.10 (#19857), 3.11 (#24494).
TODOs
- Knack supports Python 3.12
- azdev supports Python 3.12
- Dependencies are updated to the Python 3.12 compatible version
pymsalruntime
(dependency ofmsal[broker]
) {Core} Bump MSAL to 1.27.0 and pinpymsalruntime
to 0.14.0 #28556- {Packaging} Bump cffi to 1.16.0 #29466
- {Packaging} Bump PyWin32 to 306 #29486
- CI passes with Python 3.12
- Remove
distutils
{Core} Remove deprecated usages of distutils to support Python 3.12 #28796 - {Packaging} Add
setuptools
to dependency #27196 - {Misc.} Remove deprecated
assertRaisesRegexp
#29504 - {Misc.} Remove deprecated
assertEquals
#29515 - {AKS} Fix enum check in test #29517
- Remove
assertDictContainsSubset
andassertNotEquals
Please port to Python3.12 #28194 - Hundreds of "SyntaxWarning: invalid escape sequence" will break in future python versions #28829
- {Misc.} Improve code style and prepare for pylint 3 #29373
- [Packaging] Support Python 3.12 #29465
- [Packaging] Bump embedded Python version to 3.12.7 #29887
- {CI} Replace deprecated
assertRaisesRegexp
andassertEquals
azure-cli-extensions#8010 - {CI} Update pipeline to use Python 3.12 azure-cli-extensions#8116
- Remove