diff --git a/doc/command_guidelines.md b/doc/command_guidelines.md index ff2b24dfdeb..a25b1e0d1a6 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.8 ~ 3.12 +- All code must support Python 3.9 ~ 3.12 - 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 0419da7ed65..89d01ae3b27 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=ms-python.python) -* Python 3.8+ +* Python 3.9+ * 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 e259d1d6761..d84b3ff80b1 100644 --- a/doc/extensions/authoring.md +++ b/doc/extensions/authoring.md @@ -130,9 +130,9 @@ See [Extension Metadata](metadata.md) for more information. ### Test your extension on Python 3 -- The Azure CLI supports Python 3.8 ~ 3.12 so verify that your extension does the same. +- The Azure CLI supports Python 3.9 ~ 3.12 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.8 -m venv env38` and `python3.10 -m venv env310`. +- e.g. `python3.9 -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 4a72da6ca90..642e35d9633 100644 --- a/doc/install_linux_prerequisites.md +++ b/doc/install_linux_prerequisites.md @@ -6,11 +6,11 @@ Some native Linux packages are required when installing the CLI with: - Interactive installation script - `pip` -Current supported Python versions are Python 3.8 ~ 3.10. +Current supported Python versions are Python 3.9 ~ 3.12. 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, Debian 11 +### Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Debian 11, Debian 12 ``` sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential ``` @@ -20,13 +20,3 @@ 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.8+ if needed. -``` -sudo zypper refresh && sudo zypper --non-interactive install gcc libffi-devel python-devel openssl-devel -``` - -### Flatcar - -Python is installed in the Azure-specific distribution of Flatcar, but is installed into the non-standard location `/usr/share/oem/python/bin/python`. diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index 706992fe4a5..321933e0d80 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.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', diff --git a/src/azure-cli-core/setup.py b/src/azure-cli-core/setup.py index 084eab31df2..e3f299d2c26 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.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', @@ -82,6 +81,6 @@ classifiers=CLASSIFIERS, packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "azure", "azure.cli"]), install_requires=DEPENDENCIES, - python_requires='>=3.8.0', + python_requires='>=3.9.0', package_data={'azure.cli.core': ['auth/landing_pages/*.html']} ) diff --git a/src/azure-cli-telemetry/setup.py b/src/azure-cli-telemetry/setup.py index d188fa71f95..26a3c9c746b 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.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', diff --git a/src/azure-cli-testsdk/setup.py b/src/azure-cli-testsdk/setup.py index 4f567ef6705..331300aaac6 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.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 6439c937e7b..ba13fba8ec6 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.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', @@ -178,7 +177,7 @@ ], packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "azure", "azure.cli"]), install_requires=DEPENDENCIES, - python_requires='>=3.8.0', + python_requires='>=3.9.0', package_data={ 'azure.cli.command_modules.acr': ['*.json'], 'azure.cli.command_modules.botservice': ['*.json', '*.config'],