Skip to content

Commit

Permalink
settle on 3.10 and eliminate warnings for exact specification. update…
Browse files Browse the repository at this point in the history
… the version of ubuntu that we're installing the python version from
  • Loading branch information
scbedd committed Feb 24, 2023
1 parent 48e5a63 commit d8edb78
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/apiview-review-gen-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parameters:

variables:
PythonIndexUrl: 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/'
PythonVersion: '3.10.9'
PythonVersion: '3.10'
ApiStubVersion: '0.3.5'

jobs:
Expand Down
10 changes: 1 addition & 9 deletions eng/pipelines/templates/stages/archetype-sdk-tool-python.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
- name: PythonVersion
type: string
default: '3.10.9'
default: '3.10'
- name: PackagePath
type: string
default: ''
Expand Down Expand Up @@ -39,14 +39,6 @@ stages:
python --version
pip install virtualenv aiohttp chardet trio setuptools wheel packaging
displayName: 'Setup Python Environment'
# # tried to link 8 to 7, but got permission denied.
# # find /usr/lib -name "libffi.so*"
# # ln -s /usr/lib/x86_64-linux-gnu/libffi.so.8 /usr/lib/x86_64-linux-gnu/libffi.so.7 (needs sudo)
# # apt install libffi-devel (needs sudo)
# - script: |
# ln -s /usr/lib/x86_64-linux-gnu/libffi.so.8 /usr/lib/x86_64-linux-gnu/libffi.so.7
# condition: and(succeeded(), eq(variables['Agent.OS'],'Linux'))
- pwsh: |
Write-Host "Bundling stable version of python api-stub-generator"
Expand Down
2 changes: 1 addition & 1 deletion packages/python-packages/api-stub-generator/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pr:
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-tool-python.yml
parameters:
PythonVersion: '3.10.2'
PythonVersion: '3.10'
PackagePath: 'packages/python-packages/api-stub-generator'
FeedName: 'public/azure-sdk-for-python'
ArtifactName: 'apiviewparserpython'
Expand Down
2 changes: 1 addition & 1 deletion scripts/python/util/install_python_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
MANIFEST_LOCATION = "https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json"

MAX_INSTALLER_RETRY = 3
CURRENT_UBUNTU_VERSION = "20.04" # full title is ubuntu-20.04
CURRENT_UBUNTU_VERSION = "22.04" # full title is ubuntu-20.04
MAX_PRECACHED_VERSION = (
"3.11.1" # reference: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md#python
)
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/APIView/apiview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pr:
- tools/apiview/parsers/js-api-parser

variables:
PythonVersion: '3.10.9'
PythonVersion: '3.10'
WebClientProjectDirectory: 'src/dotnet/APIView/APIViewWeb/Client'
WebProjectPath: 'src/dotnet/APIView/APIViewWeb/APIViewWeb.csproj'
NodeVersion: '18.x'
Expand Down

0 comments on commit d8edb78

Please sign in to comment.