lbkit 0.6.2__tar.gz → 0.6.3__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 (58) hide show
  1. {lbkit-0.6.2/lbkit.egg-info → lbkit-0.6.3}/PKG-INFO +1 -1
  2. lbkit-0.6.3/lbkit/__init__.py +2 -0
  3. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/component/build.py +12 -4
  4. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/component/template/conanbase.mako +9 -10
  5. {lbkit-0.6.2 → lbkit-0.6.3/lbkit.egg-info}/PKG-INFO +1 -1
  6. lbkit-0.6.2/lbkit/__init__.py +0 -2
  7. {lbkit-0.6.2 → lbkit-0.6.3}/AUTHORS +0 -0
  8. {lbkit-0.6.2 → lbkit-0.6.3}/LICENSE +0 -0
  9. {lbkit-0.6.2 → lbkit-0.6.3}/MANIFEST.in +0 -0
  10. {lbkit-0.6.2 → lbkit-0.6.3}/README.md +0 -0
  11. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/build_conan_parallel.py +0 -0
  12. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/ci_robot/__init__.py +0 -0
  13. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/ci_robot/gitee.py +0 -0
  14. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/cli.py +0 -0
  15. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/__init__.py +0 -0
  16. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/codegen.py +0 -0
  17. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/ctype_defination.py +0 -0
  18. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/idf_interface.py +0 -0
  19. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/renderer.py +0 -0
  20. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/client.c.mako +0 -0
  21. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/client.h.mako +0 -0
  22. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/interface.c.mako +0 -0
  23. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/interface.introspect.xml.mako +0 -0
  24. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/public.c.mako +0 -0
  25. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/public.h.mako +0 -0
  26. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/server.c.mako +0 -0
  27. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/codegen/template/server.h.mako +0 -0
  28. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/component/__init__.py +0 -0
  29. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/component/arg_parser.py +0 -0
  30. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/component/template/deploy.mako +0 -0
  31. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/component/test.py +0 -0
  32. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/errors.py +0 -0
  33. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/helper.py +0 -0
  34. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/__init__.py +0 -0
  35. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/build_image.py +0 -0
  36. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/build_manifest.py +0 -0
  37. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/build_prepare.py +0 -0
  38. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/build_rootfs.py +0 -0
  39. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/config.py +0 -0
  40. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/task.py +0 -0
  41. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/integration/template/conanfile.py.mako +0 -0
  42. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/lbkit.py +0 -0
  43. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/log.py +0 -0
  44. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/misc.py +0 -0
  45. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/tools.py +0 -0
  46. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/utils/__init__.py +0 -0
  47. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/utils/images/__init__.py +0 -0
  48. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit/utils/images/emmc.py +0 -0
  49. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit.egg-info/SOURCES.txt +0 -0
  50. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit.egg-info/dependency_links.txt +0 -0
  51. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit.egg-info/entry_points.txt +0 -0
  52. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit.egg-info/requires.txt +0 -0
  53. {lbkit-0.6.2 → lbkit-0.6.3}/lbkit.egg-info/top_level.txt +0 -0
  54. {lbkit-0.6.2 → lbkit-0.6.3}/setup.cfg +0 -0
  55. {lbkit-0.6.2 → lbkit-0.6.3}/setup.py +0 -0
  56. {lbkit-0.6.2 → lbkit-0.6.3}/test/__init__.py +0 -0
  57. {lbkit-0.6.2 → lbkit-0.6.3}/test/test_codegen.py +0 -0
  58. {lbkit-0.6.2 → lbkit-0.6.3}/test/test_helper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lbkit
3
- Version: 0.6.2
3
+ Version: 0.6.3
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.6.3'
@@ -71,7 +71,10 @@ class BuildComponent():
71
71
  self.pkg = None
72
72
  self.base_cmd = ""
73
73
  self.gen_conaninfo()
74
- self.base_cmd += f" --user {self.user} --channel {self.channel}"
74
+ # 此场景发布的包名不带@user/channel
75
+ if self.user != "litebmc" or self.channel != "release":
76
+ self.base_cmd += f" --user {self.user} --channel {self.channel}"
77
+
75
78
  self.base_cmd += f" -pr {self.profile} -s build_type={self.build_type} -r " + self.options.remote
76
79
  self.base_cmd += f" -pr:b {self.profile_build}"
77
80
  if self.options.cov:
@@ -126,8 +129,9 @@ class BuildComponent():
126
129
  self.name = pkg.get("name")
127
130
  self.version = pkg.get("version")
128
131
 
129
- self.package = self.name + "/" + self.version + \
130
- "@" + self.user + "/" + self.channel
132
+ self.package = self.name + "/" + self.version
133
+ if self.user != "litebmc" or self.channel != "release":
134
+ self.package += "@" + self.user + "/" + self.channel
131
135
  # 准备部署依赖
132
136
  requires = pkg.get("requires")
133
137
  deps = []
@@ -190,8 +194,12 @@ class BuildComponent():
190
194
  def build(self):
191
195
  log.info(os.getcwd())
192
196
 
193
- export_cmd = f"conan export . --user={self.user} --channel={self.channel}"
197
+ export_cmd = "conan export . "
198
+ if self.user != "litebmc" or self.channel != "release":
199
+ export_cmd += f"--user={self.user} --channel={self.channel}"
194
200
  tools.run(export_cmd, capture_output=False)
201
+ # import sys
202
+ # sys.exit(-1)
195
203
 
196
204
  lockfile = os.path.join(cwd, ".temp", "conan.lock")
197
205
  graphfile = os.path.join(cwd, ".temp", "graph.info")
@@ -28,8 +28,11 @@ libs = pkg.get("package_info", {}).get("libs", [])
28
28
  class LiteBmcConan(ConanFile):
29
29
  name = "${pkg_name}"
30
30
  version = "${pkg["version"]}"
31
+ % if pkg["user"] != "litebmc" or pkg["channel"] != "release":
32
+ ## @litebmc/release则生成的包名不带@user/channel
31
33
  user = "${pkg["user"]}"
32
34
  channel = "${pkg["channel"]}"
35
+ % endif
33
36
  settings = "os", "arch", "compiler", "build_type"
34
37
  description = "${pkg["description"]}"
35
38
  url = "${pkg["url"]}"
@@ -78,16 +81,12 @@ class LiteBmcConan(ConanFile):
78
81
  return
79
82
 
80
83
  scm_url = None
81
- remotes = git.run("remote -v")
82
- checked_name = []
83
- for r in remotes.splitlines():
84
- name, url = r.split(maxsplit=1)
85
- if name in checked_name:
86
- continue
87
- checked_name.append(name)
88
- url, scm_commit = git.get_url_and_commit(remote=name)
89
- if url.startswith("https://"):
90
- scm_url = url
84
+ scm_commit = git.get_commit()
85
+ branches = git.run("branch -r --contains {}".format(scm_commit))
86
+ remotes = git.run("remote")
87
+ for remote in remotes.splitlines():
88
+ if "{}/".format(remote) in branches:
89
+ scm_url = git.get_remote_url(remote)
91
90
  break
92
91
  if not scm_url:
93
92
  files.update_conandata(self, {"sources": {"commit": None, "url": None, "pwd": os.getcwd()}})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lbkit
3
- Version: 0.6.2
3
+ Version: 0.6.3
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.6.2'
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