openubmc-bingo 0.6.45__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.45'
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":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openubmc-bingo
3
- Version: 0.6.45
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=mZO7QbjOEmOIGY9TDOMXwyrSCjIs_sv1oyRnSmUe8Gs,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
@@ -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.45.dist-info/METADATA,sha256=_QIlG518-b-B2F7q04ZxXvfCltkLp_fw5j-7H5kwGvk,1010
268
- openubmc_bingo-0.6.45.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
269
- openubmc_bingo-0.6.45.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
270
- openubmc_bingo-0.6.45.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
271
- openubmc_bingo-0.6.45.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,,