fosslight-source 2.1.1__tar.gz → 2.1.3__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.1 → fosslight_source-2.1.3}/PKG-INFO +1 -1
- fosslight_source-2.1.3/requirements.txt +11 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/setup.py +1 -1
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/cli.py +4 -2
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/run_scancode.py +1 -1
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/run_scanoss.py +2 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source.egg-info/PKG-INFO +1 -1
- fosslight_source-2.1.3/src/fosslight_source.egg-info/requires.txt +15 -0
- fosslight_source-2.1.1/requirements.txt +0 -9
- fosslight_source-2.1.1/src/fosslight_source.egg-info/requires.txt +0 -9
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/LICENSE +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/MANIFEST.in +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/README.md +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/setup.cfg +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/__init__.py +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/_help.py +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/_license_matched.py +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/_parsing_scancode_file_item.py +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/_parsing_scanoss_file.py +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/_scan_item.py +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/run_spdx_extractor.py +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source.egg-info/SOURCES.txt +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source.egg-info/entry_points.txt +0 -0
- {fosslight_source-2.1.1 → fosslight_source-2.1.3}/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.3',
|
|
18
18
|
package_dir={"": "src"},
|
|
19
19
|
packages=find_packages(where='src'),
|
|
20
20
|
description='FOSSLight Source Scanner',
|
|
@@ -119,7 +119,7 @@ def main() -> None:
|
|
|
119
119
|
except Exception as ex:
|
|
120
120
|
logger.debug(f"Failed to print log.: {ex}")
|
|
121
121
|
else:
|
|
122
|
-
logger.error(f"Input path({path_to_scan}) is not a directory. Please enter a valid path.")
|
|
122
|
+
logger.error(f"(-p option) Input path({path_to_scan}) is not a directory. Please enter a valid path.")
|
|
123
123
|
sys.exit(1)
|
|
124
124
|
|
|
125
125
|
|
|
@@ -204,7 +204,9 @@ def create_report_file(
|
|
|
204
204
|
scan_item = ScannerItem(PKG_NAME, _start_time)
|
|
205
205
|
scan_item.set_cover_pathinfo(path_to_scan, path_to_exclude)
|
|
206
206
|
files_count, removed_files_count = count_files(path_to_scan, path_to_exclude)
|
|
207
|
-
|
|
207
|
+
|
|
208
|
+
scan_item.set_cover_comment(f"Total number of files : {files_count}")
|
|
209
|
+
scan_item.set_cover_comment(f"Removed files : {removed_files_count}")
|
|
208
210
|
|
|
209
211
|
if not merged_result:
|
|
210
212
|
if files_count < 1:
|
|
@@ -135,7 +135,7 @@ def run_scan(
|
|
|
135
135
|
logger.error(f"Analyze {path_to_scan}: {msg}")
|
|
136
136
|
else:
|
|
137
137
|
success = False
|
|
138
|
-
msg = "Check the path to scan
|
|
138
|
+
msg = f"(-p option) Check the path to scan: {path_to_scan}"
|
|
139
139
|
|
|
140
140
|
if not return_results:
|
|
141
141
|
result_list = []
|
|
@@ -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(
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
pyparsing
|
|
2
|
+
scanoss<=1.14.0
|
|
3
|
+
XlsxWriter
|
|
4
|
+
fosslight_util>=2.1.1
|
|
5
|
+
PyYAML
|
|
6
|
+
wheel>=0.38.1
|
|
7
|
+
intbitset
|
|
8
|
+
fosslight_binary>=5.0.0
|
|
9
|
+
psycopg2-binary==2.9.9
|
|
10
|
+
|
|
11
|
+
[:sys_platform != "darwin"]
|
|
12
|
+
scancode-toolkit==32.2.*
|
|
13
|
+
|
|
14
|
+
[:sys_platform == "darwin"]
|
|
15
|
+
scancode-toolkit==32.0.*
|
|
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.1 → fosslight_source-2.1.3}/src/fosslight_source/_parsing_scanoss_file.py
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source/run_spdx_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{fosslight_source-2.1.1 → fosslight_source-2.1.3}/src/fosslight_source.egg-info/top_level.txt
RENAMED
|
File without changes
|