fosslight-dependency 4.1.20__tar.gz → 4.1.21__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_dependency-4.1.20 → fosslight_dependency-4.1.21}/PKG-INFO +9 -2
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/README.md +8 -1
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/setup.py +1 -1
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/_analyze_dependency.py +1 -1
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/_help.py +2 -1
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/constant.py +1 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Npm.py +8 -2
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/run_dependency_scanner.py +3 -1
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency.egg-info/PKG-INFO +9 -2
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/LICENSE +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/LICENSES/Apache-2.0.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/LICENSES/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/LICENSES/MIT.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/MANIFEST.in +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/requirements.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/setup.cfg +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/LICENSES/LICENSE +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/LICENSES/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/__init__.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/_graph_convertor.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/_package_manager.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/dependency_item.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Android.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Cargo.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Carthage.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Cocoapods.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Go.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Gradle.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Helm.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Maven.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Nuget.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Pnpm.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Pub.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Pypi.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Swift.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/Unity.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/package_manager/__init__.py +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency.egg-info/SOURCES.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency.egg-info/dependency_links.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency.egg-info/entry_points.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency.egg-info/requires.txt +0 -0
- {fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fosslight_dependency
|
3
|
-
Version: 4.1.
|
3
|
+
Version: 4.1.21
|
4
4
|
Summary: FOSSLight Dependency Scanner
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_dependency_scanner
|
6
6
|
Download-URL: https://github.com/fosslight/fosslight_dependency_scanner
|
@@ -51,7 +51,7 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
51
51
|
</thead>
|
52
52
|
<tbody>
|
53
53
|
<tr>
|
54
|
-
<td rowspan="
|
54
|
+
<td rowspan="3">Javascript</td>
|
55
55
|
<td>Npm</td>
|
56
56
|
<td>package.json</td>
|
57
57
|
<td>O</td>
|
@@ -64,6 +64,13 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
64
64
|
<td>O</td>
|
65
65
|
<td>O</td>
|
66
66
|
<td>O</td>
|
67
|
+
</tr>
|
68
|
+
<tr>
|
69
|
+
<td>Yarn</td>
|
70
|
+
<td>package.json</td>
|
71
|
+
<td>O</td>
|
72
|
+
<td>O</td>
|
73
|
+
<td>O</td>
|
67
74
|
</tr>
|
68
75
|
<tr>
|
69
76
|
<td rowspan="2">Java</td>
|
@@ -31,7 +31,7 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
31
31
|
</thead>
|
32
32
|
<tbody>
|
33
33
|
<tr>
|
34
|
-
<td rowspan="
|
34
|
+
<td rowspan="3">Javascript</td>
|
35
35
|
<td>Npm</td>
|
36
36
|
<td>package.json</td>
|
37
37
|
<td>O</td>
|
@@ -44,6 +44,13 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
44
44
|
<td>O</td>
|
45
45
|
<td>O</td>
|
46
46
|
<td>O</td>
|
47
|
+
</tr>
|
48
|
+
<tr>
|
49
|
+
<td>Yarn</td>
|
50
|
+
<td>package.json</td>
|
51
|
+
<td>O</td>
|
52
|
+
<td>O</td>
|
53
|
+
<td>O</td>
|
47
54
|
</tr>
|
48
55
|
<tr>
|
49
56
|
<td rowspan="2">Java</td>
|
@@ -35,7 +35,7 @@ def analyze_dependency(package_manager_name, input_dir, output_dir, pip_activate
|
|
35
35
|
|
36
36
|
if package_manager_name == const.PYPI:
|
37
37
|
package_manager = Pypi(input_dir, output_dir, pip_activate_cmd, pip_deactivate_cmd)
|
38
|
-
elif package_manager_name == const.NPM:
|
38
|
+
elif package_manager_name == const.NPM or package_manager_name == const.YARN:
|
39
39
|
package_manager = Npm(input_dir, output_dir)
|
40
40
|
elif package_manager_name == const.MAVEN:
|
41
41
|
package_manager = Maven(input_dir, output_dir, output_custom_dir)
|
{fosslight_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/_help.py
RENAMED
@@ -16,6 +16,7 @@ _HELP_MESSAGE_DEPENDENCY = """
|
|
16
16
|
Maven (Java)
|
17
17
|
NPM (Node.js)
|
18
18
|
PNPM (Node.js)
|
19
|
+
Yarn (Node.js)
|
19
20
|
PIP (Python)
|
20
21
|
Pub (Dart with flutter)
|
21
22
|
Cocoapods (Swift/Obj-C)
|
@@ -33,7 +34,7 @@ _HELP_MESSAGE_DEPENDENCY = """
|
|
33
34
|
-v\t\t\t\t Print the version of the script.
|
34
35
|
-m <package_manager>\t Enter the package manager.
|
35
36
|
\t(npm, maven, gradle, pypi, pub, cocoapods, android, swift, carthage,
|
36
|
-
\t go, nuget, helm, unity, cargo, pnpm)
|
37
|
+
\t go, nuget, helm, unity, cargo, pnpm, yarn)
|
37
38
|
-p <input_path>\t\t Enter the path where the script will be run.
|
38
39
|
-e <exclude_path>\t\t Enter the path where the analysis will not be performed.
|
39
40
|
-o <output_path>\t\t Output path
|
@@ -53,8 +53,14 @@ class Npm(PackageManager):
|
|
53
53
|
self.flag_tmp_node_modules = True
|
54
54
|
cmd_ret = subprocess.call(npm_install_cmd, shell=True)
|
55
55
|
if cmd_ret != 0:
|
56
|
-
logger.
|
57
|
-
|
56
|
+
logger.warning(f"{npm_install_cmd} returns an error. Trying yarn as fallback...")
|
57
|
+
yarn_install_cmd = 'yarn install --production --ignore-scripts'
|
58
|
+
cmd_ret = subprocess.call(yarn_install_cmd, shell=True)
|
59
|
+
if cmd_ret != 0:
|
60
|
+
logger.error(f"Both {npm_install_cmd} and {yarn_install_cmd} failed")
|
61
|
+
return False
|
62
|
+
else:
|
63
|
+
logger.info(f"Successfully executed {yarn_install_cmd}")
|
58
64
|
|
59
65
|
# customized json file for obtaining specific items with license-checker
|
60
66
|
self.make_custom_json(self.tmp_custom_json)
|
@@ -207,6 +207,9 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
|
|
207
207
|
autodetect = True
|
208
208
|
found_package_manager = {}
|
209
209
|
if package_manager:
|
210
|
+
scan_item.set_cover_comment(f"Manual detect mode (-m {package_manager})")
|
211
|
+
if package_manager == const.YARN:
|
212
|
+
package_manager = const.NPM
|
210
213
|
autodetect = False
|
211
214
|
support_packagemanager = list(const.SUPPORT_PACKAE.keys())
|
212
215
|
|
@@ -221,7 +224,6 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
|
|
221
224
|
manifest_file_name.extend(value)
|
222
225
|
else:
|
223
226
|
manifest_file_name.append(value)
|
224
|
-
scan_item.set_cover_comment(f"Manual detect mode (-m {package_manager})")
|
225
227
|
else:
|
226
228
|
manifest_file_name = []
|
227
229
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fosslight-dependency
|
3
|
-
Version: 4.1.
|
3
|
+
Version: 4.1.21
|
4
4
|
Summary: FOSSLight Dependency Scanner
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_dependency_scanner
|
6
6
|
Download-URL: https://github.com/fosslight/fosslight_dependency_scanner
|
@@ -51,7 +51,7 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
51
51
|
</thead>
|
52
52
|
<tbody>
|
53
53
|
<tr>
|
54
|
-
<td rowspan="
|
54
|
+
<td rowspan="3">Javascript</td>
|
55
55
|
<td>Npm</td>
|
56
56
|
<td>package.json</td>
|
57
57
|
<td>O</td>
|
@@ -64,6 +64,13 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
64
64
|
<td>O</td>
|
65
65
|
<td>O</td>
|
66
66
|
<td>O</td>
|
67
|
+
</tr>
|
68
|
+
<tr>
|
69
|
+
<td>Yarn</td>
|
70
|
+
<td>package.json</td>
|
71
|
+
<td>O</td>
|
72
|
+
<td>O</td>
|
73
|
+
<td>O</td>
|
67
74
|
</tr>
|
68
75
|
<tr>
|
69
76
|
<td rowspan="2">Java</td>
|
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_dependency-4.1.20 → fosslight_dependency-4.1.21}/src/fosslight_dependency/__init__.py
RENAMED
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|