fosslight-util 2.1.37__py3-none-any.whl → 2.1.38__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.
- fosslight_util/cover.py +19 -1
- {fosslight_util-2.1.37.dist-info → fosslight_util-2.1.38.dist-info}/METADATA +1 -1
- {fosslight_util-2.1.37.dist-info → fosslight_util-2.1.38.dist-info}/RECORD +7 -7
- {fosslight_util-2.1.37.dist-info → fosslight_util-2.1.38.dist-info}/WHEEL +0 -0
- {fosslight_util-2.1.37.dist-info → fosslight_util-2.1.38.dist-info}/entry_points.txt +0 -0
- {fosslight_util-2.1.37.dist-info → fosslight_util-2.1.38.dist-info}/licenses/LICENSE +0 -0
- {fosslight_util-2.1.37.dist-info → fosslight_util-2.1.38.dist-info}/top_level.txt +0 -0
fosslight_util/cover.py
CHANGED
|
@@ -18,8 +18,8 @@ class CoverItem:
|
|
|
18
18
|
|
|
19
19
|
PKG_NAMES = [
|
|
20
20
|
"fosslight_scanner",
|
|
21
|
-
"fosslight_source",
|
|
22
21
|
"fosslight_dependency",
|
|
22
|
+
"fosslight_source",
|
|
23
23
|
"fosslight_binary"
|
|
24
24
|
]
|
|
25
25
|
|
|
@@ -48,6 +48,24 @@ class CoverItem:
|
|
|
48
48
|
def __del__(self):
|
|
49
49
|
pass
|
|
50
50
|
|
|
51
|
+
def get_sort_order(self):
|
|
52
|
+
for idx, pkg_name in enumerate(self.PKG_NAMES[1:], start=0):
|
|
53
|
+
if pkg_name in self.tool_name:
|
|
54
|
+
return idx
|
|
55
|
+
return 999
|
|
56
|
+
|
|
57
|
+
def __lt__(self, other):
|
|
58
|
+
return self.get_sort_order() < other.get_sort_order()
|
|
59
|
+
|
|
60
|
+
def create_merged_comment(self, cover_items):
|
|
61
|
+
if not cover_items:
|
|
62
|
+
return ""
|
|
63
|
+
sorted_items = sorted(cover_items)
|
|
64
|
+
comments = []
|
|
65
|
+
for ci in sorted_items:
|
|
66
|
+
comments.append(f'[{ci.tool_name}] {ci.comment}')
|
|
67
|
+
return '\n'.join(comments)
|
|
68
|
+
|
|
51
69
|
def get_print_json(self):
|
|
52
70
|
json_item = {}
|
|
53
71
|
json_item[self.tool_name_key] = self.tool_name
|
|
@@ -3,7 +3,7 @@ fosslight_util/_get_downloadable_url.py,sha256=Komp1ODhqCKbnqGl7T-EDT8KmQuvgOeZ-
|
|
|
3
3
|
fosslight_util/compare_yaml.py,sha256=eLqqCLgERxRHN5vsnpQVMXIEU862Lx66mD_y4uMgQE4,2916
|
|
4
4
|
fosslight_util/constant.py,sha256=3BzJtyxC0o5IFAhYaUW-DeTKkA6f5tDJFJTb0k5ji9Y,2418
|
|
5
5
|
fosslight_util/correct.py,sha256=1WEAL-9_KhjFPLucPhv0PNN3K7avm0z8mU6sTuSyeHM,3864
|
|
6
|
-
fosslight_util/cover.py,sha256=
|
|
6
|
+
fosslight_util/cover.py,sha256=yrWwguN5VM7mOllljiDVykPfuLYfI11kcJ6gEs49Bjo,2616
|
|
7
7
|
fosslight_util/download.py,sha256=AWwD3FWhF-bMagWINJ-Dg1VMuycXbe8VXX7qQ09YjYs,23565
|
|
8
8
|
fosslight_util/exclude.py,sha256=a8aEBglvc1Ub5cRtXHqpzbmuyhzgH3O-X1rFDHkOayc,6841
|
|
9
9
|
fosslight_util/get_pom_license.py,sha256=vmh2LG1_4U7ts9SSpN3_UAANWbx5GBAVjremwm62OFY,5639
|
|
@@ -25,9 +25,9 @@ fosslight_util/write_yaml.py,sha256=QlEKoIPQsEaYERfbP53TeKgnllYzhLQWm5wYjnWtVjE,
|
|
|
25
25
|
fosslight_util/resources/frequentLicenselist.json,sha256=GUhzK6tu7ok10fekOnmVmUgIGRC-acGABZKTNKfDyYA,4776157
|
|
26
26
|
fosslight_util/resources/frequent_license_nick_list.json,sha256=ryU2C_6ZxHbz90_sUN9OvI9GXkCMLu7oGcmd9W79YYo,5005
|
|
27
27
|
fosslight_util/resources/licenses.json,sha256=mK55z-bhY7Mjpj2KsO1crKGGL-X3F6MBFQJ0zLlx010,240843
|
|
28
|
-
fosslight_util-2.1.
|
|
29
|
-
fosslight_util-2.1.
|
|
30
|
-
fosslight_util-2.1.
|
|
31
|
-
fosslight_util-2.1.
|
|
32
|
-
fosslight_util-2.1.
|
|
33
|
-
fosslight_util-2.1.
|
|
28
|
+
fosslight_util-2.1.38.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
29
|
+
fosslight_util-2.1.38.dist-info/METADATA,sha256=8v1p52zrqs998FTozt23F13UkBRPPQofsD7GlHzbPHQ,6365
|
|
30
|
+
fosslight_util-2.1.38.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
31
|
+
fosslight_util-2.1.38.dist-info/entry_points.txt,sha256=0yZggRWNwDaClDG8UmUA10UFG8cVX3Jiy5gG9nW7hJs,68
|
|
32
|
+
fosslight_util-2.1.38.dist-info/top_level.txt,sha256=2qyYWGLakgBRy4BqoBNt-I5C29tBr_e93e5e1pbuTGA,15
|
|
33
|
+
fosslight_util-2.1.38.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|