diff --git a/doc/command_guidelines.md b/doc/command_guidelines.md index 4c149e2ff9b..bb89e91ad9e 100644 --- a/doc/command_guidelines.md +++ b/doc/command_guidelines.md @@ -426,7 +426,7 @@ Follow the [Error Handling Guidelines](https://github.com/Azure/azure-cli/blob/d ## Coding Practices -- All code must support Python 3.7 ~ 3.10 +- All code must support Python 3.8 ~ 3.10 - PRs to Azure/azure-cli and Azure/azure-cli-extensions must pass CI - Code must pass style checks with pylint and pep8 - (*) All commands should have tests diff --git a/doc/debug/debug_in_vs_code.md b/doc/debug/debug_in_vs_code.md index 251a757db5f..3611820d8c3 100644 --- a/doc/debug/debug_in_vs_code.md +++ b/doc/debug/debug_in_vs_code.md @@ -4,7 +4,7 @@ * Visual Studio Code [Link](http://code.visualstudio.com/) * Visual Studio Code Python Extension [Link](https://marketplace.visualstudio.com/items?itemName=donjayamanne.python) -* Python 3.7+ +* Python 3.8+ * Set up development environment [Link](https://github.com/Azure/azure-cli/blob/master/doc/configuring_your_machine.md) ## Quick start diff --git a/doc/extensions/authoring.md b/doc/extensions/authoring.md index f5141475611..28b19f71e66 100644 --- a/doc/extensions/authoring.md +++ b/doc/extensions/authoring.md @@ -129,9 +129,9 @@ See [Extension Metadata](metadata.md) for more information. ### Test your extension on Python 3 -- The Azure CLI supports Python 3.7 ~ 3.10 so verify that your extension does the same. +- The Azure CLI supports Python 3.8 ~ 3.10 so verify that your extension does the same. - You can create virtual environments for different versions and run your extension in them. -- e.g. `python3.7 -m venv env37` and `python3.10 -m venv env310`. +- e.g. `python3.8 -m venv env38` and `python3.10 -m venv env310`. Also, see the [FAQ](faq.md). diff --git a/doc/install_linux_prerequisites.md b/doc/install_linux_prerequisites.md index be834cf8db9..4a72da6ca90 100644 --- a/doc/install_linux_prerequisites.md +++ b/doc/install_linux_prerequisites.md @@ -3,26 +3,26 @@ Linux Install Prerequisites Some native Linux packages are required when installing the CLI with: -- Interactive install script +- Interactive installation script - `pip` -Current supported Python versions are Python 3.7 ~ 3.10. +Current supported Python versions are Python 3.8 ~ 3.10. The commands to run to install the dependencies for some common distributions are listed below. -### Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Debian 9, Debian 10 +### Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Debian 9, Debian 10, Debian 11 ``` sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential ``` -### RHEL 8, CentOS Stream 8 +### RHEL 8, CentOS Stream 8, RHEL 9, CentOS Stream 9 Install the latest Python 3.9 available in the software repo. ``` sudo dnf install -y gcc libffi-devel python39-devel openssl-devel ``` ### SUSE OpenSUSE 13.2 -Install Python 3.7+ if needed. +Install Python 3.8+ if needed. ``` sudo zypper refresh && sudo zypper --non-interactive install gcc libffi-devel python-devel openssl-devel ``` diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index e244e0a119d..45efa04313c 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh @@ -98,7 +98,6 @@ CLASSIFIERS = [ 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', diff --git a/src/azure-cli-core/setup.py b/src/azure-cli-core/setup.py index d9d4dea4b49..337f580edd1 100644 --- a/src/azure-cli-core/setup.py +++ b/src/azure-cli-core/setup.py @@ -35,7 +35,6 @@ 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', diff --git a/src/azure-cli-telemetry/setup.py b/src/azure-cli-telemetry/setup.py index c79b027b743..47a7de57d5a 100755 --- a/src/azure-cli-telemetry/setup.py +++ b/src/azure-cli-telemetry/setup.py @@ -16,7 +16,6 @@ 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', diff --git a/src/azure-cli-testsdk/setup.py b/src/azure-cli-testsdk/setup.py index cdc5a34be90..34d228b5de9 100644 --- a/src/azure-cli-testsdk/setup.py +++ b/src/azure-cli-testsdk/setup.py @@ -15,7 +15,6 @@ 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index caf3556e49f..b0c55538038 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -42,7 +42,6 @@ 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10',