@@ -43,14 +43,15 @@ stages:
43
43
vmImage : ubuntu-20.04
44
44
45
45
container :
46
- image : sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye :$(BUILD_BRANCH)
46
+ image : sonicdev-microsoft.azurecr.io:443/sonic-slave-bookworm :$(BUILD_BRANCH)
47
47
48
48
steps :
49
49
- script : |
50
50
set -ex
51
51
sudo apt-get update
52
52
sudo apt-get install -y python3-pip
53
53
sudo pip3 install requests==2.31.0
54
+ sudo apt-get install -y python3-protobuf
54
55
displayName: "Install dependencies"
55
56
56
57
- script : |
@@ -84,16 +85,15 @@ stages:
84
85
sudo dpkg -i libyang_1.0.73_amd64.deb
85
86
sudo dpkg -i libyang-cpp_1.0.73_amd64.deb
86
87
sudo dpkg -i python3-yang_1.0.73_amd64.deb
87
- sudo dpkg -i libprotobuf*.deb
88
- workingDirectory: $(Pipeline.Workspace)/target/debs/bullseye/
88
+ workingDirectory: $(Pipeline.Workspace)/target/debs/bookworm/
89
89
displayName: 'Install Debian dependencies'
90
90
91
91
- task : DownloadPipelineArtifact@2
92
92
inputs :
93
93
source : specific
94
94
project : build
95
95
pipeline : 9
96
- artifact : sonic-swss-common
96
+ artifact : sonic-swss-common-bookworm
97
97
runVersion : ' latestFromBranch'
98
98
runBranch : ' refs/heads/$(sourceBranch)'
99
99
displayName : " Download sonic swss common deb packages"
@@ -134,20 +134,22 @@ stages:
134
134
sudo pip3 install sonic_yang_models-1.0-py3-none-any.whl
135
135
sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl
136
136
sudo pip3 install sonic_platform_common-1.0-py3-none-any.whl
137
- workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bullseye /
137
+ workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bookworm /
138
138
displayName: 'Install Python dependencies'
139
139
140
140
- script : |
141
141
set -ex
142
142
# Install .NET CORE
143
143
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
144
- sudo apt-add-repository https://packages.microsoft.com/debian/11 /prod
144
+ sudo apt-add-repository https://packages.microsoft.com/debian/12 /prod
145
145
sudo apt-get update
146
146
sudo apt-get install -y dotnet-sdk-8.0
147
147
displayName: "Install .NET CORE"
148
148
149
149
- script : |
150
- python3 setup.py test
150
+ pip3 install ".[testing]"
151
+ pip3 uninstall --yes sonic-utilities
152
+ pytest
151
153
displayName: 'Test Python 3'
152
154
153
155
- task : PublishTestResults@2
@@ -167,7 +169,7 @@ stages:
167
169
168
170
- script : |
169
171
set -e
170
- python3 setup.py bdist_wheel
172
+ python3 -m build -n
171
173
displayName: 'Build Python 3 wheel'
172
174
173
175
- publish : ' $(System.DefaultWorkingDirectory)/dist/'
0 commit comments