fosslight-source 2.1.2__tar.gz → 2.1.4__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.2 → fosslight_source-2.1.4}/PKG-INFO +1 -1
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/requirements.txt +2 -2
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/setup.py +1 -1
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/cli.py +11 -6
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/run_scanoss.py +2 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/PKG-INFO +1 -1
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/requires.txt +2 -2
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/LICENSE +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/MANIFEST.in +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/README.md +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/setup.cfg +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/__init__.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/_help.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/_license_matched.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/_parsing_scancode_file_item.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/_parsing_scanoss_file.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/_scan_item.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/run_scancode.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/run_spdx_extractor.py +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/SOURCES.txt +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/entry_points.txt +0 -0
- {fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/top_level.txt +0 -0
|
@@ -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.4',
|
|
18
18
|
package_dir={"": "src"},
|
|
19
19
|
packages=find_packages(where='src'),
|
|
20
20
|
description='FOSSLight Source Scanner',
|
|
@@ -174,12 +174,15 @@ def create_report_file(
|
|
|
174
174
|
for i, output_extension in enumerate(output_extensions):
|
|
175
175
|
if output_files[i] is None or output_files[i] == "":
|
|
176
176
|
if formats:
|
|
177
|
-
if formats[i].startswith('spdx'):
|
|
178
|
-
if platform.system()
|
|
179
|
-
|
|
180
|
-
else:
|
|
181
|
-
logger.warning('spdx format is not supported on Windows. Please remove spdx from format.')
|
|
177
|
+
if formats[i].startswith('spdx') or formats[i].startswith('cyclonedx'):
|
|
178
|
+
if platform.system() == 'Windows':
|
|
179
|
+
logger.warning(f'{formats[i]} is not supported on Windows.Please remove {formats[i]} from format.')
|
|
182
180
|
to_remove.append(i)
|
|
181
|
+
else:
|
|
182
|
+
if formats[i].stasrtswith('spdx'):
|
|
183
|
+
output_files[i] = f"fosslight_spdx_src_{_start_time}"
|
|
184
|
+
elif formats[i].startswith('cyclonedx'):
|
|
185
|
+
output_files[i] = f'fosslight_cyclonedx_src_{_start_time}'
|
|
183
186
|
else:
|
|
184
187
|
if output_extension == _json_ext:
|
|
185
188
|
output_files[i] = f"fosslight_opossum_src_{_start_time}"
|
|
@@ -204,7 +207,9 @@ def create_report_file(
|
|
|
204
207
|
scan_item = ScannerItem(PKG_NAME, _start_time)
|
|
205
208
|
scan_item.set_cover_pathinfo(path_to_scan, path_to_exclude)
|
|
206
209
|
files_count, removed_files_count = count_files(path_to_scan, path_to_exclude)
|
|
207
|
-
|
|
210
|
+
|
|
211
|
+
scan_item.set_cover_comment(f"Total number of files : {files_count}")
|
|
212
|
+
scan_item.set_cover_comment(f"Removed files : {removed_files_count}")
|
|
208
213
|
|
|
209
214
|
if not merged_result:
|
|
210
215
|
if files_count < 1:
|
|
@@ -64,6 +64,8 @@ def run_scanoss_py(path_to_scan: str, output_file_name: str = "", format: list =
|
|
|
64
64
|
if not os.path.isdir(output_path):
|
|
65
65
|
Path(output_path).mkdir(parents=True, exist_ok=True)
|
|
66
66
|
output_json_file = os.path.join(output_path, SCANOSS_OUTPUT_FILE)
|
|
67
|
+
if os.path.exists(output_json_file): # remove scanner_output.wfp file if exist
|
|
68
|
+
os.remove(output_json_file)
|
|
67
69
|
|
|
68
70
|
try:
|
|
69
71
|
scanner = Scanner(
|
|
File without changes
|
|
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.2 → fosslight_source-2.1.4}/src/fosslight_source/_parsing_scanoss_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source/run_spdx_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{fosslight_source-2.1.2 → fosslight_source-2.1.4}/src/fosslight_source.egg-info/top_level.txt
RENAMED
|
File without changes
|