@@ -129,9 +129,9 @@ jobs:
129
129
130
130
steps :
131
131
- task : UsePythonVersion@0
132
- displayName : ' Use Python 3.11 '
132
+ displayName : ' Use Python 3.12 '
133
133
inputs :
134
- versionSpec : 3.11
134
+ versionSpec : 3.12
135
135
136
136
- bash : ./scripts/ci/dependency_check.sh
137
137
displayName : ' Verify src/azure-cli/requirements.py3.Linux.txt'
@@ -144,9 +144,9 @@ jobs:
144
144
145
145
steps :
146
146
- task : UsePythonVersion@0
147
- displayName : ' Use Python 3.11 '
147
+ displayName : ' Use Python 3.12 '
148
148
inputs :
149
- versionSpec : 3.11
149
+ versionSpec : 3.12
150
150
151
151
- bash : ./scripts/ci/dependency_check.sh
152
152
displayName : ' Verify src/azure-cli/requirements.py3.Darwin.txt'
@@ -159,9 +159,9 @@ jobs:
159
159
160
160
steps :
161
161
- task : UsePythonVersion@0
162
- displayName : ' Use Python 3.11 '
162
+ displayName : ' Use Python 3.12 '
163
163
inputs :
164
- versionSpec : 3.11
164
+ versionSpec : 3.12
165
165
166
166
- task : BatchScript@1
167
167
inputs :
@@ -176,9 +176,9 @@ jobs:
176
176
name : ${{ variables.ubuntu_pool }}
177
177
steps :
178
178
- task : UsePythonVersion@0
179
- displayName : ' Use Python 3.11 '
179
+ displayName : ' Use Python 3.12 '
180
180
inputs :
181
- versionSpec : 3.11
181
+ versionSpec : 3.12
182
182
- template : .azure-pipelines/templates/azdev_setup.yml
183
183
- bash : |
184
184
set -ev
@@ -437,9 +437,9 @@ jobs:
437
437
name : ${{ variables.ubuntu_pool }}
438
438
steps :
439
439
- task : UsePythonVersion@0
440
- displayName : ' Use Python 3.11 '
440
+ displayName : ' Use Python 3.12 '
441
441
inputs :
442
- versionSpec : 3.11
442
+ versionSpec : 3.12
443
443
444
444
- task : PipAuthenticate@1
445
445
condition : eq(variables['Build.SourceBranch'], 'refs/heads/release')
@@ -469,7 +469,12 @@ jobs:
469
469
470
470
- job : TestPythonWheel
471
471
displayName : Test Python Wheels
472
-
472
+ strategy :
473
+ matrix :
474
+ Python39 :
475
+ python.version : ' 3.9'
476
+ Python312 :
477
+ python.version : ' 3.12'
473
478
dependsOn : BuildPythonWheel
474
479
condition : succeeded()
475
480
pool :
@@ -480,35 +485,23 @@ jobs:
480
485
inputs :
481
486
TargetPath : ' $(Build.ArtifactStagingDirectory)/metadata'
482
487
artifactName : metadata
483
-
484
-
485
488
- task : DownloadPipelineArtifact@1
486
489
displayName : ' Download PyPI Packages'
487
490
inputs :
488
491
TargetPath : ' $(Build.ArtifactStagingDirectory)/pypi'
489
492
artifactName : pypi
490
-
491
-
493
+ - task : UsePythonVersion@0
494
+ displayName : ' Use Python $(python.version)'
495
+ inputs :
496
+ versionSpec : ' $(python.version)'
492
497
- bash : |
493
498
#!/usr/bin/env bash
494
-
495
- # Verify the pip wheels
496
-
497
499
set -ex
498
500
499
501
CLI_VERSION=`cat $BUILD_ARTIFACTSTAGINGDIRECTORY/metadata/version`
500
- PYPI_FILES=$(cd $BUILD_ARTIFACTSTAGINGDIRECTORY/pypi; pwd)
501
-
502
- echo "== Testing pip install on Python 3.9 =="
503
- docker run \
504
- --rm -v $PYPI_FILES:/mnt/pypi mcr.microsoft.com/mirror/docker/library/python:3.9-slim \
505
- /bin/bash -c "cd /mnt/pypi && ls && pip install --find-links ./ azure_cli-$CLI_VERSION*whl && az self-test && az --version && sleep 5"
506
-
507
- echo "== Testing pip install on Python 3.11 =="
508
- docker run \
509
- --rm -v $PYPI_FILES:/mnt/pypi mcr.microsoft.com/mirror/docker/library/python:3.11-slim \
510
- /bin/bash -c "cd /mnt/pypi && ls && pip install --find-links ./ azure_cli-$CLI_VERSION*whl && az self-test && az --version && sleep 5"
511
-
502
+ echo "== Testing pip install on $PYTHON_VERSION =="
503
+ cd $BUILD_ARTIFACTSTAGINGDIRECTORY/pypi
504
+ pip install --find-links ./ azure_cli-$CLI_VERSION*whl && az self-test && az --version && sleep 5
512
505
displayName: 'Test pip Install'
513
506
514
507
- job : TestCore
@@ -520,8 +513,8 @@ jobs:
520
513
matrix :
521
514
Python39 :
522
515
python.version : ' 3.9'
523
- Python311 :
524
- python.version : ' 3.11 '
516
+ Python312 :
517
+ python.version : ' 3.12 '
525
518
steps :
526
519
- template : .azure-pipelines/templates/automation_test.yml
527
520
parameters :
@@ -537,8 +530,8 @@ jobs:
537
530
matrix :
538
531
Python39 :
539
532
python.version : ' 3.9'
540
- Python311 :
541
- python.version : ' 3.11 '
533
+ Python312 :
534
+ python.version : ' 3.12 '
542
535
steps :
543
536
- template : .azure-pipelines/templates/automation_test.yml
544
537
parameters :
@@ -557,14 +550,14 @@ jobs:
557
550
matrix :
558
551
Python39 :
559
552
python.version : ' 3.9'
560
- Python311 :
561
- python.version : ' 3.11 '
553
+ Python312 :
554
+ python.version : ' 3.12 '
562
555
steps :
563
556
- task : UsePythonVersion@0
564
557
displayName : ' Use Python $(python.version)'
565
558
inputs :
566
559
versionSpec : ' $(python.version)'
567
- - bash : pip install --upgrade pip wheel
560
+ - bash : pip install --upgrade pip wheel setuptools
568
561
displayName : ' Install pip and wheel'
569
562
- bash : ./scripts/ci/test_profile_integration.sh
570
563
displayName : ' Run Integration Test against Profiles'
@@ -578,15 +571,15 @@ jobs:
578
571
name : ${{ variables.ubuntu_pool }}
579
572
strategy :
580
573
matrix :
581
- Python311 :
582
- python.version : ' 3.11 '
574
+ Python312 :
575
+ python.version : ' 3.12 '
583
576
steps :
584
577
- task : UsePythonVersion@0
585
578
displayName : ' Use Python $(python.version)'
586
579
inputs :
587
580
versionSpec : ' $(python.version)'
588
- - bash : pip install --upgrade pip wheel
589
- displayName : ' Install pip and wheel'
581
+ - bash : pip install --upgrade pip wheel setuptools
582
+ displayName : ' Install pip and wheel setuptools '
590
583
- bash : ./scripts/ci/test_extensions.sh
591
584
displayName : ' Load extensions'
592
585
@@ -623,7 +616,7 @@ jobs:
623
616
-e CLI_VERSION=$CLI_VERSION \
624
617
-e HOMEBREW_UPSTREAM_URL=$HOMEBREW_UPSTREAM_URL \
625
618
--name azurecli \
626
- mcr.microsoft.com/mirror/docker/library/ python:3.11-slim \
619
+ mcr.microsoft.com/azurelinux/base/ python:3 \
627
620
/mnt/scripts/run.sh
628
621
629
622
# clean up
@@ -670,7 +663,7 @@ jobs:
670
663
set -ev
671
664
# Force relink [email protected] in Homebrew to resolve the conflict with pre-installed python 3.xx on macOS-12 image
672
665
# See: https://github.com/Azure/azure-cli/issues/29054
673
- python_version=3.11
666
+ python_version=3.12
674
667
brew unlink python@$python_version && brew link --overwrite python@$python_version
675
668
676
669
echo == Remove pre-installed azure-cli ==
@@ -1050,9 +1043,9 @@ jobs:
1050
1043
name : ${{ variables.ubuntu_pool }}
1051
1044
steps :
1052
1045
- task : UsePythonVersion@0
1053
- displayName : ' Use Python 3.11 '
1046
+ displayName : ' Use Python 3.12 '
1054
1047
inputs :
1055
- versionSpec : 3.11
1048
+ versionSpec : 3.12
1056
1049
- template : .azure-pipelines/templates/azdev_setup.yml
1057
1050
- bash : |
1058
1051
set -ev
@@ -1066,9 +1059,9 @@ jobs:
1066
1059
name : ${{ variables.ubuntu_pool }}
1067
1060
steps :
1068
1061
- task : UsePythonVersion@0
1069
- displayName : ' Use Python 3.11 '
1062
+ displayName : ' Use Python 3.12 '
1070
1063
inputs :
1071
- versionSpec : 3.11
1064
+ versionSpec : 3.12
1072
1065
- template : .azure-pipelines/templates/azdev_setup.yml
1073
1066
- bash : |
1074
1067
set -ev
@@ -1083,8 +1076,8 @@ jobs:
1083
1076
matrix :
1084
1077
Python39 :
1085
1078
python.version : ' 3.9'
1086
- Python311 :
1087
- python.version : ' 3.11 '
1079
+ Python312 :
1080
+ python.version : ' 3.12 '
1088
1081
pool :
1089
1082
name : ${{ variables.ubuntu_pool }}
1090
1083
steps :
@@ -1112,9 +1105,9 @@ jobs:
1112
1105
name : ${{ variables.ubuntu_pool }}
1113
1106
steps :
1114
1107
- task : UsePythonVersion@0
1115
- displayName : ' Use Python 3.11 '
1108
+ displayName : ' Use Python 3.12 '
1116
1109
inputs :
1117
- versionSpec : 3.11
1110
+ versionSpec : 3.12
1118
1111
- template : .azure-pipelines/templates/azdev_setup.yml
1119
1112
- bash : |
1120
1113
set -ev
@@ -1135,9 +1128,9 @@ jobs:
1135
1128
name : ${{ variables.ubuntu_pool }}
1136
1129
steps :
1137
1130
- task : UsePythonVersion@0
1138
- displayName : ' Use Python 3.11 '
1131
+ displayName : ' Use Python 3.12 '
1139
1132
inputs :
1140
- versionSpec : 3.11
1133
+ versionSpec : 3.12
1141
1134
- template : .azure-pipelines/templates/azdev_setup.yml
1142
1135
- bash : |
1143
1136
set -ev
@@ -1163,9 +1156,9 @@ jobs:
1163
1156
name : ${{ variables.ubuntu_pool }}
1164
1157
steps :
1165
1158
- task : UsePythonVersion@0
1166
- displayName : ' Use Python 3.11 '
1159
+ displayName : ' Use Python 3.12 '
1167
1160
inputs :
1168
- versionSpec : 3.11
1161
+ versionSpec : 3.12
1169
1162
- template : .azure-pipelines/templates/azdev_setup.yml
1170
1163
- bash : |
1171
1164
set -ev
@@ -1253,9 +1246,9 @@ jobs:
1253
1246
name : ${{ variables.ubuntu_pool }}
1254
1247
steps :
1255
1248
- task : UsePythonVersion@0
1256
- displayName : ' Use Python 3.11 '
1249
+ displayName : ' Use Python 3.12 '
1257
1250
inputs :
1258
- versionSpec : 3.11
1251
+ versionSpec : 3.12
1259
1252
- task : AzureCLI@2
1260
1253
inputs :
1261
1254
azureSubscription : ' Azure CLI'
0 commit comments