openubmc-bingo 0.6.43__py3-none-any.whl → 0.6.48__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of openubmc-bingo might be problematic. Click here for more details.

bmcgo/__init__.py CHANGED
@@ -9,4 +9,4 @@
9
9
  # MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
10
  # See the Mulan PSL v2 for more details.
11
11
 
12
- __version__ = '0.6.43'
12
+ __version__ = '0.6.48'
bmcgo/cli/cli.py CHANGED
@@ -374,12 +374,6 @@ class Command(object):
374
374
  if not match:
375
375
  continue
376
376
  import semver
377
- # 临时兼容性措施,强制使用conan1构建
378
- # 背景:开源组件初期未获取平台conan2.0支持,只能构建出conan1的包,但为了上库conan2.0的构建脚本
379
- # 需要提供一个标记用于临时指示强制使用conan1构建
380
- # 待平台版本正式上线后,删除1.60.0判断
381
- if semver.satisfies("1.60.0", match[1]):
382
- break
383
377
  if semver.satisfies("2.13.0", match[1]):
384
378
  need_conan_v2 = True
385
379
  break
@@ -134,7 +134,7 @@ class CodeGen(object):
134
134
  package = self.get_mdb_interface_package()
135
135
  cmd = ["conan", "install", f"--requires={package}", f"-of={temp_dir}", "--build=missing", "-d", "direct_deploy",
136
136
  f"--deployer-folder={temp_dir}"]
137
- cmd += ["-pr=profile.dt.ini"]
137
+ cmd += ["-pr=profile.dt.ini", "-pr:b=profile.dt.ini"]
138
138
  if self.remote:
139
139
  cmd += ["-r", self.remote]
140
140
  subprocess.call(cmd)
@@ -153,7 +153,7 @@ class CodeGen(object):
153
153
 
154
154
  cmd = ["conan", "install", f"--requires={package}", f"-of={temp_dir}", "--build=missing", "-d", "direct_deploy",
155
155
  "--update", f"--deployer-folder={temp_dir}"]
156
- cmd += ["-pr=profile.dt.ini"]
156
+ cmd += ["-pr=profile.dt.ini", "-pr:b=profile.dt.ini"]
157
157
  if self.remote:
158
158
  cmd += ["-r", self.remote]
159
159
 
@@ -206,12 +206,11 @@ class DbLuaUtils(Base, Utils):
206
206
  return result + "}"
207
207
  value_name = Utils(self.data, self.options).enum_value_name(types["name"], d_val)
208
208
  return f'{types["package"]}.{types["name"]}.{value_name}'
209
- if Utils.get_lua_codegen_version() >= 10:
210
- if prop.get('repeated') and not isinstance(d_val, list):
211
- raise RuntimeError(f"model.json中类{class_name}的属性{prop['name']}默认值{d_val}类型与属性类型不一致")
212
- if isinstance(d_val, list) or isinstance(d_val, dict):
213
- json_str = json.dumps(d_val).replace("'", "''")
214
- return f"[['{json_str}']]"
209
+ if prop.get('repeated') and not isinstance(d_val, list):
210
+ raise RuntimeError(f"model.json中类{class_name}的属性{prop['name']}默认值{d_val}类型与属性类型不一致")
211
+ if isinstance(d_val, list) or isinstance(d_val, dict):
212
+ json_str = json.dumps(d_val).replace("'", "''")
213
+ return f"[['{json_str}']]"
215
214
  if type_name == "string" or type_name == 'bytes':
216
215
  return f'"\'{d_val}\'"'
217
216
  if type_name == "bool":
@@ -368,8 +368,8 @@ class ConanBase(ConanFile):
368
368
  asan_flags = "-fsanitize=address -fsanitize-recover=address,all -fno-omit-frame-pointer -fno-stack-protector -O0"
369
369
  tc.extra_cflags.append(asan_flags)
370
370
  tc.extra_cxxflags.append(asan_flags)
371
- tc.extra_sharedlinkflag.append("LDFLAGS", "-fsanitize=address")
372
- tc.extra_exelinkflag.append("LDFLAGS", "-fsanitize=address")
371
+ tc.extra_sharedlinkflags.append("-fsanitize=address")
372
+ tc.extra_exelinkflags.append("-fsanitize=address")
373
373
 
374
374
  # GCOV 标志设置
375
375
  if self.options.get_safe("gcov", False):
bmcgo/utils/config.py CHANGED
@@ -811,19 +811,17 @@ class Config:
811
811
  if os.path.isdir(self.temp_platform_build_dir):
812
812
  shutil.rmtree(self.temp_platform_build_dir)
813
813
  os.makedirs(os.path.join(self.code_path, "temp"), exist_ok=True)
814
- mainfest_buildtools_file = os.path.realpath(os.path.join(
815
- self.code_path, self.get_manufacture_config("base/dependency_buildtools")
816
- ))
817
- temp_buildtools_file = os.path.realpath(os.path.join(
818
- self.temp_platform_build_dir, self.get_manufacture_config("base/dependency_buildtools")
819
- ))
820
814
  tools.run_command(f"cp -rf {package_conan_dir} {self.temp_platform_build_dir}")
821
- if self.manifest_sdk_flag:
822
- if os.path.isfile(mainfest_buildtools_file):
823
- tools.run_command(f"cp {mainfest_buildtools_file} {os.path.dirname(temp_buildtools_file)}")
815
+ # 检查产品是否申明dependency_buildtools配置项,如果存在则需要复制到platform临时目录
816
+ build_tools = self.get_manufacture_config("base/dependency_buildtools")
817
+ if build_tools:
818
+ manifest_buildtools_file = os.path.realpath(os.path.join(self.code_path, build_tools))
819
+ temp_buildtools_file = os.path.realpath(os.path.join(self.temp_platform_build_dir, build_tools))
820
+ if os.path.isfile(manifest_buildtools_file):
821
+ tools.run_command(f"cp {manifest_buildtools_file} {os.path.dirname(temp_buildtools_file)}")
824
822
  else:
825
- raise errors.BmcGoException("manifest.yaml中未配置base/dependency_buildtools" +
826
- "或在manifest代码仓下无法找到所配置的文件")
823
+ raise errors.BmcGoException("manifest.yaml中配置的 base/dependency_buildtools文件 " +
824
+ f"'{manifest_buildtools_file}'不存在")
827
825
  self.copy_rtos_sdk(package_conan_dir)
828
826
  platform_manifest_path = os.path.join(
829
827
  self.temp_platform_build_dir, "manifest.yml"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openubmc-bingo
3
- Version: 0.6.43
3
+ Version: 0.6.48
4
4
  Summary: Tools provided by openubmc
5
5
  Home-page: https://openubmc.cn
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,4 +1,4 @@
1
- bmcgo/__init__.py,sha256=BJa5lG5w1ONn8K63XashMcH9wCq2YZOssQ7u8IX48_A,562
1
+ bmcgo/__init__.py,sha256=zNLxZCPEhBXktWdUgwGoCSS4a83Mu_1gVP-esK_r0YY,562
2
2
  bmcgo/bmcgo.py,sha256=uD4TsfjrFB5aQPIS6WRUVc9ShXX-dSImY9ezkB13g1w,685
3
3
  bmcgo/bmcgo_config.py,sha256=-HZcTsnccE5wUsgGJ59kq8sDdu8feftIbpyoFvyvBhU,11264
4
4
  bmcgo/errors.py,sha256=QW1ndrJcJ2Ws7riOznPKVvZsNlrYk73eZol7w8gJTPU,3076
@@ -7,7 +7,7 @@ bmcgo/logger.py,sha256=rcMqJnyQ5Ag3k04KLEskrG8ZJ508OOU_JH4fMFiGOqQ,6644
7
7
  bmcgo/misc.py,sha256=w0vzsD7uzrsxTly5Y1viLgYTKHhLP4sxa499XwbqHnU,6986
8
8
  bmcgo/worker.py,sha256=OXz5Gam3pmZjgQeoGJrYy73ZrQszCOxk9X19nbeBI_A,15710
9
9
  bmcgo/cli/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
10
- bmcgo/cli/cli.py,sha256=cPkTL0xwikjcfkT4UGQqNz9EUFkzli1_O2SwbYO2hgs,27859
10
+ bmcgo/cli/cli.py,sha256=REX_9QUHPEyrYEQ3BU10py4nssIXkaK0XEpAcY6KejM,27398
11
11
  bmcgo/cli/config.conan2.yaml,sha256=SAtM_6_qOjZbkgUT5fzWbhbq4aWCayqE8o4xJ2vBRww,261
12
12
  bmcgo/cli/config.yaml,sha256=tbnFhz2TTrl2-ALpHHujbXB1ymZpjGC4f0zTfqfUZfM,194
13
13
  bmcgo/codegen/__init__.py,sha256=eplRBfR_obzVWMQtIeX1RRq6DOEezBx_l1EqcZYLRPM,775
@@ -35,7 +35,7 @@ bmcgo/codegen/c/template/server.h.mako,sha256=hZg1U64YKtlUm4wuKRobhjGW8e7rzFu9xg
35
35
  bmcgo/codegen/lua/.lua-format,sha256=h6RLqe84SjDqKO1mqoCW7XVtrAwDMTRM1Rj8nwzPGwQ,188
36
36
  bmcgo/codegen/lua/Makefile,sha256=wliuAhxhChrpsTnWuOlje3gtW2KRqayIhGRYBkvFi-c,3304
37
37
  bmcgo/codegen/lua/__init__.py,sha256=2yU9vzUVQmMJ0qBtNJ-AfKpnOzYZo4wAxlRnpFwgE7M,521
38
- bmcgo/codegen/lua/codegen.py,sha256=Ka2ZCkbhkB9b8QwMSE7tMPI9argikmWmbFm_YrTuRkY,11222
38
+ bmcgo/codegen/lua/codegen.py,sha256=aJQ_mA_5RweGsuHWdd5a7zRPLc5rTs0Rl44QpPysxjo,11270
39
39
  bmcgo/codegen/lua/proto/Makefile,sha256=rS4nEBwWJEDYAb5XN9S7SfII7RMFb071jh0eh_KJePo,3098
40
40
  bmcgo/codegen/lua/proto/ipmi_types.proto,sha256=BX09mymhhPkWqZE1UCVJACpLBeQh1vQN31oBRVVieFY,377
41
41
  bmcgo/codegen/lua/proto/types.proto,sha256=_X8JCKZCvO6PfWh6tuWcEqKHROrh46rCZab-OCkfirA,1162
@@ -84,7 +84,7 @@ bmcgo/codegen/lua/script/loader/redfish_loader.py,sha256=k7SUKN0I4Fc6uTugeOsPP0c
84
84
  bmcgo/codegen/lua/script/render_utils/__init__.py,sha256=elQAJchs3xUIE2sb3mQj_MFfHZJ_u89C-D77us90PHM,2256
85
85
  bmcgo/codegen/lua/script/render_utils/client_lua.py,sha256=SSbE4kLLyRWPKxUMiMfWP-nZASEnAsnlzR4u1AuZIuc,3519
86
86
  bmcgo/codegen/lua/script/render_utils/controller_lua.py,sha256=bgMXd6beOiL0Xm4rK3x09_GjaJJcDBMkt8ya0gHIqz0,2352
87
- bmcgo/codegen/lua/script/render_utils/db_lua.py,sha256=SHhuoIMvN0dPplUODfvu3qCDBtgP9QmnUvjLPQEjoTk,7865
87
+ bmcgo/codegen/lua/script/render_utils/db_lua.py,sha256=pbA1PfuTBuGzvEixNRGz8hQAkTV1JkvCXNtQzGZNGBg,7795
88
88
  bmcgo/codegen/lua/script/render_utils/error_lua.py,sha256=CW9g-HPADf42zfzLSA6PW-0O_IchDKMyjztANGiIHC8,5928
89
89
  bmcgo/codegen/lua/script/render_utils/ipmi_lua.py,sha256=jZ98qP_gJi6dAU40OmDr_J2c49MzTPCC68Bh1sg7OFo,4997
90
90
  bmcgo/codegen/lua/script/render_utils/ipmi_message_lua.py,sha256=Y-5pXMfAPDZqqoA9spkk80UHr63S6Z35gDeyAcu1tnc,1021
@@ -190,7 +190,7 @@ bmcgo/component/coverage/c_incremental_cov_report.template,sha256=FPhK1DZtmWsjDx
190
190
  bmcgo/component/coverage/incremental_cov.py,sha256=Uf-UdY4CW9rpP4sbURkCXBWyYMXWaG3R1Pyo3cDNvcQ,16859
191
191
  bmcgo/component/template/conanbase.py.mako,sha256=dNvbToMSYI7jod7maCpR0PBizvVoQHvXxglmN9LNflg,10984
192
192
  bmcgo/component/template/conanfile.deploy.py.mako,sha256=zpxluBjUFmJHfFrnBknxZ3cv3cxcqzJuGh2eN0uMXZA,889
193
- bmcgo/component/template_v2/conanbase.py.mako,sha256=FA_oKwp3fVC2MsZLiTZWHVeLpLEGkoRYmqhWWZ7EQM4,15768
193
+ bmcgo/component/template_v2/conanbase.py.mako,sha256=H0yO-uijpENtujj_1u037U2mZyy_ykdkV9hkj3mFuV4,15748
194
194
  bmcgo/component/template_v2/conanfile.deploy.py.mako,sha256=Xbd-PlfVHOWeRFLfvzINeykiZzzSHsgO_yUUvYrKqTw,512
195
195
  bmcgo/functional/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
196
196
  bmcgo/functional/analysis.py,sha256=pXakxSojBH-dULngbmgMHR3bq9tphOaAN4euGKgEYoc,4016
@@ -245,7 +245,7 @@ bmcgo/utils/build_conans.py,sha256=3afY0XOwFtfcKud2yp6nODIuPoMKjjsoAl5AV8GbJ6w,8
245
245
  bmcgo/utils/combine_json_schemas.py,sha256=08JrAlLeo_JgUqzYcZNgSwJZPLfjbWVJ4esPPt9bPMY,7967
246
246
  bmcgo/utils/component_post.py,sha256=rTSMv36geI6rbm6ZFQenZfG0mn1nVPpdJqn7g8bYtKA,2330
247
247
  bmcgo/utils/component_version_check.py,sha256=nKfav7EnJ_JWfCvH_SiyhhIapGXUzhFs1QvLb58MPBs,6266
248
- bmcgo/utils/config.py,sha256=RMrZV39x6q445LdCDnCM1CIoslrIy9FGN4Kp6uV3VRM,50915
248
+ bmcgo/utils/config.py,sha256=QFhPR_ndHLrEcdhFP4X8zRNChEl8cIw4rC2W1wQqaec,50989
249
249
  bmcgo/utils/fetch_component_code.py,sha256=WtPJ5h1nM87X6RicrAhMOJzOzh9A0jD3CbjPc4A-REo,11280
250
250
  bmcgo/utils/install_manager.py,sha256=XMZUuIHm7_DWRdLV4dAevsyamQ6rt8lb_7OqGWzNBC8,4927
251
251
  bmcgo/utils/json_validator.py,sha256=_k5wU78wfYGrzvSDaqOEtT4otgKUjquVhZNpVf2PW_c,7524
@@ -264,8 +264,8 @@ bmcgo/utils/installations/install_plans/qemu.yml,sha256=lT7aKag60QUH6hTGFKa3hGRq
264
264
  bmcgo/utils/installations/install_plans/studio.yml,sha256=APR3GM-3Q11LFfe8vh7t3LztDn4LLEpNHRUNjkaVekA,143
265
265
  bmcgo/utils/installations/installers/apt_installer.py,sha256=nPaCb4cobSi9InN_aHsEPtQ0k4FgsCUWE5_VgBPvcRE,3769
266
266
  bmcgo/utils/installations/installers/pip_installer.py,sha256=dDdios1EQ7fzt90r02pZeoM3jCmjslLzkSvzd2hgRVM,3241
267
- openubmc_bingo-0.6.43.dist-info/METADATA,sha256=i8-bjBQtmM-9IHzXefAEDynKZYHKk4Cog334a6pvmkE,1010
268
- openubmc_bingo-0.6.43.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
269
- openubmc_bingo-0.6.43.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
270
- openubmc_bingo-0.6.43.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
271
- openubmc_bingo-0.6.43.dist-info/RECORD,,
267
+ openubmc_bingo-0.6.48.dist-info/METADATA,sha256=XiUcm7N7ZJ5iFH5oUKmfzCQvDA3v5oD8qZchf24pZ_s,1010
268
+ openubmc_bingo-0.6.48.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
269
+ openubmc_bingo-0.6.48.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
270
+ openubmc_bingo-0.6.48.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
271
+ openubmc_bingo-0.6.48.dist-info/RECORD,,