fosslight-source 2.3.12__tar.gz → 2.3.14__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.3.12/src/fosslight_source.egg-info → fosslight_source-2.3.14}/PKG-INFO +4 -4
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/README.md +1 -1
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/pyproject.toml +3 -3
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_scan_item.py +1 -1
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/cli.py +6 -6
- {fosslight_source-2.3.12 → fosslight_source-2.3.14/src/fosslight_source.egg-info}/PKG-INFO +4 -4
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/requires.txt +2 -2
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_parsing_unknown_spdx.py +7 -7
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/LICENSE +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/MANIFEST.in +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/setup.cfg +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/__init__.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_exclude.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_help.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_kb_client.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_license_matched.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_merge.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_parsing_scancode_file_item.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_parsing_scanoss_file.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_scancode_ignore_binaries.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/run_manifest_extractor.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/run_scancode.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/run_scanoss.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/run_spdx_extractor.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/SOURCES.txt +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/entry_points.txt +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/top_level.txt +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_kb_ssl.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_manifest_android_bp.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_manifest_composer.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_manifest_pyproject.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_manifest_recommended_scenarios.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_manifest_setup_cfg.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_multi_value_order.py +0 -0
- {fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_tox.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fosslight_source
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.14
|
|
4
4
|
Summary: FOSSLight Source Scanner
|
|
5
5
|
Author: LG Electronics
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,11 +20,11 @@ Requires-Dist: setuptools<=80.10.2
|
|
|
20
20
|
Requires-Dist: pyparsing
|
|
21
21
|
Requires-Dist: scanoss>=1.45.0
|
|
22
22
|
Requires-Dist: XlsxWriter
|
|
23
|
-
Requires-Dist: fosslight_util>=2.2.
|
|
23
|
+
Requires-Dist: fosslight_util>=2.2.14
|
|
24
24
|
Requires-Dist: PyYAML
|
|
25
25
|
Requires-Dist: wheel>=0.38.1
|
|
26
26
|
Requires-Dist: intbitset
|
|
27
|
-
Requires-Dist: scancode-toolkit>=32.0
|
|
27
|
+
Requires-Dist: scancode-toolkit>=32.5.0
|
|
28
28
|
Requires-Dist: lxml>=6.0.1
|
|
29
29
|
Requires-Dist: cryptography<49; platform_system == "Darwin" and platform_machine == "x86_64"
|
|
30
30
|
Requires-Dist: fingerprints==1.2.3
|
|
@@ -55,7 +55,7 @@ Detect the license for the source code.
|
|
|
55
55
|
Use Source Code Scanner and process the scanner results.
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
**FOSSLight Source Scanner** uses source code scanners, [ScanCode][sc] and [SCANOSS][scanoss]. [ScanCode][sc] detects copyright and license phrases contained in the file and [SCANOSS][scanoss] searches OSS Name, OSS Version, download location, copyright and license information from [OSSKB][osskb]. Some files (ex- build script), binary files, directory and files in specific directories (ex-test) are excluded from the result.
|
|
58
|
+
**FOSSLight Source Scanner** uses source code scanners, [ScanCode][sc] and [SCANOSS][scanoss]. [ScanCode][sc] detects copyright and license phrases contained in the file and [SCANOSS][scanoss] searches OSS Name, OSS Version, download location, copyright and license information from [OSSKB][osskb]. Some files (ex- build script), binary files, directory and files in specific directories (ex-test) are excluded from the result. The output result is generated in spreadsheet format.
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
[sc]: https://github.com/nexB/scancode-toolkit
|
|
@@ -18,7 +18,7 @@ Detect the license for the source code.
|
|
|
18
18
|
Use Source Code Scanner and process the scanner results.
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
**FOSSLight Source Scanner** uses source code scanners, [ScanCode][sc] and [SCANOSS][scanoss]. [ScanCode][sc] detects copyright and license phrases contained in the file and [SCANOSS][scanoss] searches OSS Name, OSS Version, download location, copyright and license information from [OSSKB][osskb]. Some files (ex- build script), binary files, directory and files in specific directories (ex-test) are excluded from the result.
|
|
21
|
+
**FOSSLight Source Scanner** uses source code scanners, [ScanCode][sc] and [SCANOSS][scanoss]. [ScanCode][sc] detects copyright and license phrases contained in the file and [SCANOSS][scanoss] searches OSS Name, OSS Version, download location, copyright and license information from [OSSKB][osskb]. Some files (ex- build script), binary files, directory and files in specific directories (ex-test) are excluded from the result. The output result is generated in spreadsheet format.
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
[sc]: https://github.com/nexB/scancode-toolkit
|
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|
|
7
7
|
|
|
8
8
|
[project]
|
|
9
9
|
name = "fosslight_source"
|
|
10
|
-
version = "2.3.
|
|
10
|
+
version = "2.3.14"
|
|
11
11
|
description = "FOSSLight Source Scanner"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
license = "Apache-2.0"
|
|
@@ -29,11 +29,11 @@ dependencies = [
|
|
|
29
29
|
"pyparsing",
|
|
30
30
|
"scanoss>=1.45.0",
|
|
31
31
|
"XlsxWriter",
|
|
32
|
-
"fosslight_util>=2.2.
|
|
32
|
+
"fosslight_util>=2.2.14",
|
|
33
33
|
"PyYAML",
|
|
34
34
|
"wheel>=0.38.1",
|
|
35
35
|
"intbitset",
|
|
36
|
-
"scancode-toolkit>=32.0
|
|
36
|
+
"scancode-toolkit>=32.5.0",
|
|
37
37
|
"lxml>=6.0.1",
|
|
38
38
|
# cryptography 49.x does not provide macOS x86_64 wheels, causing source builds to require OpenSSL/pkg-config.
|
|
39
39
|
"cryptography<49; platform_system == 'Darwin' and platform_machine == 'x86_64'",
|
|
@@ -12,7 +12,7 @@ import fosslight_util.constant as constant
|
|
|
12
12
|
from fosslight_util.oss_item import FileItem, OssItem, get_checksum_sha1
|
|
13
13
|
|
|
14
14
|
logger = logging.getLogger(constant.LOGGER_NAME)
|
|
15
|
-
replace_word = ["
|
|
15
|
+
replace_word = ["licenseref-scancode-", "licenseref-"]
|
|
16
16
|
_notice_filename = ['licen[cs]e[s]?', 'notice[s]?', 'legal', 'copyright[s]?', 'copying*', 'patent[s]?', 'unlicen[cs]e', 'eula',
|
|
17
17
|
'[a,l]?gpl[-]?[1-3]?[.,-,_]?[0-1]?', 'mit', 'bsd[-]?[0-4]?', 'bsd[-]?[0-4][-]?clause[s]?',
|
|
18
18
|
'apache[-,_]?[1-2]?[.,-,_]?[0-2]?']
|
|
@@ -176,15 +176,14 @@ def create_report_file(
|
|
|
176
176
|
for i, output_extension in enumerate(output_extensions):
|
|
177
177
|
if output_files[i] is None or output_files[i] == "":
|
|
178
178
|
if formats:
|
|
179
|
-
if formats[i].startswith('spdx')
|
|
179
|
+
if formats[i].startswith('spdx'):
|
|
180
180
|
if platform.system() == 'Windows':
|
|
181
181
|
logger.warning(f'{formats[i]} is not supported on Windows.Please remove {formats[i]} from format.')
|
|
182
182
|
to_remove.append(i)
|
|
183
183
|
else:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
output_files[i] = f'fosslight_cyclonedx_src_{name_time}'
|
|
184
|
+
output_files[i] = f"fosslight_spdx_src_{name_time}"
|
|
185
|
+
elif formats[i].startswith('cyclonedx'):
|
|
186
|
+
output_files[i] = f'fosslight_cyclonedx_src_{name_time}'
|
|
188
187
|
else:
|
|
189
188
|
if output_extension == _json_ext:
|
|
190
189
|
output_files[i] = f"fosslight_opossum_src_{name_time}"
|
|
@@ -276,7 +275,8 @@ def create_report_file(
|
|
|
276
275
|
# if need_license and output_extension == _json_ext and "scanoss_reference" in sheet_list:
|
|
277
276
|
# del sheet_list["scanoss_reference"]
|
|
278
277
|
result = write_output_file(
|
|
279
|
-
combined_path_and_file, output_extension, scan_item, hide_header="", format=output_format
|
|
278
|
+
combined_path_and_file, output_extension, scan_item, hide_header="", format=output_format,
|
|
279
|
+
scanner_covers=[scan_item.cover]
|
|
280
280
|
)
|
|
281
281
|
results.append(result)
|
|
282
282
|
for success, msg, result_file in results:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fosslight_source
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.14
|
|
4
4
|
Summary: FOSSLight Source Scanner
|
|
5
5
|
Author: LG Electronics
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,11 +20,11 @@ Requires-Dist: setuptools<=80.10.2
|
|
|
20
20
|
Requires-Dist: pyparsing
|
|
21
21
|
Requires-Dist: scanoss>=1.45.0
|
|
22
22
|
Requires-Dist: XlsxWriter
|
|
23
|
-
Requires-Dist: fosslight_util>=2.2.
|
|
23
|
+
Requires-Dist: fosslight_util>=2.2.14
|
|
24
24
|
Requires-Dist: PyYAML
|
|
25
25
|
Requires-Dist: wheel>=0.38.1
|
|
26
26
|
Requires-Dist: intbitset
|
|
27
|
-
Requires-Dist: scancode-toolkit>=32.0
|
|
27
|
+
Requires-Dist: scancode-toolkit>=32.5.0
|
|
28
28
|
Requires-Dist: lxml>=6.0.1
|
|
29
29
|
Requires-Dist: cryptography<49; platform_system == "Darwin" and platform_machine == "x86_64"
|
|
30
30
|
Requires-Dist: fingerprints==1.2.3
|
|
@@ -55,7 +55,7 @@ Detect the license for the source code.
|
|
|
55
55
|
Use Source Code Scanner and process the scanner results.
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
**FOSSLight Source Scanner** uses source code scanners, [ScanCode][sc] and [SCANOSS][scanoss]. [ScanCode][sc] detects copyright and license phrases contained in the file and [SCANOSS][scanoss] searches OSS Name, OSS Version, download location, copyright and license information from [OSSKB][osskb]. Some files (ex- build script), binary files, directory and files in specific directories (ex-test) are excluded from the result.
|
|
58
|
+
**FOSSLight Source Scanner** uses source code scanners, [ScanCode][sc] and [SCANOSS][scanoss]. [ScanCode][sc] detects copyright and license phrases contained in the file and [SCANOSS][scanoss] searches OSS Name, OSS Version, download location, copyright and license information from [OSSKB][osskb]. Some files (ex- build script), binary files, directory and files in specific directories (ex-test) are excluded from the result. The output result is generated in spreadsheet format.
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
[sc]: https://github.com/nexB/scancode-toolkit
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/requires.txt
RENAMED
|
@@ -2,11 +2,11 @@ setuptools<=80.10.2
|
|
|
2
2
|
pyparsing
|
|
3
3
|
scanoss>=1.45.0
|
|
4
4
|
XlsxWriter
|
|
5
|
-
fosslight_util>=2.2.
|
|
5
|
+
fosslight_util>=2.2.14
|
|
6
6
|
PyYAML
|
|
7
7
|
wheel>=0.38.1
|
|
8
8
|
intbitset
|
|
9
|
-
scancode-toolkit>=32.0
|
|
9
|
+
scancode-toolkit>=32.5.0
|
|
10
10
|
lxml>=6.0.1
|
|
11
11
|
fingerprints==1.2.3
|
|
12
12
|
normality==2.6.1
|
|
@@ -107,8 +107,8 @@ def test_unknown_spdx_in_compound_expression_splits_and_or():
|
|
|
107
107
|
success, results, _messages, _ = parsing_scancode(scancode_file_list)
|
|
108
108
|
|
|
109
109
|
assert success is True
|
|
110
|
-
assert results[0].licenses == ["GPL-2.0", "MIT-like"]
|
|
111
|
-
assert results[0].comment == "GPL-2.0 OR MIT-like"
|
|
110
|
+
assert results[0].licenses == ["GPL-2.0-only", "MIT-like"]
|
|
111
|
+
assert results[0].comment == "GPL-2.0-only OR MIT-like"
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
def test_unknown_spdx_comment_preserves_and_or_from_detected_expression():
|
|
@@ -171,7 +171,7 @@ def test_unknown_license_reference_suppressed_when_same_matched_text_has_other_l
|
|
|
171
171
|
success, results, _messages, _ = parsing_scancode(scancode_file_list)
|
|
172
172
|
|
|
173
173
|
assert success is True
|
|
174
|
-
assert results[0].licenses == ["GPL-2.0"]
|
|
174
|
+
assert results[0].licenses == ["GPL-2.0-only"]
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
@pytest.mark.parametrize(
|
|
@@ -381,7 +381,7 @@ def test_build_comment_from_detected_expression_helper():
|
|
|
381
381
|
matches,
|
|
382
382
|
_should_suppress_unknown_license_reference(matches, has_other_license),
|
|
383
383
|
)
|
|
384
|
-
assert comment == "NEW OR DApache-2.0 AND GPL-2.0"
|
|
384
|
+
assert comment == "NEW OR DApache-2.0 AND GPL-2.0-only"
|
|
385
385
|
|
|
386
386
|
|
|
387
387
|
def test_comment_without_parens_uses_operator_before_kept_token():
|
|
@@ -554,7 +554,7 @@ def test_ignore_unknown_spdx_when_file_has_spdx_declaration():
|
|
|
554
554
|
success, results, _messages, _ = parsing_scancode(scancode_file_list)
|
|
555
555
|
|
|
556
556
|
assert success is True
|
|
557
|
-
assert results[0].licenses == ["GPL-2.0"]
|
|
557
|
+
assert results[0].licenses == ["GPL-2.0-only"]
|
|
558
558
|
assert all("unknown" not in lic.lower() for lic in results[0].licenses)
|
|
559
559
|
assert all("tag" not in lic.lower() for lic in results[0].licenses)
|
|
560
560
|
|
|
@@ -604,7 +604,7 @@ def test_spdx_priority_drops_body_rule_matches():
|
|
|
604
604
|
success, results, _messages, _ = parsing_scancode(scancode_file_list)
|
|
605
605
|
|
|
606
606
|
assert success is True
|
|
607
|
-
assert results[0].licenses == ["GPL-2.0"]
|
|
607
|
+
assert results[0].licenses == ["GPL-2.0-only"]
|
|
608
608
|
# Body singles covered by OR expression are dropped; Detected keeps the OR form.
|
|
609
609
|
assert results[0].comment == "Detected: gpl-2.0 OR bsd-simplified"
|
|
610
610
|
|
|
@@ -852,7 +852,7 @@ def test_spdx_priority_detected_comment_uses_spdx_ids():
|
|
|
852
852
|
success, results, _messages, _ = parsing_scancode(scancode_file_list)
|
|
853
853
|
|
|
854
854
|
assert success is True
|
|
855
|
-
assert results[0].licenses == ["GPL-2.0"]
|
|
855
|
+
assert results[0].licenses == ["GPL-2.0-only"]
|
|
856
856
|
assert results[0].comment == (
|
|
857
857
|
"Detected: GPL-2.0-only OR BSD-2-Clause, unknown-spdx"
|
|
858
858
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_license_matched.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/_parsing_scanoss_file.py
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/run_manifest_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source/run_spdx_extractor.py
RENAMED
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_source-2.3.12 → fosslight_source-2.3.14}/tests/test_manifest_recommended_scenarios.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|