Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/command_guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.9 ~ 3.13
- All code must support Python 3.10 ~ 3.13
- 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
2 changes: 1 addition & 1 deletion doc/debug/debug_in_vs_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.9+
* Python 3.10+
* Set up development environment [Link](https://github.com/Azure/azure-cli/blob/master/doc/configuring_your_machine.md)

## Quick start
Expand Down
4 changes: 2 additions & 2 deletions doc/extensions/authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ See [Extension Metadata](metadata.md) for more information.

### Test your extension on Python 3

- The Azure CLI supports Python 3.9 ~ 3.13 so verify that your extension does the same.
- The Azure CLI supports Python 3.10 ~ 3.13 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.9 -m venv env38` and `python3.10 -m venv env310`.
- e.g. `python3.13 -m venv env313`.
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The example shows only Python 3.13, but it would be more helpful to show multiple versions (e.g., both 3.10 and 3.13) to better illustrate testing across the supported version range, especially since the previous line mentions verifying support for all versions from 3.10 to 3.13.

Suggested change
- e.g. `python3.13 -m venv env313`.
- e.g. `python3.10 -m venv env310` and `python3.13 -m venv env313`.

Copilot uses AI. Check for mistakes.


Also, see the [FAQ](faq.md).
Expand Down
6 changes: 3 additions & 3 deletions doc/install_linux_prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Some native Linux packages are required when installing the CLI with:
- Interactive installation script
- `pip`

Current supported Python versions are Python 3.9 ~ 3.13.
Current supported Python versions are Python 3.10 ~ 3.13.

The commands to run to install the dependencies for some common distributions are listed below.

Expand All @@ -16,7 +16,7 @@ sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev
```

### RHEL 8, CentOS Stream 8, RHEL 9, CentOS Stream 9
Install the latest Python 3.9 available in the software repo.
Install the latest Python 3.12 available in the software repo.
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment suggests installing 'the latest Python 3.12' but the actual minimum version is 3.10 and maximum supported is 3.13. This should either say 'Install Python 3.12 or later' or 'Install Python 3.10 or later (3.12 recommended)' to be consistent with the supported version range stated earlier in the document.

Suggested change
Install the latest Python 3.12 available in the software repo.
Install Python 3.10 or later (3.12 recommended) available in the software repo.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Python 3.13 not available yet?

Copy link
Contributor Author

@bebound bebound Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.13 is not in the default repo yet. 3.12 is the latest version in RHEL.
Ref: https://access.redhat.com/support/policy/updates/rhel-app-streams-life-cycle

```
sudo dnf install -y gcc libffi-devel python39-devel openssl-devel
sudo dnf install -y gcc libffi-devel python312-devel openssl-devel
```
1 change: 0 additions & 1 deletion scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ CLASSIFIERS = [
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
Expand Down
3 changes: 1 addition & 2 deletions src/azure-cli-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
Expand Down Expand Up @@ -84,6 +83,6 @@
classifiers=CLASSIFIERS,
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "azure", "azure.cli"]),
install_requires=DEPENDENCIES,
python_requires='>=3.9.0',
python_requires='>=3.10.0',
package_data={'azure.cli.core': ['auth/landing_pages/*.html']}
)
1 change: 0 additions & 1 deletion src/azure-cli-telemetry/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
Expand Down
1 change: 0 additions & 1 deletion src/azure-cli-testsdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
Expand Down
3 changes: 1 addition & 2 deletions src/azure-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
Expand Down Expand Up @@ -180,7 +179,7 @@
],
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "azure", "azure.cli"]),
install_requires=DEPENDENCIES,
python_requires='>=3.9.0',
python_requires='>=3.10.0',
package_data={
'azure.cli.command_modules.acr': ['*.json'],
'azure.cli.command_modules.botservice': ['*.json', '*.config'],
Expand Down
Loading