fosslight-dependency 4.1.9__py3-none-any.whl → 4.1.10__py3-none-any.whl
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/package_manager/Cargo.py +2 -2
- fosslight_dependency/package_manager/Pypi.py +17 -0
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/METADATA +9 -2
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/RECORD +11 -11
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/Apache-2.0.txt +0 -0
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/LICENSE +0 -0
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/MIT.txt +0 -0
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/WHEEL +0 -0
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/entry_points.txt +0 -0
- {fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/top_level.txt +0 -0
@@ -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
|
@@ -136,6 +136,23 @@ class Pypi(PackageManager):
|
|
136
136
|
ret = False
|
137
137
|
err_msg = e
|
138
138
|
finally:
|
139
|
+
try:
|
140
|
+
if 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').rstrip().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
157
|
logger.info(f"It created the temporary virtualenv({venv_path}).")
|
141
158
|
else:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fosslight-dependency
|
3
|
-
Version: 4.1.
|
3
|
+
Version: 4.1.10
|
4
4
|
Summary: FOSSLight Dependency Scanner
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_dependency_scanner
|
6
6
|
Author: LG Electronics
|
@@ -62,13 +62,20 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
62
62
|
</thead>
|
63
63
|
<tbody>
|
64
64
|
<tr>
|
65
|
-
<td>Javascript</td>
|
65
|
+
<td rowspan="2">Javascript</td>
|
66
66
|
<td>Npm</td>
|
67
67
|
<td>package.json</td>
|
68
68
|
<td>O</td>
|
69
69
|
<td>O</td>
|
70
70
|
<td>O</td>
|
71
71
|
</tr>
|
72
|
+
<tr>
|
73
|
+
<td>Pnpm</td>
|
74
|
+
<td>pnpm-lock.yaml</td>
|
75
|
+
<td>O</td>
|
76
|
+
<td>O</td>
|
77
|
+
<td>O</td>
|
78
|
+
</tr>
|
72
79
|
<tr>
|
73
80
|
<td rowspan="2">Java</td>
|
74
81
|
<td>Gradle</td>
|
@@ -9,7 +9,7 @@ fosslight_dependency/run_dependency_scanner.py,sha256=rCHwKW2NsOSRyRxsFmUunKruK9
|
|
9
9
|
fosslight_dependency/LICENSES/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
10
10
|
fosslight_dependency/LICENSES/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
|
11
11
|
fosslight_dependency/package_manager/Android.py,sha256=0UZFvbLxDIreerK4fR316YPyhUpPliV_kfZulrxkUyo,3218
|
12
|
-
fosslight_dependency/package_manager/Cargo.py,sha256=
|
12
|
+
fosslight_dependency/package_manager/Cargo.py,sha256=erAHVVbnRW5KUHVcrPgaHFGJOClpnf4Oi-8HbnSuCaY,5918
|
13
13
|
fosslight_dependency/package_manager/Carthage.py,sha256=VU506KafUiHBrr_62iOOXNI1fDOreOQgcC2EWM5PpQo,6122
|
14
14
|
fosslight_dependency/package_manager/Cocoapods.py,sha256=k_URV1ekMOU8l_y9_KIp_luu96ZGOl1xLIkH737VREA,8524
|
15
15
|
fosslight_dependency/package_manager/Go.py,sha256=O-6DTTRM2EoTpCVmlIPKFy8ZTz64EHTooOAoUimjeyk,6491
|
@@ -20,16 +20,16 @@ fosslight_dependency/package_manager/Npm.py,sha256=EvXXJUJ3-4cyvGNQU2cXPGkOcOQPr
|
|
20
20
|
fosslight_dependency/package_manager/Nuget.py,sha256=x1SPdxwXS2Oyi1RnLasvJJL-IFJl45VI2CXt3wReW24,8884
|
21
21
|
fosslight_dependency/package_manager/Pnpm.py,sha256=LDKooFGQHui_Q5U7XqSJ8KcCPiLVndXf5oGKTJExh5w,7056
|
22
22
|
fosslight_dependency/package_manager/Pub.py,sha256=Rrz8_6wdrmMU6f3vbbuAwyMbODBauXNnBbI619OQgDk,10184
|
23
|
-
fosslight_dependency/package_manager/Pypi.py,sha256=
|
23
|
+
fosslight_dependency/package_manager/Pypi.py,sha256=IQWlP1RNFwrzU9kW9UqcfiL-WxqaVbVVGuBjmsskoI0,16682
|
24
24
|
fosslight_dependency/package_manager/Swift.py,sha256=8fdbdAXTNlp2NDoSqQXm48JGAg9UhxA91M1-NhHkT40,6752
|
25
25
|
fosslight_dependency/package_manager/Unity.py,sha256=n1006GZ6Qrk8wAdO6wla1Q-JD7Evin7REVj-HDeTARc,5142
|
26
26
|
fosslight_dependency/package_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
|
-
fosslight_dependency-4.1.
|
28
|
-
fosslight_dependency-4.1.
|
29
|
-
fosslight_dependency-4.1.
|
30
|
-
fosslight_dependency-4.1.
|
31
|
-
fosslight_dependency-4.1.
|
32
|
-
fosslight_dependency-4.1.
|
33
|
-
fosslight_dependency-4.1.
|
34
|
-
fosslight_dependency-4.1.
|
35
|
-
fosslight_dependency-4.1.
|
27
|
+
fosslight_dependency-4.1.10.dist-info/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
28
|
+
fosslight_dependency-4.1.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
29
|
+
fosslight_dependency-4.1.10.dist-info/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
|
30
|
+
fosslight_dependency-4.1.10.dist-info/METADATA,sha256=Ch1NVfxPoq5FxOMq5aiNL4xc056oIFuMTCA8tsevF0s,5103
|
31
|
+
fosslight_dependency-4.1.10.dist-info/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
|
32
|
+
fosslight_dependency-4.1.10.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
33
|
+
fosslight_dependency-4.1.10.dist-info/entry_points.txt,sha256=e1QZbnCrQvfbwe9L6PxXnkRZMhl-PSo0QyUes0dGjU8,91
|
34
|
+
fosslight_dependency-4.1.10.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
|
35
|
+
fosslight_dependency-4.1.10.dist-info/RECORD,,
|
{fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/Apache-2.0.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/entry_points.txt
RENAMED
File without changes
|
{fosslight_dependency-4.1.9.dist-info → fosslight_dependency-4.1.10.dist-info}/top_level.txt
RENAMED
File without changes
|