fosslight-source 2.3.13__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.
Files changed (36) hide show
  1. {fosslight_source-2.3.13/src/fosslight_source.egg-info → fosslight_source-2.3.14}/PKG-INFO +2 -2
  2. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/README.md +1 -1
  3. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/pyproject.toml +1 -1
  4. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_scan_item.py +1 -1
  5. {fosslight_source-2.3.13 → fosslight_source-2.3.14/src/fosslight_source.egg-info}/PKG-INFO +2 -2
  6. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_parsing_unknown_spdx.py +7 -7
  7. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/LICENSE +0 -0
  8. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/MANIFEST.in +0 -0
  9. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/setup.cfg +0 -0
  10. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/__init__.py +0 -0
  11. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_exclude.py +0 -0
  12. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_help.py +0 -0
  13. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_kb_client.py +0 -0
  14. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_license_matched.py +0 -0
  15. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_merge.py +0 -0
  16. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_parsing_scancode_file_item.py +0 -0
  17. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_parsing_scanoss_file.py +0 -0
  18. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/_scancode_ignore_binaries.py +0 -0
  19. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/cli.py +0 -0
  20. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/run_manifest_extractor.py +0 -0
  21. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/run_scancode.py +0 -0
  22. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/run_scanoss.py +0 -0
  23. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source/run_spdx_extractor.py +0 -0
  24. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/SOURCES.txt +0 -0
  25. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
  26. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/entry_points.txt +0 -0
  27. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/requires.txt +0 -0
  28. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/src/fosslight_source.egg-info/top_level.txt +0 -0
  29. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_kb_ssl.py +0 -0
  30. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_manifest_android_bp.py +0 -0
  31. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_manifest_composer.py +0 -0
  32. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_manifest_pyproject.py +0 -0
  33. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_manifest_recommended_scenarios.py +0 -0
  34. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_manifest_setup_cfg.py +0 -0
  35. {fosslight_source-2.3.13 → fosslight_source-2.3.14}/tests/test_multi_value_order.py +0 -0
  36. {fosslight_source-2.3.13 → 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.13
3
+ Version: 2.3.14
4
4
  Summary: FOSSLight Source Scanner
5
5
  Author: LG Electronics
6
6
  License-Expression: Apache-2.0
@@ -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. And removes words such as "-only" and "-old-style" from the license name to be printed. The output result is generated in spreadsheet format.
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. And removes words such as "-only" and "-old-style" from the license name to be printed. The output result is generated in spreadsheet format.
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.13"
10
+ version = "2.3.14"
11
11
  description = "FOSSLight Source Scanner"
12
12
  readme = "README.md"
13
13
  license = "Apache-2.0"
@@ -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 = ["-only", "-old-style", "-or-later", "licenseref-scancode-", "licenseref-"]
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]?']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fosslight_source
3
- Version: 2.3.13
3
+ Version: 2.3.14
4
4
  Summary: FOSSLight Source Scanner
5
5
  Author: LG Electronics
6
6
  License-Expression: Apache-2.0
@@ -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. And removes words such as "-only" and "-old-style" from the license name to be printed. The output result is generated in spreadsheet format.
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
@@ -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
  )