fosslight-source 2.3.10__tar.gz → 2.3.12__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.10/src/fosslight_source.egg-info → fosslight_source-2.3.12}/PKG-INFO +2 -2
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/pyproject.toml +2 -2
- fosslight_source-2.3.12/src/fosslight_source/_exclude.py +21 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_merge.py +2 -1
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_parsing_scancode_file_item.py +396 -115
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_parsing_scanoss_file.py +2 -1
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_scan_item.py +6 -4
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_scancode_ignore_binaries.py +43 -8
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/cli.py +21 -8
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/run_manifest_extractor.py +20 -3
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/run_scancode.py +42 -1
- {fosslight_source-2.3.10 → fosslight_source-2.3.12/src/fosslight_source.egg-info}/PKG-INFO +2 -2
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source.egg-info/SOURCES.txt +3 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source.egg-info/requires.txt +1 -1
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/tests/test_manifest_android_bp.py +6 -6
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/tests/test_manifest_recommended_scenarios.py +25 -8
- fosslight_source-2.3.12/tests/test_manifest_setup_cfg.py +41 -0
- fosslight_source-2.3.12/tests/test_multi_value_order.py +26 -0
- fosslight_source-2.3.12/tests/test_parsing_unknown_spdx.py +858 -0
- fosslight_source-2.3.10/tests/test_parsing_unknown_spdx.py +0 -346
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/LICENSE +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/MANIFEST.in +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/README.md +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/setup.cfg +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/__init__.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_help.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_kb_client.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/_license_matched.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/run_scanoss.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source/run_spdx_extractor.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source.egg-info/entry_points.txt +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/src/fosslight_source.egg-info/top_level.txt +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/tests/test_kb_ssl.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/tests/test_manifest_composer.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/tests/test_manifest_pyproject.py +0 -0
- {fosslight_source-2.3.10 → fosslight_source-2.3.12}/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.12
|
|
4
4
|
Summary: FOSSLight Source Scanner
|
|
5
5
|
Author: LG Electronics
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,7 +20,7 @@ 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.12
|
|
24
24
|
Requires-Dist: PyYAML
|
|
25
25
|
Requires-Dist: wheel>=0.38.1
|
|
26
26
|
Requires-Dist: intbitset
|
|
@@ -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.12"
|
|
11
11
|
description = "FOSSLight Source Scanner"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
license = "Apache-2.0"
|
|
@@ -29,7 +29,7 @@ dependencies = [
|
|
|
29
29
|
"pyparsing",
|
|
30
30
|
"scanoss>=1.45.0",
|
|
31
31
|
"XlsxWriter",
|
|
32
|
-
"fosslight_util>=2.2.
|
|
32
|
+
"fosslight_util>=2.2.12",
|
|
33
33
|
"PyYAML",
|
|
34
34
|
"wheel>=0.38.1",
|
|
35
35
|
"intbitset",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (c) 2026 LG Electronics Inc.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
"""Source-scanner filename excludes (not applied to dependency discovery)."""
|
|
5
|
+
|
|
6
|
+
from fosslight_util.exclude import is_excluded_filename
|
|
7
|
+
|
|
8
|
+
# Build/package config noise for license scans.
|
|
9
|
+
EXCLUDE_FILENAME_SOURCE = frozenset({
|
|
10
|
+
"changelog", "config.guess", "config.sub", "changes", "ltmain.sh",
|
|
11
|
+
"configure", "configure.ac", "depcomp", "compile", "missing", "makefile",
|
|
12
|
+
"makefile.am",
|
|
13
|
+
"build.gradle", "build.gradle.kts", "settings.gradle", "settings.gradle.kts",
|
|
14
|
+
"gradlew", "gradlew.bat",
|
|
15
|
+
"vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs",
|
|
16
|
+
"package-lock.json", "npm-shrinkwrap.json", "yarn.lock", "pnpm-lock.yaml",
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def is_excluded_source_filename(file_path: str) -> bool:
|
|
21
|
+
return is_excluded_filename(file_path, EXCLUDE_FILENAME_SOURCE)
|
|
@@ -111,7 +111,8 @@ def _get_top_merge_values(scan_items: list, value_getter) -> list:
|
|
|
111
111
|
normalized_value = _normalize_merge_text(value)
|
|
112
112
|
if normalized_value:
|
|
113
113
|
values.append(normalized_value)
|
|
114
|
-
|
|
114
|
+
ranked = sorted(Counter(values).items(), key=lambda entry: (-entry[1], entry[0]))
|
|
115
|
+
return [value for value, _ in ranked[:3]]
|
|
115
116
|
|
|
116
117
|
|
|
117
118
|
def _can_merge_folder(scan_items: list) -> bool:
|