fosslight-source 2.1.4__tar.gz → 2.1.6__tar.gz
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_source-2.1.4 → fosslight_source-2.1.6}/PKG-INFO +2 -2
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/README.md +1 -1
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/requirements.txt +3 -2
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/setup.py +1 -1
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/cli.py +12 -3
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/PKG-INFO +2 -2
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/requires.txt +2 -1
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/LICENSE +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/MANIFEST.in +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/setup.cfg +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/__init__.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/_help.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/_license_matched.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/_parsing_scancode_file_item.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/_parsing_scanoss_file.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/_scan_item.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/run_scancode.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/run_scanoss.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/run_spdx_extractor.py +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/SOURCES.txt +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/entry_points.txt +0 -0
- {fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fosslight_source
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.6
|
|
4
4
|
Summary: FOSSLight Source Scanner
|
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_source_scanner
|
|
6
6
|
Author: LG Electronics
|
|
@@ -43,7 +43,7 @@ Description: <!--
|
|
|
43
43
|
## 👏 Contributing Guide
|
|
44
44
|
|
|
45
45
|
We always welcome your contributions.
|
|
46
|
-
Please see the [CONTRIBUTING guide](https://fosslight.org/
|
|
46
|
+
Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
## 📄 License
|
|
@@ -35,7 +35,7 @@ Please see the [**User Guide**](https://fosslight.org/fosslight-guide-en/scanner
|
|
|
35
35
|
## 👏 Contributing Guide
|
|
36
36
|
|
|
37
37
|
We always welcome your contributions.
|
|
38
|
-
Please see the [CONTRIBUTING guide](https://fosslight.org/
|
|
38
|
+
Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
## 📄 License
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
pyparsing
|
|
2
2
|
scanoss<=1.14.0
|
|
3
3
|
XlsxWriter
|
|
4
|
-
fosslight_util>=2.1.
|
|
4
|
+
fosslight_util>=2.1.10
|
|
5
5
|
PyYAML
|
|
6
6
|
wheel>=0.38.1
|
|
7
7
|
intbitset
|
|
8
8
|
fosslight_binary>=5.0.0
|
|
9
9
|
scancode-toolkit==32.0.*;sys_platform=="darwin"
|
|
10
10
|
scancode-toolkit==32.2.*;sys_platform!="darwin"
|
|
11
|
-
psycopg2-binary==2.9.9
|
|
11
|
+
psycopg2-binary==2.9.9
|
|
12
|
+
beautifulsoup4==4.12.*
|
|
@@ -14,7 +14,7 @@ with open('requirements.txt', 'r', 'utf-8') as f:
|
|
|
14
14
|
if __name__ == "__main__":
|
|
15
15
|
setup(
|
|
16
16
|
name='fosslight_source',
|
|
17
|
-
version='2.1.
|
|
17
|
+
version='2.1.6',
|
|
18
18
|
package_dir={"": "src"},
|
|
19
19
|
packages=find_packages(where='src'),
|
|
20
20
|
description='FOSSLight Source Scanner',
|
|
@@ -12,6 +12,7 @@ from datetime import datetime
|
|
|
12
12
|
import fosslight_util.constant as constant
|
|
13
13
|
from fosslight_util.set_log import init_log
|
|
14
14
|
from fosslight_util.timer_thread import TimerThread
|
|
15
|
+
from fosslight_util.exclude import excluding_files
|
|
15
16
|
from ._help import print_version, print_help_msg_source_scanner
|
|
16
17
|
from ._license_matched import get_license_list_to_print
|
|
17
18
|
from fosslight_util.output_format import check_output_formats_v2, write_output_file
|
|
@@ -147,7 +148,7 @@ def create_report_file(
|
|
|
147
148
|
output_path: str = "", output_files: list = [],
|
|
148
149
|
output_extensions: list = [], correct_mode: bool = True,
|
|
149
150
|
correct_filepath: str = "", path_to_scan: str = "", path_to_exclude: list = [],
|
|
150
|
-
formats: list = []
|
|
151
|
+
formats: list = [], excluded_file_list: list = []
|
|
151
152
|
) -> 'ScannerItem':
|
|
152
153
|
"""
|
|
153
154
|
Create report files for given scanned result.
|
|
@@ -179,7 +180,7 @@ def create_report_file(
|
|
|
179
180
|
logger.warning(f'{formats[i]} is not supported on Windows.Please remove {formats[i]} from format.')
|
|
180
181
|
to_remove.append(i)
|
|
181
182
|
else:
|
|
182
|
-
if formats[i].
|
|
183
|
+
if formats[i].startswith('spdx'):
|
|
183
184
|
output_files[i] = f"fosslight_spdx_src_{_start_time}"
|
|
184
185
|
elif formats[i].startswith('cyclonedx'):
|
|
185
186
|
output_files[i] = f'fosslight_cyclonedx_src_{_start_time}'
|
|
@@ -219,6 +220,12 @@ def create_report_file(
|
|
|
219
220
|
|
|
220
221
|
if merged_result:
|
|
221
222
|
sheet_list = {}
|
|
223
|
+
# Remove results that are in excluding file list
|
|
224
|
+
for i in range(len(merged_result) - 1, -1, -1): # Iterate from last to first
|
|
225
|
+
item_path = merged_result[i].source_name_or_path # Assuming SourceItem has 'file_path' attribute
|
|
226
|
+
if item_path in excluded_file_list:
|
|
227
|
+
del merged_result[i] # Delete matching item
|
|
228
|
+
|
|
222
229
|
scan_item.append_file_items(merged_result, PKG_NAME)
|
|
223
230
|
|
|
224
231
|
if selected_scanner == 'scanoss':
|
|
@@ -262,6 +269,7 @@ def create_report_file(
|
|
|
262
269
|
|
|
263
270
|
|
|
264
271
|
def merge_results(scancode_result: list = [], scanoss_result: list = [], spdx_downloads: dict = {}) -> list:
|
|
272
|
+
|
|
265
273
|
"""
|
|
266
274
|
Merge scanner results and spdx parsing result.
|
|
267
275
|
:param scancode_result: list of scancode results in SourceItem.
|
|
@@ -329,6 +337,7 @@ def run_scanners(
|
|
|
329
337
|
|
|
330
338
|
logger, result_log = init_log(os.path.join(output_path, f"fosslight_log_src_{start_time}.txt"),
|
|
331
339
|
True, logging.INFO, logging.DEBUG, PKG_NAME, path_to_scan, path_to_exclude)
|
|
340
|
+
excluded_file_list = excluding_files(path_to_exclude, path_to_scan)
|
|
332
341
|
|
|
333
342
|
if '.xlsx' not in output_extensions and print_matched_text:
|
|
334
343
|
logger.warning("-m option is only available for excel.")
|
|
@@ -348,7 +357,7 @@ def run_scanners(
|
|
|
348
357
|
merged_result = merge_results(scancode_result, scanoss_result, spdx_downloads)
|
|
349
358
|
scan_item = create_report_file(start_time, merged_result, license_list, scanoss_result, selected_scanner,
|
|
350
359
|
print_matched_text, output_path, output_files, output_extensions, correct_mode,
|
|
351
|
-
correct_filepath, path_to_scan, path_to_exclude, formats)
|
|
360
|
+
correct_filepath, path_to_scan, path_to_exclude, formats, excluded_file_list)
|
|
352
361
|
else:
|
|
353
362
|
print_help_msg_source_scanner()
|
|
354
363
|
result_log[RESULT_KEY] = "Unsupported scanner"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fosslight-source
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.6
|
|
4
4
|
Summary: FOSSLight Source Scanner
|
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_source_scanner
|
|
6
6
|
Author: LG Electronics
|
|
@@ -43,7 +43,7 @@ Description: <!--
|
|
|
43
43
|
## 👏 Contributing Guide
|
|
44
44
|
|
|
45
45
|
We always welcome your contributions.
|
|
46
|
-
Please see the [CONTRIBUTING guide](https://fosslight.org/
|
|
46
|
+
Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
## 📄 License
|
{fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/requires.txt
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
pyparsing
|
|
2
2
|
scanoss<=1.14.0
|
|
3
3
|
XlsxWriter
|
|
4
|
-
fosslight_util>=2.1.
|
|
4
|
+
fosslight_util>=2.1.10
|
|
5
5
|
PyYAML
|
|
6
6
|
wheel>=0.38.1
|
|
7
7
|
intbitset
|
|
8
8
|
fosslight_binary>=5.0.0
|
|
9
9
|
psycopg2-binary==2.9.9
|
|
10
|
+
beautifulsoup4==4.12.*
|
|
10
11
|
|
|
11
12
|
[:sys_platform != "darwin"]
|
|
12
13
|
scancode-toolkit==32.2.*
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/_parsing_scanoss_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source/run_spdx_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{fosslight_source-2.1.4 → fosslight_source-2.1.6}/src/fosslight_source.egg-info/top_level.txt
RENAMED
|
File without changes
|