fosslight-scanner 2.1.7__py3-none-any.whl → 2.1.9__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.
@@ -168,10 +168,12 @@ def correct_scanner_result(all_scan_item):
168
168
  try:
169
169
  remove_src_idx_list = []
170
170
  for idx_src, src_fileitem in enumerate(src_fileitems):
171
- src_fileitem.exclude = check_exclude_dir(src_fileitem.source_name_or_path, src_fileitem.exclude)
171
+ if check_package_dir(src_fileitem.source_name_or_path):
172
+ continue
172
173
  dup_flag = False
173
174
  for bin_fileitem in bin_fileitems:
174
- bin_fileitem.exclude = check_exclude_dir(bin_fileitem.source_name_or_path, bin_fileitem.exclude)
175
+ if check_package_dir(bin_fileitem.source_name_or_path):
176
+ continue
175
177
  if src_fileitem.source_name_or_path == bin_fileitem.source_name_or_path:
176
178
  dup_flag = True
177
179
  src_all_licenses_non_empty = all(oss_item.license for oss_item in src_fileitem.oss_items)
@@ -202,14 +204,12 @@ def correct_scanner_result(all_scan_item):
202
204
  return all_scan_item
203
205
 
204
206
 
205
- def check_exclude_dir(source_name_or_path, file_item_exclude):
206
- if file_item_exclude:
207
- return True
208
- _exclude_dirs = ["venv", "node_modules", "Pods", "Carthage"]
209
- exclude = False
207
+ def check_package_dir(source_name_or_path):
208
+ _package_dirs = ["venv", "node_modules", "Pods", "Carthage"]
209
+ is_pkg = False
210
210
 
211
- for exclude_dir in _exclude_dirs:
212
- if exclude_dir in source_name_or_path.split(os.path.sep):
213
- exclude = True
211
+ for package_dir in _package_dirs:
212
+ if package_dir in source_name_or_path.split(os.path.sep):
213
+ is_pkg = True
214
214
  break
215
- return exclude
215
+ return is_pkg
@@ -25,7 +25,6 @@ from fosslight_util.set_log import init_log
25
25
  from fosslight_util.timer_thread import TimerThread
26
26
  import fosslight_util.constant as constant
27
27
  from fosslight_util.output_format import check_output_formats_v2
28
- from fosslight_prechecker._precheck import run_lint as prechecker_lint
29
28
  from fosslight_util.cover import CoverItem
30
29
  from fosslight_util.oss_item import ScannerItem
31
30
  from fosslight_util.output_format import write_output_file
@@ -1,20 +1,19 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight-scanner
3
- Version: 2.1.7
3
+ Version: 2.1.9
4
4
  Summary: FOSSLight Scanner
5
5
  Home-page: https://github.com/fosslight/fosslight_scanner
6
+ Download-URL: https://github.com/fosslight/fosslight_scanner
6
7
  Author: LG Electronics
7
8
  License: Apache-2.0
8
- Download-URL: https://github.com/fosslight/fosslight_scanner
9
- Platform: UNKNOWN
10
9
  Classifier: License :: OSI Approved :: Apache Software License
11
10
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
11
  Classifier: Programming Language :: Python :: 3.10
15
12
  Classifier: Programming Language :: Python :: 3.11
16
- Requires-Python: >=3.8
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Python: >=3.10,<3.13
17
15
  Description-Content-Type: text/markdown
16
+ License-File: LICENSE
18
17
  Requires-Dist: future
19
18
  Requires-Dist: pandas
20
19
  Requires-Dist: openpyxl
@@ -22,9 +21,9 @@ Requires-Dist: progress
22
21
  Requires-Dist: pyyaml
23
22
  Requires-Dist: beautifulsoup4
24
23
  Requires-Dist: fosslight-util<3.0.0,>=2.1.12
25
- Requires-Dist: fosslight-source<3.0.0,>=2.1.4
24
+ Requires-Dist: fosslight-source<3.0.0,>=2.1.12
26
25
  Requires-Dist: fosslight-dependency<5.0.0,>=4.1.3
27
- Requires-Dist: fosslight-binary<6.0.0,>=5.1.2
26
+ Requires-Dist: fosslight-binary<6.0.0,>=5.1.9
28
27
  Requires-Dist: fosslight-prechecker<5.0.0,>=4.0.0
29
28
 
30
29
  <!--
@@ -71,12 +70,12 @@ SPDX-License-Identifier: Apache-2.0
71
70
 
72
71
  ## 📋 Prerequisite
73
72
 
74
- FOSSLight Scanner needs a Python 3.6+.
73
+ FOSSLight Scanner needs a Python 3.10+.
75
74
 
76
75
  ## 🎉 How to install
77
76
 
78
77
 
79
- It can be installed using pip3. It is recommended to install it in the [python 3.7 + virtualenv]([etc/guide_virtualenv.md](https://fosslight.org/fosslight-guide-en/scanner/etc/guide_virtualenv.html)) environment.
78
+ It can be installed using pip3. It is recommended to install it in the [virtualenv]([etc/guide_virtualenv.md](https://fosslight.org/fosslight-guide-en/scanner/etc/guide_virtualenv.html)) environment.
80
79
 
81
80
  ```
82
81
  $ pip3 install fosslight_scanner
@@ -184,5 +183,3 @@ Then there will be quick bug fixes and upgrades. Ideas to improve are always wel
184
183
  FOSSLight Scanner is released under [Apache-2.0][l].
185
184
 
186
185
  [l]: https://github.com/fosslight/fosslight_scanner/blob/main/LICENSE
187
-
188
-
@@ -4,12 +4,12 @@ fosslight_scanner/_help.py,sha256=-Dqgn1inH26614GjrIe8I5cdEziuAxTtwrUdtTkrpjQ,30
4
4
  fosslight_scanner/_parse_setting.py,sha256=SoIEoPGlFXAp6__eEFEMIPYPoKLvmqxXF5X_C_uFiVI,2468
5
5
  fosslight_scanner/_run_compare.py,sha256=zmzX-FIvWCSkwPvEA3iHfVpyg6QDGUCpw3tJuGLdPWM,10657
6
6
  fosslight_scanner/cli.py,sha256=C4YNPVJJ-Ezj_6xe8k9QbIrf5V44GXbHWCGzR2FMcV8,6547
7
- fosslight_scanner/common.py,sha256=0LgXlGOJVB0kDeZ-1VeHEErArh7TgXkwEAmYAL9q93I,8465
8
- fosslight_scanner/fosslight_scanner.py,sha256=MIjKJ_HHyKKlh3HhuTtuezxTmX9guDWYDgjdXZP3IPU,21001
7
+ fosslight_scanner/common.py,sha256=FyEoqVsIZ4pRIlHRXZES8PYaYfy3PEmUaOn02YSuuYU,8377
8
+ fosslight_scanner/fosslight_scanner.py,sha256=TLMzzXjjPFAzrdS50ruqADKF8Shkf429O2BQeinkxPM,20930
9
9
  fosslight_scanner/resources/bom_compare.html,sha256=VocJ9bDmQQOwfGyvXatPZ4W-QddO-IlsAvKdO0nZ7pA,2240
10
- fosslight_scanner-2.1.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- fosslight_scanner-2.1.7.dist-info/METADATA,sha256=TCITJqWRZ5MZd8Xb7YccX6Ps_YZcjnjH77YhfY1KiCY,7873
12
- fosslight_scanner-2.1.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
- fosslight_scanner-2.1.7.dist-info/entry_points.txt,sha256=0tBUtN9pKtAkuohQuhbzuohdHbeoI0-w95aWAR7J_RU,105
14
- fosslight_scanner-2.1.7.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
15
- fosslight_scanner-2.1.7.dist-info/RECORD,,
10
+ fosslight_scanner-2.1.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ fosslight_scanner-2.1.9.dist-info/METADATA,sha256=y1f4kwBG6-smcAnnPVzKL_fAktgLYh_XwRftcFvBMMw,7822
12
+ fosslight_scanner-2.1.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
+ fosslight_scanner-2.1.9.dist-info/entry_points.txt,sha256=dl7AA0_Jqnq0NHuCEaxcJFgstLw3sod_-FGtcgZuJbs,104
14
+ fosslight_scanner-2.1.9.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
15
+ fosslight_scanner-2.1.9.dist-info/RECORD,,
@@ -1,4 +1,3 @@
1
1
  [console_scripts]
2
2
  fosslight = fosslight_scanner.cli:main
3
3
  fosslight_scanner = fosslight_scanner.cli:main
4
-