fosslight-scanner 2.0.0__py3-none-any.whl → 2.0.1__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_scanner/fosslight_scanner.py +18 -4
- {fosslight_scanner-2.0.0.dist-info → fosslight_scanner-2.0.1.dist-info}/METADATA +2 -1
- {fosslight_scanner-2.0.0.dist-info → fosslight_scanner-2.0.1.dist-info}/RECORD +7 -7
- {fosslight_scanner-2.0.0.dist-info → fosslight_scanner-2.0.1.dist-info}/LICENSE +0 -0
- {fosslight_scanner-2.0.0.dist-info → fosslight_scanner-2.0.1.dist-info}/WHEEL +0 -0
- {fosslight_scanner-2.0.0.dist-info → fosslight_scanner-2.0.1.dist-info}/entry_points.txt +0 -0
- {fosslight_scanner-2.0.0.dist-info → fosslight_scanner-2.0.1.dist-info}/top_level.txt +0 -0
|
@@ -24,6 +24,7 @@ from fosslight_util.set_log import init_log
|
|
|
24
24
|
from fosslight_util.timer_thread import TimerThread
|
|
25
25
|
import fosslight_util.constant as constant
|
|
26
26
|
from fosslight_util.output_format import check_output_format
|
|
27
|
+
from fosslight_prechecker._precheck import run_lint as prechecker_lint
|
|
27
28
|
from fosslight_util.cover import CoverItem
|
|
28
29
|
from fosslight_util.oss_item import ScannerItem
|
|
29
30
|
from fosslight_util.output_format import write_output_file
|
|
@@ -50,7 +51,7 @@ _start_time = ""
|
|
|
50
51
|
_executed_path = ""
|
|
51
52
|
SRC_DIR_FROM_LINK_PREFIX = "fosslight_src_dir_"
|
|
52
53
|
SCANNER_MODE = [
|
|
53
|
-
"all", "compare", "binary",
|
|
54
|
+
"all", "compare", "reuse", "prechecker", "binary",
|
|
54
55
|
"bin", "src", "source", "dependency", "dep"
|
|
55
56
|
]
|
|
56
57
|
|
|
@@ -151,7 +152,14 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
|
|
|
151
152
|
if success:
|
|
152
153
|
output_files = {"SRC": f"fosslight_src_{_start_time}{output_extension}",
|
|
153
154
|
"BIN": f"fosslight_bin_{_start_time}{output_extension}",
|
|
154
|
-
"DEP": f"fosslight_dep_{_start_time}{output_extension}"
|
|
155
|
+
"DEP": f"fosslight_dep_{_start_time}{output_extension}",
|
|
156
|
+
"PRECHECKER": f"fosslight_lint_{_start_time}.yaml"}
|
|
157
|
+
if run_prechecker:
|
|
158
|
+
output_prechecker = os.path.join(_output_dir, output_files["PRECHECKER"])
|
|
159
|
+
success, result = call_analysis_api(src_path, "Prechecker Lint",
|
|
160
|
+
-1, prechecker_lint,
|
|
161
|
+
abs_path, False, output_prechecker,
|
|
162
|
+
exclude_path=path_to_exclude)
|
|
155
163
|
|
|
156
164
|
if run_src:
|
|
157
165
|
try:
|
|
@@ -389,13 +397,19 @@ def run_main(mode_list, path_arg, dep_arguments, output_file_or_dir, file_format
|
|
|
389
397
|
run_src = False
|
|
390
398
|
run_bin = False
|
|
391
399
|
run_dep = False
|
|
400
|
+
run_prechecker = False
|
|
392
401
|
remove_downloaded_source = False
|
|
393
402
|
|
|
394
403
|
if "all" in mode_list or (not mode_list):
|
|
395
404
|
run_src = True
|
|
396
405
|
run_bin = True
|
|
397
406
|
run_dep = True
|
|
407
|
+
run_prechecker = False
|
|
408
|
+
if "prechecker" in mode_list or "reuse" in mode_list:
|
|
409
|
+
run_prechecker = True
|
|
398
410
|
else:
|
|
411
|
+
if "prechecker" in mode_list or "reuse" in mode_list:
|
|
412
|
+
run_prechecker = True
|
|
399
413
|
if "binary" in mode_list or "bin" in mode_list:
|
|
400
414
|
run_bin = True
|
|
401
415
|
if "source" in mode_list or "src" in mode_list:
|
|
@@ -403,7 +417,7 @@ def run_main(mode_list, path_arg, dep_arguments, output_file_or_dir, file_format
|
|
|
403
417
|
if "dependency" in mode_list or "dep" in mode_list:
|
|
404
418
|
run_dep = True
|
|
405
419
|
|
|
406
|
-
if run_dep or run_src or run_bin:
|
|
420
|
+
if run_dep or run_src or run_bin or run_prechecker:
|
|
407
421
|
if src_path == "" and url_to_analyze == "":
|
|
408
422
|
src_path, dep_arguments, url_to_analyze = get_input_mode(_executed_path, mode_list)
|
|
409
423
|
|
|
@@ -425,7 +439,7 @@ def run_main(mode_list, path_arg, dep_arguments, output_file_or_dir, file_format
|
|
|
425
439
|
|
|
426
440
|
if src_path != "":
|
|
427
441
|
run_scanner(src_path, dep_arguments, output_path, keep_raw_data,
|
|
428
|
-
run_src, run_bin, run_dep,
|
|
442
|
+
run_src, run_bin, run_dep, run_prechecker,
|
|
429
443
|
remove_downloaded_source, {}, output_file,
|
|
430
444
|
output_extension, num_cores, db_url,
|
|
431
445
|
default_oss_name, default_oss_version, url_to_analyze,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fosslight-scanner
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: FOSSLight Scanner
|
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_scanner
|
|
6
6
|
Author: LG Electronics
|
|
@@ -25,6 +25,7 @@ Requires-Dist: fosslight-util>=2.0.0
|
|
|
25
25
|
Requires-Dist: fosslight-source>=2.0.0
|
|
26
26
|
Requires-Dist: fosslight-dependency>=4.0.0
|
|
27
27
|
Requires-Dist: fosslight-binary>=5.0.0
|
|
28
|
+
Requires-Dist: fosslight-prechecker>=4.0.0
|
|
28
29
|
|
|
29
30
|
<!--
|
|
30
31
|
Copyright (c) 2021 LG Electronics
|
|
@@ -5,11 +5,11 @@ fosslight_scanner/_parse_setting.py,sha256=SoIEoPGlFXAp6__eEFEMIPYPoKLvmqxXF5X_C
|
|
|
5
5
|
fosslight_scanner/_run_compare.py,sha256=ufx3zldtM7sUOyQOYSgs66TY5-Gt26yE2Irz5kdkmio,10566
|
|
6
6
|
fosslight_scanner/cli.py,sha256=K088vCNTBLaiOfxW2EDkrWRhrRs7IILmDfP1HSdSI2U,6536
|
|
7
7
|
fosslight_scanner/common.py,sha256=NOfIxdKrH7MS_ptOIwY56OZJHVR9S_hfs-L2a1H9N0g,8179
|
|
8
|
-
fosslight_scanner/fosslight_scanner.py,sha256=
|
|
8
|
+
fosslight_scanner/fosslight_scanner.py,sha256=Sp-qYnlcLw1h9wLpJoySCpTcfvMaERy11SARx_itOxY,19640
|
|
9
9
|
fosslight_scanner/resources/bom_compare.html,sha256=VocJ9bDmQQOwfGyvXatPZ4W-QddO-IlsAvKdO0nZ7pA,2240
|
|
10
|
-
fosslight_scanner-2.0.
|
|
11
|
-
fosslight_scanner-2.0.
|
|
12
|
-
fosslight_scanner-2.0.
|
|
13
|
-
fosslight_scanner-2.0.
|
|
14
|
-
fosslight_scanner-2.0.
|
|
15
|
-
fosslight_scanner-2.0.
|
|
10
|
+
fosslight_scanner-2.0.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
fosslight_scanner-2.0.1.dist-info/METADATA,sha256=rYCbU4NlBximKgYG1p-L3fVaCzd_oDCPDd2Gk-CO9Ho,7837
|
|
12
|
+
fosslight_scanner-2.0.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
13
|
+
fosslight_scanner-2.0.1.dist-info/entry_points.txt,sha256=0tBUtN9pKtAkuohQuhbzuohdHbeoI0-w95aWAR7J_RU,105
|
|
14
|
+
fosslight_scanner-2.0.1.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
|
|
15
|
+
fosslight_scanner-2.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|