Skip to content

Commit

Permalink
update pipline python version from 3.8 to 3.12 (microsoft#22517)
Browse files Browse the repository at this point in the history
### Description
As the python3.8 is going to reach EOL. 

https://discuss.python.org/t/python-3-13-0-final-has-been-released/
https://discuss.python.org/t/python-3-8-is-now-officially-eol/66983

we update our ci pipeline python version which still using 3.8 to 3.12
  • Loading branch information
kailums authored Oct 21, 2024
1 parent 60da4a2 commit 3174e3d
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stages:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: x64

Expand Down
6 changes: 3 additions & 3 deletions tools/ci_build/github/azure-pipelines/post-merge-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ stages:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: x64

Expand Down Expand Up @@ -411,7 +411,7 @@ stages:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.9"
versionSpec: "3.12"
addToPath: true
architecture: "x64"

Expand Down Expand Up @@ -447,7 +447,7 @@ stages:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.9"
versionSpec: "3.12"
addToPath: true
architecture: "x64"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ stages:
- task: UsePythonVersion@0
displayName: 'Use Python'
inputs:
versionSpec: 3.8
versionSpec: 3.12

- task: MSBuild@1
displayName: 'Build Nuget Packages'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ stages:
- task: UsePythonVersion@0
displayName: 'Use Python'
inputs:
versionSpec: 3.8
versionSpec: 3.12

- task: MSBuild@1
displayName: 'Build Nuget Packages'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ stages:
- task: UsePythonVersion@0
displayName: 'Use Python'
inputs:
versionSpec: 3.8
versionSpec: 3.12

- task: MSBuild@1
displayName: 'Build Nuget Packages'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
displayName: 'Checkout submodules'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: $(buildArch)
- template: download-deps.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ stages:
- task: UsePythonVersion@0
displayName: 'Use Python'
inputs:
versionSpec: 3.8
versionSpec: 3.12

- task: MSBuild@1
displayName: 'Build Nuget Packages'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stages:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
versionSpec: '3.12'
addToPath: true

- template: set-version-number-variables-step.yml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
QnnSdk: '2.27.0.240926'
build_config: 'RelWithDebInfo'
build_config: 'RelWithDebInfo'
IsReleaseBuild: false
DoEsrp: false
qnn_ep_build_pool_name: 'Onnxruntime-QNNEP-Windows-2022-CPU'
Expand Down Expand Up @@ -32,9 +32,9 @@ stages:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true

- template: jobs/download_win_qnn_sdk.yml
parameters:
QnnSDKVersion: ${{ parameters.QnnSdk }}
Expand All @@ -44,7 +44,7 @@ stages:
inputs:
scriptPath: '$(Build.SourcesDirectory)\tools\ci_build\build.py'
arguments: '--use_qnn --qnn_home $(QnnSDKRootDir) $(commonBuildArgs)'

- task: VSBuild@1
displayName: 'Build onnxruntime'
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ parameters:
displayName: 'Stage that the initial stage of react-native-ci depends on'
type: string
default: ''

- name: enable_code_sign
displayName: Use GPG to sign the jars
type: boolean
Expand Down Expand Up @@ -58,9 +58,9 @@ stages:
steps:
- template: use-xcode-version.yml
- task: UsePythonVersion@0
displayName: Use python 3.9
displayName: Use python 3.12
inputs:
versionSpec: "3.9"
versionSpec: "3.12"
addToPath: true
architecture: "x64"

Expand Down Expand Up @@ -113,9 +113,9 @@ stages:
condition: always()
- template: use-xcode-version.yml
- task: UsePythonVersion@0
displayName: Use python 3.9
displayName: Use python 3.12
inputs:
versionSpec: "3.9"
versionSpec: "3.12"
addToPath: true
architecture: "x64"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ stages:

- task: UsePythonVersion@0
inputs:
versionSpec: "3.9"
versionSpec: "3.12"
addToPath: true
architecture: "x64"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ steps:
- task: UsePythonVersion@0
displayName: 'Use Python'
inputs:
versionSpec: 3.8
versionSpec: 3.12

- task: PythonScript@0
displayName: 'Validate Package'
inputs:
scriptPath: '${{parameters.ScriptPath}}'
arguments: '--package_type ${{parameters.PackageType}} --package_name ${{parameters.PackageName}} --package_path ${{parameters.PackagePath}} --platforms_supported ${{parameters.PlatformsSupported}} --verify_nuget_signing ${{parameters.VerifyNugetSigning}}'
workingDirectory: ${{parameters.workingDirectory}}
workingDirectory: ${{parameters.workingDirectory}}
4 changes: 2 additions & 2 deletions tools/ci_build/github/azure-pipelines/templates/win-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ stages:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: ${{ parameters.buildArch }}

Expand Down Expand Up @@ -397,4 +397,4 @@ stages:
parameters:
msbuildPlatform: ${{ parameters.msbuildPlatform }}
java_artifact_id: ${{ parameters.java_artifact_id }}
buildOnly: false
buildOnly: false
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
displayName: 'Checkout submodules'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: $(buildArch)
- task: NodeTool@0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: $(buildArch)

Expand Down

0 comments on commit 3174e3d

Please sign in to comment.