fosslight-source 2.3.1__tar.gz → 2.3.2__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 (25) hide show
  1. {fosslight_source-2.3.1/src/fosslight_source.egg-info → fosslight_source-2.3.2}/PKG-INFO +9 -3
  2. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/README.md +8 -2
  3. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/pyproject.toml +1 -1
  4. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/_kb_client.py +16 -13
  5. {fosslight_source-2.3.1 → fosslight_source-2.3.2/src/fosslight_source.egg-info}/PKG-INFO +9 -3
  6. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/LICENSE +0 -0
  7. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/MANIFEST.in +0 -0
  8. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/setup.cfg +0 -0
  9. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/__init__.py +0 -0
  10. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/_help.py +0 -0
  11. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/_license_matched.py +0 -0
  12. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/_parsing_scancode_file_item.py +0 -0
  13. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/_parsing_scanoss_file.py +0 -0
  14. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/_scan_item.py +0 -0
  15. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/cli.py +0 -0
  16. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/run_manifest_extractor.py +0 -0
  17. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/run_scancode.py +0 -0
  18. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/run_scanoss.py +0 -0
  19. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source/run_spdx_extractor.py +0 -0
  20. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source.egg-info/SOURCES.txt +0 -0
  21. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
  22. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source.egg-info/entry_points.txt +0 -0
  23. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source.egg-info/requires.txt +0 -0
  24. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/src/fosslight_source.egg-info/top_level.txt +0 -0
  25. {fosslight_source-2.3.1 → fosslight_source-2.3.2}/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.1
3
+ Version: 2.3.2
4
4
  Summary: FOSSLight Source Scanner
5
5
  Author: LG Electronics
6
6
  License-Expression: Apache-2.0
@@ -68,10 +68,16 @@ We describe the user guide in the FOSSLight guide page.
68
68
  Please see the [**User Guide**](https://fosslight.org/fosslight-guide-en/scanner/2_source.html) for more information on how to install and run it.
69
69
 
70
70
 
71
+ ## 📝 How to report issue
72
+
73
+ Please report any ideas or bugs to improve by creating an issue in [Git Repository][repo]. Then there will be quick bug fixes and upgrades. Ideas to improve are always welcome.
74
+
75
+ [repo]: https://github.com/fosslight/fosslight_source_scanner/issues
76
+
77
+
71
78
  ## 👏 Contributing Guide
72
79
 
73
- We always welcome your contributions.
74
- Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
80
+ We always welcome your contributions. Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
75
81
 
76
82
 
77
83
  ## 📄 License
@@ -32,10 +32,16 @@ We describe the user guide in the FOSSLight guide page.
32
32
  Please see the [**User Guide**](https://fosslight.org/fosslight-guide-en/scanner/2_source.html) for more information on how to install and run it.
33
33
 
34
34
 
35
+ ## 📝 How to report issue
36
+
37
+ Please report any ideas or bugs to improve by creating an issue in [Git Repository][repo]. Then there will be quick bug fixes and upgrades. Ideas to improve are always welcome.
38
+
39
+ [repo]: https://github.com/fosslight/fosslight_source_scanner/issues
40
+
41
+
35
42
  ## 👏 Contributing Guide
36
43
 
37
- We always welcome your contributions.
38
- Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
44
+ We always welcome your contributions. Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
39
45
 
40
46
 
41
47
  ## 📄 License
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "fosslight_source"
10
- version = "2.3.1"
10
+ version = "2.3.2"
11
11
  description = "FOSSLight Source Scanner"
12
12
  readme = "README.md"
13
13
  license = "Apache-2.0"
@@ -134,17 +134,18 @@ def fetch_origin_urls_via_scan_job(
134
134
  created = _kb_request(kb_url, "scan/jobs", method="POST", payload=create_payload, kb_token=kb_token)
135
135
  except urllib.error.HTTPError as e:
136
136
  failure_message = _scan_job_failure_message(_parse_http_error_body(e))
137
- if failure_message:
138
- logger.warning(f"KB scan job create failed: {failure_message}")
139
- return _kb_scan_job_result({}, failure_message, requested_count)
140
- logger.warning(f"KB scan job create failed: HTTP {e.code} {e.reason}")
141
- return _kb_scan_job_result({}, None, requested_count)
137
+ if not failure_message:
138
+ failure_message = f"HTTP {e.code} {e.reason}"
139
+ logger.warning(f"KB scan job create failed: {failure_message}")
140
+ return _kb_scan_job_result({}, failure_message, requested_count)
142
141
  except urllib.error.URLError as e:
143
- logger.warning(f"KB scan job create failed: {e}")
144
- return _kb_scan_job_result({}, None, requested_count)
142
+ failure_message = str(e)
143
+ logger.warning(f"KB scan job create failed: {failure_message}")
144
+ return _kb_scan_job_result({}, failure_message, requested_count)
145
145
  except Exception as e:
146
- logger.warning(f"KB scan job create failed: {e}")
147
- return _kb_scan_job_result({}, None, requested_count)
146
+ failure_message = str(e)
147
+ logger.warning(f"KB scan job create failed: {failure_message}")
148
+ return _kb_scan_job_result({}, failure_message, requested_count)
148
149
 
149
150
  failure_message = _scan_job_failure_message(created)
150
151
  if failure_message:
@@ -152,13 +153,15 @@ def fetch_origin_urls_via_scan_job(
152
153
  return _kb_scan_job_result({}, failure_message, requested_count)
153
154
 
154
155
  if str(created.get("status", "")).lower() == "failed":
155
- logger.warning("KB scan job create failed")
156
- return _kb_scan_job_result({}, None, requested_count)
156
+ failure_message = "scan job create failed"
157
+ logger.warning(f"KB scan job create failed: {failure_message}")
158
+ return _kb_scan_job_result({}, failure_message, requested_count)
157
159
 
158
160
  job_id = created.get("job_id", "")
159
161
  if not job_id:
160
- logger.warning("KB scan job create response missing job_id")
161
- return _kb_scan_job_result({}, None, requested_count)
162
+ failure_message = "scan job create response missing job_id"
163
+ logger.warning(f"KB scan job create failed: {failure_message}")
164
+ return _kb_scan_job_result({}, failure_message, requested_count)
162
165
 
163
166
  fallback_count = len(unique_hashes)
164
167
  accepted = _coerce_count(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fosslight_source
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: FOSSLight Source Scanner
5
5
  Author: LG Electronics
6
6
  License-Expression: Apache-2.0
@@ -68,10 +68,16 @@ We describe the user guide in the FOSSLight guide page.
68
68
  Please see the [**User Guide**](https://fosslight.org/fosslight-guide-en/scanner/2_source.html) for more information on how to install and run it.
69
69
 
70
70
 
71
+ ## 📝 How to report issue
72
+
73
+ Please report any ideas or bugs to improve by creating an issue in [Git Repository][repo]. Then there will be quick bug fixes and upgrades. Ideas to improve are always welcome.
74
+
75
+ [repo]: https://github.com/fosslight/fosslight_source_scanner/issues
76
+
77
+
71
78
  ## 👏 Contributing Guide
72
79
 
73
- We always welcome your contributions.
74
- Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
80
+ We always welcome your contributions. Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
75
81
 
76
82
 
77
83
  ## 📄 License