Skip to content

Commit 2aa3595

Browse files
generate docs with py3.11 to match doc team's build (#34035)
* generate docs with py3.11 to match doc team's build * prep environment * try 3.11 upstream step
1 parent f8288bc commit 2aa3595

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

eng/pipelines/generate-all-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
trigger: none
22

33
variables:
4-
PythonVersion: '3.6'
4+
PythonVersion: '3.11'
55

66
jobs:
77
- job: 'Generate_Individual_Package_Documentation'

eng/pipelines/templates/stages/python-analyze-weekly.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ stages:
8787
env:
8888
GH_TOKEN: $(azuresdk-github-pat)
8989

90+
- task: UsePythonVersion@0
91+
displayName: 'Use Python 3.11 for docs generation'
92+
inputs:
93+
versionSpec: '3.11'
94+
95+
- script: |
96+
python -m pip install setuptools==58.3.0
97+
python -m pip install -r eng/ci_tools.txt
98+
displayName: 'Prep Environment'
99+
90100
- task: PythonScript@0
91101
displayName: 'Generate Docs'
92102
continueOnError: true

eng/pipelines/templates/steps/build-extended-artifacts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ steps:
4343
condition: and(eq(variables['Build.SourceBranchName'], variables['DefaultBranch']), eq(variables['Build.Reason'],'Schedule'))
4444
4545
- task: UsePythonVersion@0
46-
displayName: 'Use Python $(PythonVersion)'
46+
displayName: 'Use Python 3.11'
4747
inputs:
48-
versionSpec: $(PythonVersion)
48+
versionSpec: '3.11'
4949

5050
- script: |
5151
python -m pip install setuptools==58.3.0

0 commit comments

Comments
 (0)