fosslight-dependency 4.1.9__tar.gz → 4.1.11__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.9 → fosslight_dependency-4.1.11}/PKG-INFO +9 -2
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/README.md +8 -1
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/setup.py +1 -1
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Cargo.py +2 -2
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Pypi.py +19 -2
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency.egg-info/PKG-INFO +9 -2
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/LICENSE +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/LICENSES/Apache-2.0.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/LICENSES/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/LICENSES/MIT.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/MANIFEST.in +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/requirements.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/setup.cfg +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/__init__.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/_analyze_dependency.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/_graph_convertor.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/_help.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/_package_manager.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/constant.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/dependency_item.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Android.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Carthage.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Cocoapods.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Go.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Gradle.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Helm.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Maven.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Npm.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Nuget.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Pnpm.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Pub.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Swift.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/Unity.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/package_manager/__init__.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/run_dependency_scanner.py +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency.egg-info/SOURCES.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency.egg-info/dependency_links.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency.egg-info/entry_points.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency.egg-info/requires.txt +0 -0
- {fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/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.11
|
4
4
|
Summary: FOSSLight Dependency Scanner
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_dependency_scanner
|
6
6
|
Author: LG Electronics
|
@@ -39,13 +39,20 @@ Description: <!--
|
|
39
39
|
</thead>
|
40
40
|
<tbody>
|
41
41
|
<tr>
|
42
|
-
<td>Javascript</td>
|
42
|
+
<td rowspan="2">Javascript</td>
|
43
43
|
<td>Npm</td>
|
44
44
|
<td>package.json</td>
|
45
45
|
<td>O</td>
|
46
46
|
<td>O</td>
|
47
47
|
<td>O</td>
|
48
48
|
</tr>
|
49
|
+
<tr>
|
50
|
+
<td>Pnpm</td>
|
51
|
+
<td>pnpm-lock.yaml</td>
|
52
|
+
<td>O</td>
|
53
|
+
<td>O</td>
|
54
|
+
<td>O</td>
|
55
|
+
</tr>
|
49
56
|
<tr>
|
50
57
|
<td rowspan="2">Java</td>
|
51
58
|
<td>Gradle</td>
|
@@ -31,13 +31,20 @@ 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>Javascript</td>
|
34
|
+
<td rowspan="2">Javascript</td>
|
35
35
|
<td>Npm</td>
|
36
36
|
<td>package.json</td>
|
37
37
|
<td>O</td>
|
38
38
|
<td>O</td>
|
39
39
|
<td>O</td>
|
40
40
|
</tr>
|
41
|
+
<tr>
|
42
|
+
<td>Pnpm</td>
|
43
|
+
<td>pnpm-lock.yaml</td>
|
44
|
+
<td>O</td>
|
45
|
+
<td>O</td>
|
46
|
+
<td>O</td>
|
47
|
+
</tr>
|
41
48
|
<tr>
|
42
49
|
<td rowspan="2">Java</td>
|
43
50
|
<td>Gradle</td>
|
@@ -132,11 +132,11 @@ def get_matched_dependencies(match_id, resolve_node):
|
|
132
132
|
try:
|
133
133
|
match = re.findall(r'^.*#(\S*)@(\S*)', dep_pkg)
|
134
134
|
dependencies_list.append(f'{match[0][0]}({match[0][1]})')
|
135
|
-
except:
|
135
|
+
except Exception:
|
136
136
|
try:
|
137
137
|
match = re.findall(r'^(\S*)\s(\S*)\s', dep_pkg)
|
138
138
|
dependencies_list.append(f'{match[0][0]}({match[0][1]})')
|
139
|
-
except:
|
139
|
+
except Exception:
|
140
140
|
logger.info(f'cannot find name and version for dependencies: {match_id}')
|
141
141
|
pass
|
142
142
|
break
|
@@ -129,15 +129,32 @@ class Pypi(PackageManager):
|
|
129
129
|
if cmd_ret.returncode != 0:
|
130
130
|
ret = False
|
131
131
|
err_msg = f"return code({cmd_ret.returncode})"
|
132
|
-
elif cmd_ret.stderr.decode('utf-8').
|
132
|
+
elif cmd_ret.stderr.decode('utf-8').strip().lower().startswith('error:'):
|
133
133
|
ret = False
|
134
134
|
err_msg = f"stderr msg({cmd_ret.stderr})"
|
135
135
|
except Exception as e:
|
136
136
|
ret = False
|
137
137
|
err_msg = e
|
138
138
|
finally:
|
139
|
+
try:
|
140
|
+
if (not ret) and (self.platform != const.WINDOWS):
|
141
|
+
ret = True
|
142
|
+
create_venv_cmd = f"virtualenv -p python3 {self.venv_tmp_dir}"
|
143
|
+
|
144
|
+
cmd_list = [create_venv_cmd, activate_cmd, install_cmd, deactivate_cmd]
|
145
|
+
cmd = cmd_separator.join(cmd_list)
|
146
|
+
cmd_ret = subprocess.run(cmd, shell=True, stderr=subprocess.PIPE)
|
147
|
+
if cmd_ret.returncode != 0:
|
148
|
+
ret = False
|
149
|
+
err_msg = f"return code({cmd_ret.returncode})"
|
150
|
+
elif cmd_ret.stderr.decode('utf-8').strip().lower().startswith('error:'):
|
151
|
+
ret = False
|
152
|
+
err_msg = f"stderr msg({cmd_ret.stderr})"
|
153
|
+
except Exception as e:
|
154
|
+
ret = False
|
155
|
+
err_msg = e
|
139
156
|
if ret:
|
140
|
-
logger.info(f"
|
157
|
+
logger.info(f"Created the temporary virtualenv({venv_path}).")
|
141
158
|
else:
|
142
159
|
logger.error(f"Failed to create virtualenv: {err_msg}")
|
143
160
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fosslight-dependency
|
3
|
-
Version: 4.1.
|
3
|
+
Version: 4.1.11
|
4
4
|
Summary: FOSSLight Dependency Scanner
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_dependency_scanner
|
6
6
|
Author: LG Electronics
|
@@ -39,13 +39,20 @@ Description: <!--
|
|
39
39
|
</thead>
|
40
40
|
<tbody>
|
41
41
|
<tr>
|
42
|
-
<td>Javascript</td>
|
42
|
+
<td rowspan="2">Javascript</td>
|
43
43
|
<td>Npm</td>
|
44
44
|
<td>package.json</td>
|
45
45
|
<td>O</td>
|
46
46
|
<td>O</td>
|
47
47
|
<td>O</td>
|
48
48
|
</tr>
|
49
|
+
<tr>
|
50
|
+
<td>Pnpm</td>
|
51
|
+
<td>pnpm-lock.yaml</td>
|
52
|
+
<td>O</td>
|
53
|
+
<td>O</td>
|
54
|
+
<td>O</td>
|
55
|
+
</tr>
|
49
56
|
<tr>
|
50
57
|
<td rowspan="2">Java</td>
|
51
58
|
<td>Gradle</td>
|
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.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/_help.py
RENAMED
File without changes
|
File without changes
|
{fosslight_dependency-4.1.9 → fosslight_dependency-4.1.11}/src/fosslight_dependency/constant.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
|