Skip to content

Commit 6f2b925

Browse files
authored
[Packaging] Support Python 3.12 (Azure#29465)
1 parent 9cb98aa commit 6f2b925

File tree

8 files changed

+51
-7
lines changed

8 files changed

+51
-7
lines changed

.azure-pipelines/breaking-change-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
fetchTags: true
2323
persistCredentials: true
2424
- task: UsePythonVersion@0
25-
displayName: 'Use Python 3.10'
25+
displayName: 'Use Python 3.11'
2626
inputs:
27-
versionSpec: 3.10
27+
versionSpec: 3.11
2828
- template: ${{ variables.Pipeline.Workspace }}/.azure-pipelines/templates/azdev_setup.yml
2929
- bash: |
3030
set -ev

azure-pipelines-full-tests.yml

+40
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
python.version: '3.9'
2828
Python311:
2929
python.version: '3.11'
30+
Python312:
31+
python.version: '3.12'
3032
steps:
3133
- template: .azure-pipelines/templates/automation_test.yml
3234
parameters:
@@ -46,6 +48,8 @@ jobs:
4648
python.version: '3.9'
4749
Python311:
4850
python.version: '3.11'
51+
Python312:
52+
python.version: '3.12'
4953
steps:
5054
- template: .azure-pipelines/templates/automation_test.yml
5155
parameters:
@@ -65,6 +69,8 @@ jobs:
6569
python.version: '3.9'
6670
Python311:
6771
python.version: '3.11'
72+
Python312:
73+
python.version: '3.12'
6874
steps:
6975
- template: .azure-pipelines/templates/automation_test.yml
7076
parameters:
@@ -141,6 +147,40 @@ jobs:
141147
fullTest: true
142148
jobName: 'FullTest'
143149

150+
- job: AutomationFullTestPython312ProfileLatest
151+
displayName: Automation Full Test Python312 Profile Latest
152+
timeoutInMinutes: 9999
153+
strategy:
154+
maxParallel: 8
155+
matrix:
156+
instance1:
157+
Instance_idx: 1
158+
instance2:
159+
Instance_idx: 2
160+
instance3:
161+
Instance_idx: 3
162+
instance4:
163+
Instance_idx: 4
164+
instance5:
165+
Instance_idx: 5
166+
instance6:
167+
Instance_idx: 6
168+
instance7:
169+
Instance_idx: 7
170+
instance8:
171+
Instance_idx: 8
172+
pool:
173+
name: ${{ variables.ubuntu_pool }}
174+
steps:
175+
- template: .azure-pipelines/templates/automation_test.yml
176+
parameters:
177+
pythonVersion: '3.12'
178+
profile: 'latest'
179+
instance_cnt: '8'
180+
instance_idx: '$(Instance_idx)'
181+
fullTest: true
182+
jobName: 'FullTest'
183+
144184
- job: NotifyCIErrors
145185
dependsOn:
146186
- AutomationTest20200901

doc/command_guidelines.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ Follow the [Error Handling Guidelines](https://github.com/Azure/azure-cli/blob/d
426426

427427
## Coding Practices
428428

429-
- All code must support Python 3.8 ~ 3.10
429+
- All code must support Python 3.8 ~ 3.12
430430
- PRs to Azure/azure-cli and Azure/azure-cli-extensions must pass CI
431431
- Code must pass style checks with pylint and pep8
432432
- (*) All commands should have tests

scripts/regression_test/regression_test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
steps:
2121
- task: UsePythonVersion@0
2222
inputs:
23-
versionSpec: '3.10'
24-
displayName: "Use Python 3.10"
23+
versionSpec: '3.11'
24+
displayName: "Use Python 3.11"
2525
- task: AzureCLI@1
2626
displayName: 'update version'
2727
inputs:
@@ -88,8 +88,8 @@ jobs:
8888
steps:
8989
- task: UsePythonVersion@0
9090
inputs:
91-
versionSpec: '3.10'
92-
displayName: "Use Python 3.10"
91+
versionSpec: '3.11'
92+
displayName: "Use Python 3.11"
9393
- task: AzureCLI@1
9494
displayName: 'Checkout Target Branch'
9595
inputs:

src/azure-cli-core/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
'Programming Language :: Python :: 3.9',
4040
'Programming Language :: Python :: 3.10',
4141
'Programming Language :: Python :: 3.11',
42+
'Programming Language :: Python :: 3.12',
4243
'License :: OSI Approved :: MIT License',
4344
]
4445

src/azure-cli-telemetry/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'Programming Language :: Python :: 3.9',
2121
'Programming Language :: Python :: 3.10',
2222
'Programming Language :: Python :: 3.11',
23+
'Programming Language :: Python :: 3.12',
2324
'License :: OSI Approved :: MIT License',
2425
]
2526

src/azure-cli-testsdk/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
'Programming Language :: Python :: 3.9',
2020
'Programming Language :: Python :: 3.10',
2121
'Programming Language :: Python :: 3.11',
22+
'Programming Language :: Python :: 3.12',
2223
'License :: OSI Approved :: MIT License',
2324
]
2425

src/azure-cli/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
'Programming Language :: Python :: 3.9',
4747
'Programming Language :: Python :: 3.10',
4848
'Programming Language :: Python :: 3.11',
49+
'Programming Language :: Python :: 3.12',
4950
'License :: OSI Approved :: MIT License',
5051
]
5152

0 commit comments

Comments
 (0)