Skip to content

Commit 8032b0a

Browse files
authored
Merge pull request #362 from yejianquan/jianquanye/202405-msft-gcu-wheel-package
[202405] Add GCU standalone wheel package (backport of #4310)
2 parents bb48360 + ea5b648 commit 8032b0a

8 files changed

Lines changed: 1821 additions & 1 deletion

File tree

azure-pipelines.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,13 @@ stages:
151151
- publish: '$(System.DefaultWorkingDirectory)/dist/'
152152
artifact: wheels
153153
displayName: "Publish Python wheels"
154+
155+
- script: |
156+
set -e
157+
pushd generic_config_updater
158+
python3 setup.py bdist_wheel
159+
displayName: 'Build Python 3 wheel for GCU'
160+
161+
- publish: '$(System.DefaultWorkingDirectory)/generic_config_updater/dist/'
162+
artifact: gcu_wheels
163+
displayName: "Publish Python wheels for GCU"

generic_config_updater/.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[run]
2+
branch = True
3+
source = generic_config_updater
4+
omit =
5+
.eggs/*
6+
tests/*

generic_config_updater/field_operation_validators.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
from sonic_py_common import device_info
77
from .gu_common import GenericConfigUpdaterError
88
from swsscommon import swsscommon
9-
from utilities_common.constants import DEFAULT_SUPPORTED_FECS_LIST
9+
10+
# Default FEC modes when STATE_DB does not advertise supported_fecs for a port.
11+
# Kept local to avoid pulling utilities_common into the GCU wheel.
12+
# NOTE: A duplicate of this list exists in utilities_common/constants.py.
13+
# If you update this list, update that copy too.
14+
DEFAULT_SUPPORTED_FECS_LIST = ['rs', 'fc', 'none', 'auto']
1015

1116
STATE_DB_NAME = 'STATE_DB'
1217
REDIS_TIMEOUT_MSECS = 0

0 commit comments

Comments
 (0)