lbkit 0.5.13__tar.gz → 0.5.14__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 (51) hide show
  1. {lbkit-0.5.13/lbkit.egg-info → lbkit-0.5.14}/PKG-INFO +1 -1
  2. lbkit-0.5.14/lbkit/__init__.py +2 -0
  3. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/component/template/conanbase.mako +3 -2
  4. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/component/template/deploy.mako +24 -3
  5. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/build_manifest.py +1 -0
  6. {lbkit-0.5.13 → lbkit-0.5.14/lbkit.egg-info}/PKG-INFO +1 -1
  7. lbkit-0.5.13/lbkit/__init__.py +0 -2
  8. {lbkit-0.5.13 → lbkit-0.5.14}/AUTHORS +0 -0
  9. {lbkit-0.5.13 → lbkit-0.5.14}/LICENSE +0 -0
  10. {lbkit-0.5.13 → lbkit-0.5.14}/MANIFEST.in +0 -0
  11. {lbkit-0.5.13 → lbkit-0.5.14}/README.md +0 -0
  12. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/ci_robot/__init__.py +0 -0
  13. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/ci_robot/gitee.py +0 -0
  14. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/cli.py +0 -0
  15. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/__init__.py +0 -0
  16. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/codegen.py +0 -0
  17. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/ctype_defination.py +0 -0
  18. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/idf_interface.py +0 -0
  19. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/renderer.py +0 -0
  20. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/client.c.mako +0 -0
  21. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/client.h.mako +0 -0
  22. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/interface.c.mako +0 -0
  23. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/interface.introspect.xml.mako +0 -0
  24. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/public.c.mako +0 -0
  25. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/public.h.mako +0 -0
  26. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/server.c.mako +0 -0
  27. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/codegen/template/server.h.mako +0 -0
  28. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/component/__init__.py +0 -0
  29. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/component/arg_parser.py +0 -0
  30. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/component/build.py +0 -0
  31. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/component/test.py +0 -0
  32. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/errors.py +0 -0
  33. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/helper.py +0 -0
  34. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/__init__.py +0 -0
  35. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/build_image.py +0 -0
  36. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/build_prepare.py +0 -0
  37. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/build_rootfs.py +0 -0
  38. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/config.py +0 -0
  39. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/task.py +0 -0
  40. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/integration/template/conanfile.py.mako +0 -0
  41. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/lbkit.py +0 -0
  42. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/log.py +0 -0
  43. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/misc.py +0 -0
  44. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit/tools.py +0 -0
  45. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit.egg-info/SOURCES.txt +0 -0
  46. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit.egg-info/dependency_links.txt +0 -0
  47. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit.egg-info/entry_points.txt +0 -0
  48. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit.egg-info/requires.txt +0 -0
  49. {lbkit-0.5.13 → lbkit-0.5.14}/lbkit.egg-info/top_level.txt +0 -0
  50. {lbkit-0.5.13 → lbkit-0.5.14}/setup.cfg +0 -0
  51. {lbkit-0.5.13 → lbkit-0.5.14}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lbkit
3
- Version: 0.5.13
3
+ Version: 0.5.14
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.5.14'
@@ -123,18 +123,19 @@ class LiteBmcConan(ConanFile):
123
123
  % endfor
124
124
  % endif
125
125
  % endfor
126
+ if self.options.test == True:
126
127
  <%test_requires=pkg["requires"].get("test", [])%>\
127
128
  % if len(test_requires):
128
129
  % for conan in test_requires:
129
130
  % if conan.get("option") is not None:
130
131
  % for k, v in conan.get("option").items():
131
- self.options["${conan.get("conan").split("/")[0]}"].${k} = ${("\"" + v + "\"") if isinstance(v, str) else str(v)}
132
+ self.options["${conan.get("conan").split("/")[0]}"].${k} = ${("\"" + v + "\"") if isinstance(v, str) else str(v)}
132
133
  % endfor
133
134
  % endif
134
135
  % endfor
135
136
  % endif
136
137
  % endif
137
- pass
138
+ pass
138
139
 
139
140
  def _append_default_flags(self):
140
141
  flags = []
@@ -11,6 +11,27 @@ class DeployConan(ConanFile):
11
11
  package_type = "application"
12
12
  version = "0.0.1"
13
13
  license = "MulanPSL v2"
14
+ options = {
15
+ "gcov": [False, True],
16
+ "test": [False, True],
17
+ % if len(pkg.get("options", [])) > 0:
18
+ % for op, ctx in pkg["options"].items():
19
+ "${op}": [${", ".join(("\"" + i + "\"") if isinstance(i, str) else str(i) for i in ctx["option"])}],
20
+ % endfor
21
+ % endif
22
+ }
23
+ default_options = {
24
+ % if pkg_type == "library":
25
+ "shared": True,
26
+ % endif
27
+ "gcov": False,
28
+ "test": False,
29
+ % if len(pkg.get("options", [])) > 0:
30
+ % for op, ctx in pkg["options"].items():
31
+ "${op}": ${("\"" + ctx["default"] + "\"") if isinstance(ctx["default"], str) else str(ctx["default"])},
32
+ % endfor
33
+ % endif
34
+ }
14
35
 
15
36
  def requirements(self):
16
37
  % for package in packages:
@@ -27,16 +48,16 @@ class DeployConan(ConanFile):
27
48
  % endfor
28
49
  % endif
29
50
  % endfor
51
+ if self.options.test == True:
30
52
  <%test_requires=pkg["requires"].get("test", [])%>\
31
53
  % if len(test_requires):
32
54
  % for conan in test_requires:
33
55
  % if conan.get("option") is not None:
34
56
  % for k, v in conan.get("option").items():
35
- self.options["${conan.get("conan").split("/")[0]}"].${k} = ${("\"" + v + "\"") if isinstance(v, str) else str(v)}
57
+ self.options["${conan.get("conan").split("/")[0]}"].${k} = ${("\"" + v + "\"") if isinstance(v, str) else str(v)}
36
58
  % endfor
37
59
  % endif
38
60
  % endfor
39
61
  % endif
40
62
  % endif
41
- pass
42
-
63
+ pass
@@ -29,6 +29,7 @@ class BuildManifest(Task):
29
29
  self.conan_settings = " -s build_type=Release"
30
30
  self.common_args = "-r " + self.config.remote
31
31
  self.common_args += " -pr:b {} -pr:h {}".format(self.config.profile_build, self.config.profile_host)
32
+ self.common_args += " -o */*:test=False"
32
33
 
33
34
  def deploy(self):
34
35
  cmd = f"conan graph info . {self.common_args} --build=missing -f json --filter=ref --filter=package_id"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lbkit
3
- Version: 0.5.13
3
+ Version: 0.5.14
4
4
  Summary: Tools provided by litebmc.com
5
5
  Home-page: https://www.litebmc.com
6
6
  Author: xuhj@litebmc.com
@@ -1,2 +0,0 @@
1
-
2
- __version__ = '0.5.13'
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