fosslight-dependency 4.1.3__py3-none-any.whl → 4.1.5__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.
@@ -121,6 +121,8 @@ class Pub(PackageManager):
121
121
  continue
122
122
  oss_item.name = f"{self.package_manager_name}:{oss_origin_name}"
123
123
  oss_item.version = json_data['version']
124
+ if oss_item.version is None:
125
+ oss_item.version = ''
124
126
  oss_item.homepage = json_data['homepage']
125
127
  if oss_item.homepage is None:
126
128
  oss_item.homepage = json_data['repository']
@@ -130,17 +132,19 @@ class Pub(PackageManager):
130
132
  dep_item.purl = get_url_to_purl(oss_item.download_location, self.package_manager_name)
131
133
  purl_dict[f'{oss_origin_name}({oss_item.version})'] = dep_item.purl
132
134
  license_txt = json_data['license']
135
+ if license_txt is not None:
136
+ tmp_license_txt = open(tmp_license_txt_file_name, 'w', encoding='utf-8')
137
+ tmp_license_txt.write(license_txt)
138
+ tmp_license_txt.close()
133
139
 
134
- tmp_license_txt = open(tmp_license_txt_file_name, 'w', encoding='utf-8')
135
- tmp_license_txt.write(license_txt)
136
- tmp_license_txt.close()
140
+ license_name_with_license_scanner = check_and_run_license_scanner(self.platform,
141
+ self.license_scanner_bin,
142
+ tmp_license_txt_file_name)
137
143
 
138
- license_name_with_license_scanner = check_and_run_license_scanner(self.platform,
139
- self.license_scanner_bin,
140
- tmp_license_txt_file_name)
141
-
142
- if license_name_with_license_scanner != "":
143
- oss_item.license = license_name_with_license_scanner
144
+ if license_name_with_license_scanner != "":
145
+ oss_item.license = license_name_with_license_scanner
146
+ else:
147
+ oss_item.license = ''
144
148
 
145
149
  if self.direct_dep:
146
150
  if oss_origin_name not in self.total_dep_list:
@@ -133,7 +133,7 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
133
133
  logger.warning(f'{formats[i]} is not supported on Windows.Please remove {formats[i]} from format.')
134
134
  to_remove.append(i)
135
135
  else:
136
- if formats[i].stasrtswith('spdx'):
136
+ if formats[i].startswith('spdx'):
137
137
  output_files[i] = f"fosslight_spdx_dep_{_start_time}"
138
138
  elif formats[i].startswith('cyclonedx'):
139
139
  output_files[i] = f'fosslight_cyclonedx_dep_{_start_time}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight-dependency
3
- Version: 4.1.3
3
+ Version: 4.1.5
4
4
  Summary: FOSSLight Dependency Scanner
5
5
  Home-page: https://github.com/fosslight/fosslight_dependency_scanner
6
6
  Author: LG Electronics
@@ -5,7 +5,7 @@ fosslight_dependency/_help.py,sha256=INeP24fFfV2HPhZJMqk_KCu08X7nneAumBqMWQ7Sbw8
5
5
  fosslight_dependency/_package_manager.py,sha256=TDYP0tlqr7A346BoC2EKEZSq7Eua2cWdJQ5YvMIc9Wc,17265
6
6
  fosslight_dependency/constant.py,sha256=FAkzrW1S6Ua_TAbvQ2y6d0dhEZcgonB11miKUj7lB98,1080
7
7
  fosslight_dependency/dependency_item.py,sha256=wNLWcsNycf3HQ5Pib2WrMeo2dn0eHCRg20NLcL95Qew,3345
8
- fosslight_dependency/run_dependency_scanner.py,sha256=Za6VeJnTxoksD2wCUPhO7JPgDNkLTaZMmJk6FRjNOAk,16472
8
+ fosslight_dependency/run_dependency_scanner.py,sha256=HVee14Ol9QTjIKhDTVu0b3Shg43JQTQTV4NufbOhWHs,16471
9
9
  fosslight_dependency/LICENSES/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
10
  fosslight_dependency/LICENSES/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
11
11
  fosslight_dependency/package_manager/Android.py,sha256=0UZFvbLxDIreerK4fR316YPyhUpPliV_kfZulrxkUyo,3218
@@ -18,7 +18,7 @@ fosslight_dependency/package_manager/Helm.py,sha256=ucx2Y0tWX37UHIzIGaRyTe7uQ2vl
18
18
  fosslight_dependency/package_manager/Maven.py,sha256=JXiP8LwQZ10tf1l0Qgd4fvmv1RcVn52_PiMx6sTpSKo,10329
19
19
  fosslight_dependency/package_manager/Npm.py,sha256=hwKC08m05KlHgfQpPX7lnDEJC-A7WKF9OniYW4n9TDM,10638
20
20
  fosslight_dependency/package_manager/Nuget.py,sha256=FGD5tV1mTBl3G9mxWWnoMwLZUiSW7VCcHS7FxhCqU1g,9334
21
- fosslight_dependency/package_manager/Pub.py,sha256=-cotOpPCmLMmLWwP0dF1hQ44CBzConjnDpJ1So0n7lo,9904
21
+ fosslight_dependency/package_manager/Pub.py,sha256=nb4OTlnPBkBAsej_zF0iK-AAHIuoL2MqdFd6b5qnlJk,10130
22
22
  fosslight_dependency/package_manager/Pypi.py,sha256=7eBB5ko4HhRhby5txo9NXZl6td1O_8k11v8R9FwxygU,16254
23
23
  fosslight_dependency/package_manager/Swift.py,sha256=rAGecP705HJQGBQUj_4ssyty_lDF4YwTt7ymjso0-VQ,6793
24
24
  fosslight_dependency/package_manager/Unity.py,sha256=LoyWCMa6R3x0VCsTH1EEJ7FQmYsraCDnoHZUHCmYeiU,4708
@@ -26,12 +26,12 @@ fosslight_dependency/package_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
26
26
  fosslight_dependency/third_party/askalono/askalono.exe,sha256=NyngElHbrg3zLFRVwn6fPDZE_EDAEb1N8tiwWoCm4pQ,4743680
27
27
  fosslight_dependency/third_party/askalono/askalono_macos,sha256=cYSNXhAQpkdd8lkgnY5skNeDmU_8DIuP84eFi0OXKkE,5589868
28
28
  fosslight_dependency/third_party/nomos/nomossa,sha256=oFF9I-fhug6AVNyFnWeVXwDRin6NWSvk1g7mHBotB3Q,866408
29
- fosslight_dependency-4.1.3.dist-info/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
- fosslight_dependency-4.1.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
- fosslight_dependency-4.1.3.dist-info/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
32
- fosslight_dependency-4.1.3.dist-info/METADATA,sha256=Kea3nRexUXBq4K2rxAJpNhrrqTLPDcTPmm0UOn1c5wc,4956
33
- fosslight_dependency-4.1.3.dist-info/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
34
- fosslight_dependency-4.1.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
35
- fosslight_dependency-4.1.3.dist-info/entry_points.txt,sha256=e1QZbnCrQvfbwe9L6PxXnkRZMhl-PSo0QyUes0dGjU8,91
36
- fosslight_dependency-4.1.3.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
37
- fosslight_dependency-4.1.3.dist-info/RECORD,,
29
+ fosslight_dependency-4.1.5.dist-info/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
+ fosslight_dependency-4.1.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
+ fosslight_dependency-4.1.5.dist-info/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
32
+ fosslight_dependency-4.1.5.dist-info/METADATA,sha256=teJ0JEA-IJ2xJ4_fb5aaBSSKomT6MysjZIyHukAuO5g,4956
33
+ fosslight_dependency-4.1.5.dist-info/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
34
+ fosslight_dependency-4.1.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
35
+ fosslight_dependency-4.1.5.dist-info/entry_points.txt,sha256=e1QZbnCrQvfbwe9L6PxXnkRZMhl-PSo0QyUes0dGjU8,91
36
+ fosslight_dependency-4.1.5.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
37
+ fosslight_dependency-4.1.5.dist-info/RECORD,,