lbkit 0.9.0__tar.gz → 0.9.1__tar.gz

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.
Files changed (69) hide show
  1. {lbkit-0.9.0/lbkit.egg-info → lbkit-0.9.1}/PKG-INFO +1 -1
  2. lbkit-0.9.1/lbkit/__init__.py +2 -0
  3. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/idf_interface.py +4 -4
  4. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/utils/images/emmc.py +4 -4
  5. {lbkit-0.9.0 → lbkit-0.9.1/lbkit.egg-info}/PKG-INFO +1 -1
  6. {lbkit-0.9.0 → lbkit-0.9.1}/test/test_codegen.py +16 -16
  7. lbkit-0.9.0/lbkit/__init__.py +0 -2
  8. {lbkit-0.9.0 → lbkit-0.9.1}/AUTHORS +0 -0
  9. {lbkit-0.9.0 → lbkit-0.9.1}/LICENSE +0 -0
  10. {lbkit-0.9.0 → lbkit-0.9.1}/MANIFEST.in +0 -0
  11. {lbkit-0.9.0 → lbkit-0.9.1}/README.md +0 -0
  12. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/build_conan_parallel.py +0 -0
  13. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/ci_robot/__init__.py +0 -0
  14. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/ci_robot/gitee.py +0 -0
  15. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/cli.py +0 -0
  16. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/__init__.py +0 -0
  17. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/codegen.py +0 -0
  18. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/ctype_defination.py +0 -0
  19. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/renderer.py +0 -0
  20. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/client.c.mako +0 -0
  21. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/client.h.mako +0 -0
  22. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/interface.c.mako +0 -0
  23. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/interface.introspect.xml.mako +0 -0
  24. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/public.c.mako +0 -0
  25. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/public.h.mako +0 -0
  26. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/server.c.mako +0 -0
  27. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/codegen/template/server.h.mako +0 -0
  28. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/component/__init__.py +0 -0
  29. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/component/arg_parser.py +0 -0
  30. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/component/build.py +0 -0
  31. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/component/template/conanbase.mako +0 -0
  32. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/component/template/deploy.mako +0 -0
  33. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/component/test.py +0 -0
  34. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/errors.py +0 -0
  35. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/helper.py +0 -0
  36. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/lbkit.py +0 -0
  37. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/log.py +0 -0
  38. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/misc.py +0 -0
  39. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/__init__.py +0 -0
  40. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/config.py +0 -0
  41. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/executor.py +0 -0
  42. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/image_maker/__init__.py +0 -0
  43. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/image_maker/make_image.py +0 -0
  44. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/image_maker/make_qemu_image.py +0 -0
  45. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/image_maker/make_rockchip_image.py +0 -0
  46. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/task.py +0 -0
  47. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/task_build_image.py +0 -0
  48. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/task_build_manifest.py +0 -0
  49. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/task_build_prepare.py +0 -0
  50. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/task_build_rootfs.py +0 -0
  51. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/task_download.py +0 -0
  52. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/template/conanfile.py.mako +0 -0
  53. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tasks/template/rootfs.py.mako +0 -0
  54. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/tools.py +0 -0
  55. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/ukr/__init__.py +0 -0
  56. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/ukr/build.py +0 -0
  57. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/utils/__init__.py +0 -0
  58. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/utils/env_detector.py +0 -0
  59. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit/utils/images/__init__.py +0 -0
  60. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit.egg-info/SOURCES.txt +0 -0
  61. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit.egg-info/dependency_links.txt +0 -0
  62. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit.egg-info/entry_points.txt +0 -0
  63. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit.egg-info/requires.txt +0 -0
  64. {lbkit-0.9.0 → lbkit-0.9.1}/lbkit.egg-info/top_level.txt +0 -0
  65. {lbkit-0.9.0 → lbkit-0.9.1}/setup.cfg +0 -0
  66. {lbkit-0.9.0 → lbkit-0.9.1}/setup.py +0 -0
  67. {lbkit-0.9.0 → lbkit-0.9.1}/test/__init__.py +0 -0
  68. {lbkit-0.9.0 → lbkit-0.9.1}/test/test_config.py +0 -0
  69. {lbkit-0.9.0 → lbkit-0.9.1}/test/test_helper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lbkit
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Tools provided by litebmc.com
5
5
  Home-page: https://www.litebmc.com
6
6
  Author: xuhj@litebmc.com
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = '0.9.1'
@@ -1209,12 +1209,12 @@ class IdfInterface(IdfInterfaceBase):
1209
1209
  "ref_value": {
1210
1210
  "type": "string",
1211
1211
  "description": "Property reference syntax. The format must be `\\$\\{([<]*|:)<object>.<property name>\\}`, for example: Test_Obj.Prop",
1212
- "pattern": "^\\$\\{([<]*|:)[a-zA-Z]([a-z0-9A-Z]*[a-z])?)_([a-z0-9A-Z]+)\\.[A-Za-z][a-zA-Z0-9_-]*\\}$"
1212
+ "pattern": "^\\$\\{([<]*|:)\\.?[a-zA-Z][a-z0-9A-Z]+_[a-zA-Z0-9][a-z0-9A-Z_]*\\.[a-zA-Z][A-Za-z0-9_-]*\\}$"
1213
1213
  },
1214
1214
  "ref_obj": {
1215
1215
  "type": "string",
1216
1216
  "description": "Property reference syntax. The format must be `\\$\\{([<]*|:)<object>.<property name>\\}`, for example: Test_Obj",
1217
- "pattern": "^\\$\\{([<]*|:)[a-zA-Z]([a-z0-9A-Z]*[a-z])?)_([a-z0-9A-Z]+)\\}$"
1217
+ "pattern": "^\\$\\{([<]*|:)\\.?[a-zA-Z][a-z0-9A-Z]+_[a-zA-Z0-9][a-z0-9A-Z_]*\\}$"
1218
1218
  },
1219
1219
  "ref_obj_array": {
1220
1220
  "type": "array",
@@ -1224,12 +1224,12 @@ class IdfInterface(IdfInterfaceBase):
1224
1224
  {
1225
1225
  "type": "string",
1226
1226
  "description": "Object reference syntax. The format must be `\\$\\{([<]*|:)<object>\\}`, for example: Test_Obj",
1227
- "pattern": "^\\$\\{([<]*|:)[a-zA-Z]([a-z0-9A-Z]*[a-z])?)_([a-z0-9A-Z]+)\\}$"
1227
+ "pattern": "^\\$\\{([<]*|:)\\.?[a-zA-Z][a-z0-9A-Z]+_[a-zA-Z0-9][a-z0-9A-Z_]*\\}$"
1228
1228
  },
1229
1229
  {
1230
1230
  "type": "string",
1231
1231
  "description": "Plain string format, if the string start with `$` must add `\\` before `$` to escape; If the string is empty it must be surrounded by `\"`",
1232
- "pattern": "^[/]?[A-Z0-9a-z_]+(/[A-Z0-9a-z_]+)*$"
1232
+ "pattern": "^/?[A-Z0-9a-z_]+(/[A-Z0-9a-z_]+)*$"
1233
1233
  }
1234
1234
  ]
1235
1235
  }
@@ -68,14 +68,14 @@ class MakeImage():
68
68
  start = end
69
69
  end += self.rootfs_blk_1m * 1024 * 2
70
70
  self.tools.exec(f"parted -s -a none {output} mkpart rootfs_b {start}s {end - 1}s")
71
- self.log.info("复制镜像文件到rootfs_b")
72
- self.tools.exec(f"dd if={rootfs} of={output} bs=512 seek={start} conv=notrunc")
71
+ # self.log.info("复制镜像文件到rootfs_b")
72
+ # self.tools.exec(f"dd if={rootfs} of={output} bs=512 seek={start} conv=notrunc")
73
73
  self.log.info("制作rootfs_c")
74
74
  start = end
75
75
  end += self.rootfs_blk_1m * 1024 * 2
76
76
  self.tools.exec(f"parted -s -a none {output} mkpart rootfs_c {start}s {end - 1}s")
77
- self.log.info("复制镜像文件到rootfs_c")
78
- self.tools.exec(f"dd if={rootfs} of={output} bs=512 seek={start} conv=notrunc")
77
+ # self.log.info("复制镜像文件到rootfs_c")
78
+ # self.tools.exec(f"dd if={rootfs} of={output} bs=512 seek={start} conv=notrunc")
79
79
  start = end
80
80
  self.log.info("制作userdata区")
81
81
  end += self.userdata_blk_1m * 1024 * 2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lbkit
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Tools provided by litebmc.com
5
5
  Home-page: https://www.litebmc.com
6
6
  Author: xuhj@litebmc.com
@@ -33,10 +33,10 @@ class TestCodeGenClass(unittest.TestCase):
33
33
 
34
34
  def mk_interface_with_number_property(self, name, type, max, min, default_val):
35
35
  with open(self.tmp_file, mode="w+") as fp:
36
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
36
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
37
37
  fp.write("version: 1\n")
38
38
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
39
- fp.write("alias: Test\n")
39
+ fp.write("interface: com.litebmc.Test\n")
40
40
  fp.write("properties:\n")
41
41
  fp.write(f" - name: {name}\n")
42
42
  fp.write(f" description: {name}\n")
@@ -47,10 +47,10 @@ class TestCodeGenClass(unittest.TestCase):
47
47
 
48
48
  def mk_interface_with_string_property(self, name, type, pattern, default_val):
49
49
  with open(self.tmp_file, mode="w+") as fp:
50
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
50
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
51
51
  fp.write("version: 1\n")
52
52
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
53
- fp.write("alias: Test\n")
53
+ fp.write("interface: com.litebmc.Test\n")
54
54
  fp.write("properties:\n")
55
55
  fp.write(f" - name: {name}\n")
56
56
  fp.write(f" description: {name}\n")
@@ -61,10 +61,10 @@ class TestCodeGenClass(unittest.TestCase):
61
61
 
62
62
  def mk_interface_with_double_property(self, name, type, default_val, max=None, min=None, exclusive_max=None, exclusive_min=None):
63
63
  with open(self.tmp_file, mode="w+") as fp:
64
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
64
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
65
65
  fp.write("version: 1\n")
66
66
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
67
- fp.write("alias: Test\n")
67
+ fp.write("interface: com.litebmc.Test\n")
68
68
  fp.write("properties:\n")
69
69
  fp.write(f" - name: {name}\n")
70
70
  fp.write(f" description: {name}\n")
@@ -82,10 +82,10 @@ class TestCodeGenClass(unittest.TestCase):
82
82
 
83
83
  def validate_boolean(self, name, type, default):
84
84
  with open(self.tmp_file, mode="w+") as fp:
85
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
85
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
86
86
  fp.write("version: 1\n")
87
87
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
88
- fp.write("alias: Test\n")
88
+ fp.write("interface: com.litebmc.Test\n")
89
89
  fp.write("properties:\n")
90
90
  fp.write(f" - name: {name}\n")
91
91
  fp.write(f" description: {name}\n")
@@ -380,10 +380,10 @@ class TestCodegenPropertyFlagsClass(unittest.TestCase):
380
380
 
381
381
  def mk_interface_unique(self, type):
382
382
  with open(self.intf_yaml, mode="w+") as fp:
383
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
383
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
384
384
  fp.write("version: 1\n")
385
385
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
386
- fp.write("alias: Test\n")
386
+ fp.write("interface: com.litebmc.Test\n")
387
387
  fp.write("properties:\n")
388
388
  fp.write(f" - name: ar\n")
389
389
  fp.write(f" description: ar\n")
@@ -446,10 +446,10 @@ class TestCodegenUniqueClass(unittest.TestCase):
446
446
 
447
447
  def mk_interface_unique(self, type, unique):
448
448
  with open(self.intf_yaml, mode="w+") as fp:
449
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
449
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
450
450
  fp.write("version: 1\n")
451
451
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
452
- fp.write("alias: Test\n")
452
+ fp.write("interface: com.litebmc.Test\n")
453
453
  fp.write("properties:\n")
454
454
  fp.write(f" - name: ar\n")
455
455
  fp.write(f" description: ar\n")
@@ -548,10 +548,10 @@ class TestCodegenItemsCountClass(unittest.TestCase):
548
548
 
549
549
  def mk_interface_min_max_items(self, type, min_items=None, max_items=None):
550
550
  with open(self.intf_yaml, mode="w+") as fp:
551
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
551
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
552
552
  fp.write("version: 1\n")
553
553
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
554
- fp.write("alias: Test\n")
554
+ fp.write("interface: com.litebmc.Test\n")
555
555
  fp.write("properties:\n")
556
556
  fp.write(f" - name: ar\n")
557
557
  fp.write(f" description: ar\n")
@@ -684,10 +684,10 @@ class TestCodegenItemsMatchesClass(unittest.TestCase):
684
684
 
685
685
  def mk_interface_property_matches(self, type, matches):
686
686
  with open(self.intf_yaml, mode="w+") as fp:
687
- fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v1.json\n")
687
+ fp.write(f"# yaml-language-server: $schema={schema_dir}/idf.v2.json\n")
688
688
  fp.write("version: 1\n")
689
689
  fp.write("description: 测试接口,用于验证lb_base/lb_core,同时验证自动生成逻辑\n")
690
- fp.write("alias: Test\n")
690
+ fp.write("interface: com.litebmc.Test\n")
691
691
  fp.write("properties:\n")
692
692
  fp.write(f" - name: ar\n")
693
693
  fp.write(f" description: ar\n")
@@ -1,2 +0,0 @@
1
-
2
- __version__ = '0.9.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes