fosslight-source 2.1.8__tar.gz → 2.1.10__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.10/PKG-INFO +62 -0
- fosslight_source-2.1.10/requirements.txt +9 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/setup.py +4 -5
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/_parsing_scancode_file_item.py +8 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/_parsing_scanoss_file.py +0 -6
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/_scan_item.py +9 -3
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/cli.py +0 -1
- fosslight_source-2.1.10/src/fosslight_source.egg-info/PKG-INFO +62 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source.egg-info/entry_points.txt +0 -1
- fosslight_source-2.1.10/src/fosslight_source.egg-info/requires.txt +9 -0
- fosslight_source-2.1.8/PKG-INFO +0 -63
- fosslight_source-2.1.8/requirements.txt +0 -12
- fosslight_source-2.1.8/src/fosslight_source.egg-info/PKG-INFO +0 -63
- fosslight_source-2.1.8/src/fosslight_source.egg-info/requires.txt +0 -16
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/LICENSE +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/MANIFEST.in +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/README.md +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/setup.cfg +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/__init__.py +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/_help.py +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/_license_matched.py +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/run_scancode.py +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/run_scanoss.py +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/run_spdx_extractor.py +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source.egg-info/SOURCES.txt +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source.egg-info/dependency_links.txt +0 -0
- {fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: fosslight_source
|
|
3
|
+
Version: 2.1.10
|
|
4
|
+
Summary: FOSSLight Source Scanner
|
|
5
|
+
Home-page: https://github.com/fosslight/fosslight_source_scanner
|
|
6
|
+
Download-URL: https://github.com/fosslight/fosslight_source_scanner
|
|
7
|
+
Author: LG Electronics
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Requires-Python: >=3.10, <3.13
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
|
|
18
|
+
<!--
|
|
19
|
+
Copyright (c) 2021 LG Electronics
|
|
20
|
+
SPDX-License-Identifier: Apache-2.0
|
|
21
|
+
-->
|
|
22
|
+
<p align='right'>
|
|
23
|
+
<a href="https://fosslight.org/fosslight-guide/scanner/2_source.html">
|
|
24
|
+
[Korean]
|
|
25
|
+
</a>
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
# FOSSLight Source Scanner
|
|
29
|
+
|
|
30
|
+
<img src="https://img.shields.io/pypi/l/fosslight_source" alt="FOSSLight Source Scanner is released under the Apache-2.0 License." /> <img src="https://img.shields.io/pypi/v/fosslight_source" alt="Current python package version." /> <img src="https://img.shields.io/pypi/pyversions/fosslight_source" /> [](https://api.reuse.software/info/github.com/fosslight/fosslight_source_scanner) [](https://fosslight.org/fosslight-guide-en/scanner/2_source.html)
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
```note
|
|
34
|
+
Detect the license for the source code.
|
|
35
|
+
Use Source Code Scanner and process the scanner results.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**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.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
[sc]: https://github.com/nexB/scancode-toolkit
|
|
42
|
+
[scanoss]: https://github.com/scanoss/scanoss.py
|
|
43
|
+
[osskb]: https://osskb.org/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## 📖 User Guide
|
|
47
|
+
|
|
48
|
+
We describe the user guide in the FOSSLight guide page.
|
|
49
|
+
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.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## 👏 Contributing Guide
|
|
53
|
+
|
|
54
|
+
We always welcome your contributions.
|
|
55
|
+
Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## 📄 License
|
|
59
|
+
|
|
60
|
+
FOSSLight Source Scanner is Apache-2.0, as found in the [LICENSE][l] file.
|
|
61
|
+
|
|
62
|
+
[l]: https://github.com/fosslight/fosslight_source_scanner/blob/main/LICENSE
|
|
@@ -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.10',
|
|
18
18
|
package_dir={"": "src"},
|
|
19
19
|
packages=find_packages(where='src'),
|
|
20
20
|
description='FOSSLight Source Scanner',
|
|
@@ -26,11 +26,10 @@ if __name__ == "__main__":
|
|
|
26
26
|
download_url='https://github.com/fosslight/fosslight_source_scanner',
|
|
27
27
|
classifiers=['License :: OSI Approved :: Apache Software License',
|
|
28
28
|
"Programming Language :: Python :: 3",
|
|
29
|
-
"Programming Language :: Python :: 3.8",
|
|
30
|
-
"Programming Language :: Python :: 3.9",
|
|
31
29
|
"Programming Language :: Python :: 3.10",
|
|
32
|
-
"Programming Language :: Python :: 3.11",
|
|
33
|
-
|
|
30
|
+
"Programming Language :: Python :: 3.11",
|
|
31
|
+
"Programming Language :: Python :: 3.12", ],
|
|
32
|
+
python_requires=">=3.10, <3.13",
|
|
34
33
|
install_requires=required,
|
|
35
34
|
entry_points={
|
|
36
35
|
"console_scripts": [
|
|
@@ -13,6 +13,7 @@ from ._scan_item import is_exclude_dir
|
|
|
13
13
|
from ._scan_item import is_exclude_file
|
|
14
14
|
from ._scan_item import replace_word
|
|
15
15
|
from ._scan_item import is_notice_file
|
|
16
|
+
from ._scan_item import is_manifest_file
|
|
16
17
|
from typing import Tuple
|
|
17
18
|
|
|
18
19
|
logger = logging.getLogger(constant.LOGGER_NAME)
|
|
@@ -169,6 +170,9 @@ def parsing_scancode_32_earlier(scancode_file_list: list, has_error: bool = Fals
|
|
|
169
170
|
set(license_expression_list))
|
|
170
171
|
result_item.comment = ','.join(license_expression_list)
|
|
171
172
|
|
|
173
|
+
if is_manifest_file(file_path):
|
|
174
|
+
result_item.is_license_text = True
|
|
175
|
+
|
|
172
176
|
if is_exclude_file(file_path, prev_dir, prev_dir_value):
|
|
173
177
|
result_item.exclude = True
|
|
174
178
|
scancode_file_item.append(result_item)
|
|
@@ -269,6 +273,10 @@ def parsing_scancode_32_later(
|
|
|
269
273
|
|
|
270
274
|
result_item.exclude = is_exclude_file(file_path)
|
|
271
275
|
result_item.is_license_text = file.get("percentage_of_license_text", 0) > 90 or is_notice_file(file_path)
|
|
276
|
+
|
|
277
|
+
if is_manifest_file(file_path) and len(license_detected) > 0:
|
|
278
|
+
result_item.is_license_text = True
|
|
279
|
+
|
|
272
280
|
scancode_file_item.append(result_item)
|
|
273
281
|
except Exception as ex:
|
|
274
282
|
msg.append(f"Error Parsing item: {ex}")
|
{fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/_parsing_scanoss_file.py
RENAMED
|
@@ -60,7 +60,6 @@ def parsing_scanResult(scanoss_report: dict, path_to_scan: str = "", path_to_exc
|
|
|
60
60
|
license_detected = []
|
|
61
61
|
license_w_source = {"component_declared": [], "file_spdx_tag": [],
|
|
62
62
|
"file_header": [], "license_file": [], "scancode": []}
|
|
63
|
-
copyright_detected = []
|
|
64
63
|
if 'licenses' in findings[0]:
|
|
65
64
|
for license in findings[0]['licenses']:
|
|
66
65
|
|
|
@@ -78,11 +77,6 @@ def parsing_scanResult(scanoss_report: dict, path_to_scan: str = "", path_to_exc
|
|
|
78
77
|
if len(license_detected) > 0:
|
|
79
78
|
result_item.licenses = license_detected
|
|
80
79
|
result_item.scanoss_reference = license_w_source
|
|
81
|
-
if 'copyrights' in findings[0]:
|
|
82
|
-
for copyright in findings[0]['copyrights']:
|
|
83
|
-
copyright_detected.append(copyright['name'])
|
|
84
|
-
if len(copyright_detected) > 0:
|
|
85
|
-
result_item.copyright = copyright_detected
|
|
86
80
|
|
|
87
81
|
if is_exclude_file(file_path):
|
|
88
82
|
result_item.exclude = True
|
|
@@ -14,6 +14,7 @@ replace_word = ["-only", "-old-style", "-or-later", "licenseref-scancode-", "lic
|
|
|
14
14
|
_notice_filename = ['licen[cs]e[s]?', 'notice[s]?', 'legal', 'copyright[s]?', 'copying*', 'patent[s]?', 'unlicen[cs]e', 'eula',
|
|
15
15
|
'[a,l]?gpl[-]?[1-3]?[.,-,_]?[0-1]?', 'mit', 'bsd[-]?[0-4]?', 'bsd[-]?[0-4][-]?clause[s]?',
|
|
16
16
|
'apache[-,_]?[1-2]?[.,-,_]?[0-2]?']
|
|
17
|
+
_manifest_filename = [r'.*\.pom$', r'package\.json$', r'setup\.py$', r'pubspec\.yaml$', r'.*\.podspec$', r'Cargo\.toml$']
|
|
17
18
|
_exclude_filename = ["changelog", "config.guess", "config.sub", "changes", "ltmain.sh",
|
|
18
19
|
"configure", "configure.ac", "depcomp", "compile", "missing", "makefile"]
|
|
19
20
|
_exclude_extension = [".m4", ".in", ".po"]
|
|
@@ -96,7 +97,7 @@ class SourceItem(FileItem):
|
|
|
96
97
|
return print_rows
|
|
97
98
|
|
|
98
99
|
def __eq__(self, other: object) -> bool:
|
|
99
|
-
if
|
|
100
|
+
if isinstance(other, str):
|
|
100
101
|
return self.source_name_or_path == other
|
|
101
102
|
else:
|
|
102
103
|
return self.source_name_or_path == other.source_name_or_path
|
|
@@ -137,6 +138,11 @@ def is_exclude_file(file_path: str, prev_dir: str = None, prev_dir_exclude_value
|
|
|
137
138
|
|
|
138
139
|
def is_notice_file(file_path: str) -> bool:
|
|
139
140
|
pattern = r"({})(?<!w)".format("|".join(_notice_filename))
|
|
140
|
-
file_path = file_path.lower()
|
|
141
141
|
filename = os.path.basename(file_path)
|
|
142
|
-
return bool(re.match(pattern, filename))
|
|
142
|
+
return bool(re.match(pattern, filename, re.IGNORECASE))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def is_manifest_file(file_path: str) -> bool:
|
|
146
|
+
pattern = r"({})$".format("|".join(_manifest_filename))
|
|
147
|
+
filename = os.path.basename(file_path)
|
|
148
|
+
return bool(re.match(pattern, filename, re.IGNORECASE))
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: fosslight-source
|
|
3
|
+
Version: 2.1.10
|
|
4
|
+
Summary: FOSSLight Source Scanner
|
|
5
|
+
Home-page: https://github.com/fosslight/fosslight_source_scanner
|
|
6
|
+
Download-URL: https://github.com/fosslight/fosslight_source_scanner
|
|
7
|
+
Author: LG Electronics
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Requires-Python: >=3.10, <3.13
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
|
|
18
|
+
<!--
|
|
19
|
+
Copyright (c) 2021 LG Electronics
|
|
20
|
+
SPDX-License-Identifier: Apache-2.0
|
|
21
|
+
-->
|
|
22
|
+
<p align='right'>
|
|
23
|
+
<a href="https://fosslight.org/fosslight-guide/scanner/2_source.html">
|
|
24
|
+
[Korean]
|
|
25
|
+
</a>
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
# FOSSLight Source Scanner
|
|
29
|
+
|
|
30
|
+
<img src="https://img.shields.io/pypi/l/fosslight_source" alt="FOSSLight Source Scanner is released under the Apache-2.0 License." /> <img src="https://img.shields.io/pypi/v/fosslight_source" alt="Current python package version." /> <img src="https://img.shields.io/pypi/pyversions/fosslight_source" /> [](https://api.reuse.software/info/github.com/fosslight/fosslight_source_scanner) [](https://fosslight.org/fosslight-guide-en/scanner/2_source.html)
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
```note
|
|
34
|
+
Detect the license for the source code.
|
|
35
|
+
Use Source Code Scanner and process the scanner results.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**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.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
[sc]: https://github.com/nexB/scancode-toolkit
|
|
42
|
+
[scanoss]: https://github.com/scanoss/scanoss.py
|
|
43
|
+
[osskb]: https://osskb.org/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## 📖 User Guide
|
|
47
|
+
|
|
48
|
+
We describe the user guide in the FOSSLight guide page.
|
|
49
|
+
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.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## 👏 Contributing Guide
|
|
53
|
+
|
|
54
|
+
We always welcome your contributions.
|
|
55
|
+
Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## 📄 License
|
|
59
|
+
|
|
60
|
+
FOSSLight Source Scanner is Apache-2.0, as found in the [LICENSE][l] file.
|
|
61
|
+
|
|
62
|
+
[l]: https://github.com/fosslight/fosslight_source_scanner/blob/main/LICENSE
|
fosslight_source-2.1.8/PKG-INFO
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: fosslight_source
|
|
3
|
-
Version: 2.1.8
|
|
4
|
-
Summary: FOSSLight Source Scanner
|
|
5
|
-
Home-page: https://github.com/fosslight/fosslight_source_scanner
|
|
6
|
-
Author: LG Electronics
|
|
7
|
-
License: Apache-2.0
|
|
8
|
-
Download-URL: https://github.com/fosslight/fosslight_source_scanner
|
|
9
|
-
Description: <!--
|
|
10
|
-
Copyright (c) 2021 LG Electronics
|
|
11
|
-
SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
-->
|
|
13
|
-
<p align='right'>
|
|
14
|
-
<a href="https://fosslight.org/fosslight-guide/scanner/2_source.html">
|
|
15
|
-
[Korean]
|
|
16
|
-
</a>
|
|
17
|
-
</p>
|
|
18
|
-
|
|
19
|
-
# FOSSLight Source Scanner
|
|
20
|
-
|
|
21
|
-
<img src="https://img.shields.io/pypi/l/fosslight_source" alt="FOSSLight Source Scanner is released under the Apache-2.0 License." /> <img src="https://img.shields.io/pypi/v/fosslight_source" alt="Current python package version." /> <img src="https://img.shields.io/pypi/pyversions/fosslight_source" /> [](https://api.reuse.software/info/github.com/fosslight/fosslight_source_scanner) [](https://fosslight.org/fosslight-guide-en/scanner/2_source.html)
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
```note
|
|
25
|
-
Detect the license for the source code.
|
|
26
|
-
Use Source Code Scanner and process the scanner results.
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**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.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
[sc]: https://github.com/nexB/scancode-toolkit
|
|
33
|
-
[scanoss]: https://github.com/scanoss/scanoss.py
|
|
34
|
-
[osskb]: https://osskb.org/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## 📖 User Guide
|
|
38
|
-
|
|
39
|
-
We describe the user guide in the FOSSLight guide page.
|
|
40
|
-
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.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
## 👏 Contributing Guide
|
|
44
|
-
|
|
45
|
-
We always welcome your contributions.
|
|
46
|
-
Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## 📄 License
|
|
50
|
-
|
|
51
|
-
FOSSLight Source Scanner is Apache-2.0, as found in the [LICENSE][l] file.
|
|
52
|
-
|
|
53
|
-
[l]: https://github.com/fosslight/fosslight_source_scanner/blob/main/LICENSE
|
|
54
|
-
|
|
55
|
-
Platform: UNKNOWN
|
|
56
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
57
|
-
Classifier: Programming Language :: Python :: 3
|
|
58
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
59
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
60
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
61
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
62
|
-
Requires-Python: >=3.8
|
|
63
|
-
Description-Content-Type: text/markdown
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
pyparsing
|
|
2
|
-
scanoss>=1.18.0
|
|
3
|
-
XlsxWriter
|
|
4
|
-
fosslight_util>=2.1.10
|
|
5
|
-
PyYAML
|
|
6
|
-
wheel>=0.38.1
|
|
7
|
-
intbitset
|
|
8
|
-
fosslight_binary>=5.0.0
|
|
9
|
-
scancode-toolkit==32.0.*;sys_platform=="darwin"
|
|
10
|
-
scancode-toolkit==32.2.*;sys_platform!="darwin"
|
|
11
|
-
psycopg2-binary==2.9.9
|
|
12
|
-
beautifulsoup4==4.12.*
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: fosslight-source
|
|
3
|
-
Version: 2.1.8
|
|
4
|
-
Summary: FOSSLight Source Scanner
|
|
5
|
-
Home-page: https://github.com/fosslight/fosslight_source_scanner
|
|
6
|
-
Author: LG Electronics
|
|
7
|
-
License: Apache-2.0
|
|
8
|
-
Download-URL: https://github.com/fosslight/fosslight_source_scanner
|
|
9
|
-
Description: <!--
|
|
10
|
-
Copyright (c) 2021 LG Electronics
|
|
11
|
-
SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
-->
|
|
13
|
-
<p align='right'>
|
|
14
|
-
<a href="https://fosslight.org/fosslight-guide/scanner/2_source.html">
|
|
15
|
-
[Korean]
|
|
16
|
-
</a>
|
|
17
|
-
</p>
|
|
18
|
-
|
|
19
|
-
# FOSSLight Source Scanner
|
|
20
|
-
|
|
21
|
-
<img src="https://img.shields.io/pypi/l/fosslight_source" alt="FOSSLight Source Scanner is released under the Apache-2.0 License." /> <img src="https://img.shields.io/pypi/v/fosslight_source" alt="Current python package version." /> <img src="https://img.shields.io/pypi/pyversions/fosslight_source" /> [](https://api.reuse.software/info/github.com/fosslight/fosslight_source_scanner) [](https://fosslight.org/fosslight-guide-en/scanner/2_source.html)
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
```note
|
|
25
|
-
Detect the license for the source code.
|
|
26
|
-
Use Source Code Scanner and process the scanner results.
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**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.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
[sc]: https://github.com/nexB/scancode-toolkit
|
|
33
|
-
[scanoss]: https://github.com/scanoss/scanoss.py
|
|
34
|
-
[osskb]: https://osskb.org/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## 📖 User Guide
|
|
38
|
-
|
|
39
|
-
We describe the user guide in the FOSSLight guide page.
|
|
40
|
-
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.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
## 👏 Contributing Guide
|
|
44
|
-
|
|
45
|
-
We always welcome your contributions.
|
|
46
|
-
Please see the [CONTRIBUTING guide](https://fosslight.org/hub-guide-en/contribution/1_contribution.html) for how to contribute.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## 📄 License
|
|
50
|
-
|
|
51
|
-
FOSSLight Source Scanner is Apache-2.0, as found in the [LICENSE][l] file.
|
|
52
|
-
|
|
53
|
-
[l]: https://github.com/fosslight/fosslight_source_scanner/blob/main/LICENSE
|
|
54
|
-
|
|
55
|
-
Platform: UNKNOWN
|
|
56
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
57
|
-
Classifier: Programming Language :: Python :: 3
|
|
58
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
59
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
60
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
61
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
62
|
-
Requires-Python: >=3.8
|
|
63
|
-
Description-Content-Type: text/markdown
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
pyparsing
|
|
2
|
-
scanoss>=1.18.0
|
|
3
|
-
XlsxWriter
|
|
4
|
-
fosslight_util>=2.1.10
|
|
5
|
-
PyYAML
|
|
6
|
-
wheel>=0.38.1
|
|
7
|
-
intbitset
|
|
8
|
-
fosslight_binary>=5.0.0
|
|
9
|
-
psycopg2-binary==2.9.9
|
|
10
|
-
beautifulsoup4==4.12.*
|
|
11
|
-
|
|
12
|
-
[:sys_platform != "darwin"]
|
|
13
|
-
scancode-toolkit==32.2.*
|
|
14
|
-
|
|
15
|
-
[:sys_platform == "darwin"]
|
|
16
|
-
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
|
|
File without changes
|
{fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source/run_spdx_extractor.py
RENAMED
|
File without changes
|
{fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_source-2.1.8 → fosslight_source-2.1.10}/src/fosslight_source.egg-info/top_level.txt
RENAMED
|
File without changes
|