scanoss 1.12.1__py3-none-any.whl → 1.12.3__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.
scanoss/__init__.py CHANGED
@@ -22,4 +22,4 @@
22
22
  THE SOFTWARE.
23
23
  """
24
24
 
25
- __version__ = '1.12.1'
25
+ __version__ = '1.12.3'
scanoss/cyclonedx.py CHANGED
@@ -83,12 +83,13 @@ class CycloneDx(ScanossBase):
83
83
  fd[field] = deps.get(field, '')
84
84
  licenses = deps.get('licenses')
85
85
  fdl = []
86
- dc = []
87
- for lic in licenses:
88
- name = lic.get("name")
89
- if name not in dc: # Only save the license name once
90
- fdl.append({'id': name})
91
- dc.append(name)
86
+ if licenses:
87
+ dc = []
88
+ for lic in licenses:
89
+ name = lic.get("name")
90
+ if name not in dc: # Only save the license name once
91
+ fdl.append({'id': name})
92
+ dc.append(name)
92
93
  fd['licenses'] = fdl
93
94
  cdx[purl] = fd
94
95
  else:
@@ -137,8 +138,9 @@ class CycloneDx(ScanossBase):
137
138
  fd[field] = d.get(field)
138
139
  licenses = d.get('licenses')
139
140
  fdl = []
140
- for lic in licenses:
141
- fdl.append({'id': lic.get("name")})
141
+ if licenses:
142
+ for lic in licenses:
143
+ fdl.append({'id': lic.get("name")})
142
144
  fd['licenses'] = fdl
143
145
  cdx[purl] = fd
144
146
  # self.print_stderr(f'VD: {vdx}')
@@ -1 +1 @@
1
- date: 20240412212238, utime: 1712956958
1
+ date: 20240514175754, utime: 1715709474
scanoss/spdxlite.py CHANGED
@@ -100,12 +100,13 @@ class SpdxLite:
100
100
  fd[field] = deps.get(field, '')
101
101
  licenses = deps.get('licenses')
102
102
  fdl = []
103
- dc = []
104
- for lic in licenses:
105
- name = lic.get("name")
106
- if name not in dc: # Only save the license name once
107
- fdl.append({'id': name})
108
- dc.append(name)
103
+ if licenses:
104
+ dc = []
105
+ for lic in licenses:
106
+ name = lic.get("name")
107
+ if name not in dc: # Only save the license name once
108
+ fdl.append({'id': name})
109
+ dc.append(name)
109
110
  fd['licenses'] = fdl
110
111
  summary[purl] = fd
111
112
  else: # Normal file id type
@@ -128,12 +129,13 @@ class SpdxLite:
128
129
  fd[field] = d.get(field)
129
130
  licenses = d.get('licenses')
130
131
  fdl = []
131
- dc = []
132
- for lic in licenses:
133
- name = lic.get("name")
134
- if name not in dc: # Only save the license name once
135
- fdl.append({'id': name})
136
- dc.append(name)
132
+ if licenses:
133
+ dc = []
134
+ for lic in licenses:
135
+ name = lic.get("name")
136
+ if name not in dc: # Only save the license name once
137
+ fdl.append({'id': name})
138
+ dc.append(name)
137
139
  fd['licenses'] = fdl
138
140
  summary[purl] = fd
139
141
  return summary
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scanoss
3
- Version: 1.12.1
3
+ Version: 1.12.3
4
4
  Summary: Simple Python library to leverage the SCANOSS APIs
5
5
  Home-page: https://scanoss.com
6
6
  Author: SCANOSS
@@ -4,11 +4,11 @@ protoc_gen_swagger/options/annotations_pb2.py,sha256=b25EDD6gssUWnFby9gxgcpLIROT
4
4
  protoc_gen_swagger/options/annotations_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
5
5
  protoc_gen_swagger/options/openapiv2_pb2.py,sha256=vYElGp8E1vGHszvWqX97zNG9GFJ7u2QcdK9ouq0XdyI,14939
6
6
  protoc_gen_swagger/options/openapiv2_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
7
- scanoss/__init__.py,sha256=Pt-crfu_0maNEOEawVIu3IPcoesnaODsZNbT_JC2LOc,1163
7
+ scanoss/__init__.py,sha256=vlOicCnYY_eG_8PN2YGbSW8AvmqavyuDcWwpl9F7c4c,1163
8
8
  scanoss/cli.py,sha256=o_KZLVPEup6xwCC_vpsbDFooxQ5IkIu6Z7U4fvYshMY,42541
9
9
  scanoss/components.py,sha256=ZHZ1KA69shxOASZK7USD9yPTITpAc_RXL5q5zpDK23o,12590
10
10
  scanoss/csvoutput.py,sha256=hBwr_Fc6mBdOdXgyQcdFrockYH-PJ0jblowlExJ6OPg,9925
11
- scanoss/cyclonedx.py,sha256=dPhj6sdwl2P8viC-sicAOLZzyklUR82NGFHaEeGYpeA,12065
11
+ scanoss/cyclonedx.py,sha256=G6HxI8z3NJsOjBRuQJ8ApHQaUOP9-lO8PIBjcJMHchg,12167
12
12
  scanoss/filecount.py,sha256=o7xb6m387ucnsU4H1OXGzf_AdWsudhAHe49T8uX4Ieo,6660
13
13
  scanoss/scancodedeps.py,sha256=dPJsv9BmEsaM1IEzceJCnwLyu6Z0JwPposxdY4q0DAg,10775
14
14
  scanoss/scanner.py,sha256=N1fEqsJy11V325_YFdq11EQmeHqdNG6jcCiXnb9n_jU,50377
@@ -16,7 +16,7 @@ scanoss/scanossapi.py,sha256=5OwRQZ23rdPOL4bA5fXI7xdKnJOgRYaL60HuzZPdu-I,12562
16
16
  scanoss/scanossbase.py,sha256=WxYlWl6WxRArho4VKGFxEla8qYnjOXtF6EnwsHTrKm4,2319
17
17
  scanoss/scanossgrpc.py,sha256=ythZkr6F0P0hl_KPYoHkos_IL97TxLKeYfAouX_CUnM,20491
18
18
  scanoss/scantype.py,sha256=R2-ExLGOrYxaJFtIK2AEo2caD0XrN1zpF5q1qT9Zsyc,1326
19
- scanoss/spdxlite.py,sha256=ZAJlkgW5U9WUT35D1ZEwIJ-eLkbVLBv3lU_XIArfoik,15441
19
+ scanoss/spdxlite.py,sha256=poLtzD2eaSL5X7adYbH3blxKAFO8Asf_1nIZj3ewXCA,15559
20
20
  scanoss/threadeddependencies.py,sha256=JotQC9X3nnviblKe--OPS-7rr1W-cZjuxsxSPL-tbPg,6284
21
21
  scanoss/threadedscanning.py,sha256=T0tL8W1IEX_hLY5ksrAl_iQqtxT_KbyDhTDHo6a7xFE,9387
22
22
  scanoss/winnowing.py,sha256=lGRTtm5QqLQiu6PUV2lF5qI82g43OKyJ8-QsOV9Xp7w,18664
@@ -47,12 +47,12 @@ scanoss/api/vulnerabilities/__init__.py,sha256=FLQtiDiv85Q1Chk-sJ9ky9WOV1mulZhEK
47
47
  scanoss/api/vulnerabilities/v2/__init__.py,sha256=FLQtiDiv85Q1Chk-sJ9ky9WOV1mulZhEKjiBihlwiaM,1139
48
48
  scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py,sha256=CFhF80av8tenGvn9AIsGEtRJPuV2dC_syA5JLZb2lDw,5464
49
49
  scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py,sha256=HlS4k4Zmx6RIAqaO9I96jD-eyF5yU6Xx04pVm7pdqOg,6864
50
- scanoss/data/build_date.txt,sha256=R6eiHiP7EbXLjdV_2vTNZ2GdjyrPxotTvvtET43pg94,40
50
+ scanoss/data/build_date.txt,sha256=ODvNnGPO33Xb0cy0Xx4LoEouBommhbuBEQ3tLu5UiS0,40
51
51
  scanoss/data/spdx-exceptions.json,sha256=s7UTYxC7jqQXr11YBlIWYCNwN6lRDFTR33Y8rpN_dA4,17953
52
52
  scanoss/data/spdx-licenses.json,sha256=A6Z0q82gaTLtnopBfzeIVZjJFxkdRW1g2TuumQc-lII,228794
53
- scanoss-1.12.1.dist-info/LICENSE,sha256=LLUaXoiyOroIbr5ubAyrxBOwSRLTm35ETO2FmLpy8QQ,1074
54
- scanoss-1.12.1.dist-info/METADATA,sha256=JD6IlGZgX2NiN5nZ2-zr4HiNzdXGJEzM16XecCT_41g,5906
55
- scanoss-1.12.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
56
- scanoss-1.12.1.dist-info/entry_points.txt,sha256=Uy28xnaDL5KQ7V77sZD5VLDXPNxYYzSr5tsqtiXVzAs,48
57
- scanoss-1.12.1.dist-info/top_level.txt,sha256=V11PrQ6Pnrc-nDF9xnisnJ8e6-i7HqSIKVNqduRWcL8,27
58
- scanoss-1.12.1.dist-info/RECORD,,
53
+ scanoss-1.12.3.dist-info/LICENSE,sha256=LLUaXoiyOroIbr5ubAyrxBOwSRLTm35ETO2FmLpy8QQ,1074
54
+ scanoss-1.12.3.dist-info/METADATA,sha256=tG1h6EvFjKWNV1B1Np7oLZplYIrhfUlh-FNCI9v6Eyg,5906
55
+ scanoss-1.12.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
56
+ scanoss-1.12.3.dist-info/entry_points.txt,sha256=Uy28xnaDL5KQ7V77sZD5VLDXPNxYYzSr5tsqtiXVzAs,48
57
+ scanoss-1.12.3.dist-info/top_level.txt,sha256=V11PrQ6Pnrc-nDF9xnisnJ8e6-i7HqSIKVNqduRWcL8,27
58
+ scanoss-1.12.3.dist-info/RECORD,,