fosslight-dependency 4.1.27__py3-none-any.whl → 4.1.28__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.
@@ -20,6 +20,7 @@ from fosslight_dependency._analyze_dependency import analyze_dependency
20
20
  from fosslight_util.output_format import check_output_formats_v2, write_output_file
21
21
  from fosslight_util.oss_item import ScannerItem
22
22
  from fosslight_dependency._graph_convertor import GraphConvertor
23
+ from fosslight_util.exclude import get_excluded_paths
23
24
 
24
25
  # Package Name
25
26
  _PKG_NAME = "fosslight_dependency"
@@ -244,7 +245,6 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
244
245
  else:
245
246
  input_dir = os.getcwd()
246
247
  os.chdir(input_dir)
247
- scan_item.set_cover_pathinfo(input_dir, path_to_exclude)
248
248
 
249
249
  autodetect = True
250
250
  found_package_manager = {}
@@ -268,6 +268,12 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
268
268
  manifest_file_name = []
269
269
 
270
270
  try:
271
+ excluded_path_with_default_exclusion, excluded_path_without_dot, _, _ = (
272
+ get_excluded_paths(input_dir, path_to_exclude, ''))
273
+ logger.debug(f"Skipped paths: {excluded_path_with_default_exclusion}")
274
+ scan_item.set_cover_pathinfo(input_dir, excluded_path_without_dot)
275
+ abs_path_to_exclude = [os.path.abspath(os.path.join(input_dir, path))
276
+ for path in excluded_path_with_default_exclusion]
271
277
  ret, found_package_manager, input_dir, suggested_files = find_package_manager(input_dir,
272
278
  abs_path_to_exclude,
273
279
  manifest_file_name,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fosslight_dependency
3
- Version: 4.1.27
3
+ Version: 4.1.28
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
@@ -23,7 +23,7 @@ Requires-Dist: lxml
23
23
  Requires-Dist: virtualenv
24
24
  Requires-Dist: pyyaml
25
25
  Requires-Dist: lastversion
26
- Requires-Dist: fosslight_util>=2.1.30
26
+ Requires-Dist: fosslight_util>=2.1.34
27
27
  Requires-Dist: PyGithub
28
28
  Requires-Dist: requirements-parser
29
29
  Requires-Dist: defusedxml
@@ -5,7 +5,7 @@ fosslight_dependency/_help.py,sha256=1ER9CDiORhMdX1FYedPHcp2TRyvICPFGM1wxOOJ4PNE
5
5
  fosslight_dependency/_package_manager.py,sha256=-hEOG44AnBoSKjMM-WQAbZIXhD8kHc-EwkOl1aLu-CA,15824
6
6
  fosslight_dependency/constant.py,sha256=zaLjZsk4r5Gv6puCbV_Crt9pWrX_FEYzgEh0UQVIE4g,1291
7
7
  fosslight_dependency/dependency_item.py,sha256=wNLWcsNycf3HQ5Pib2WrMeo2dn0eHCRg20NLcL95Qew,3345
8
- fosslight_dependency/run_dependency_scanner.py,sha256=9hbrrW_EfJ_6XeajrVFl-B59q5MlMHXsMRJ2BjjKu6o,22736
8
+ fosslight_dependency/run_dependency_scanner.py,sha256=VTY9KLHhfNjcHUNepxNBmcUOr0_GHzNsqBsjJf7-QWw,23188
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=SgQyVxEYvAcCN3EgP9p4QOQZpLIGDahXRm8ntgoCM3c,3666
@@ -25,12 +25,12 @@ fosslight_dependency/package_manager/Swift.py,sha256=8fdbdAXTNlp2NDoSqQXm48JGAg9
25
25
  fosslight_dependency/package_manager/Unity.py,sha256=n1006GZ6Qrk8wAdO6wla1Q-JD7Evin7REVj-HDeTARc,5142
26
26
  fosslight_dependency/package_manager/Yarn.py,sha256=ZSi7_O5tMmS80Z58YOZxvai84_KyDpP8plo0x80YtVc,10069
27
27
  fosslight_dependency/package_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- fosslight_dependency-4.1.27.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
- fosslight_dependency-4.1.27.dist-info/licenses/LICENSES/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
- fosslight_dependency-4.1.27.dist-info/licenses/LICENSES/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
31
- fosslight_dependency-4.1.27.dist-info/licenses/LICENSES/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
32
- fosslight_dependency-4.1.27.dist-info/METADATA,sha256=XwTKgyccmsXe73qGPmUTN-LCENc00_jKobN1AWyUP-s,5555
33
- fosslight_dependency-4.1.27.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
34
- fosslight_dependency-4.1.27.dist-info/entry_points.txt,sha256=AeU-9Bl8al8Sa-XvhitGHdT3ZTPIrlhqADcp7s5OLF8,90
35
- fosslight_dependency-4.1.27.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
36
- fosslight_dependency-4.1.27.dist-info/RECORD,,
28
+ fosslight_dependency-4.1.28.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
+ fosslight_dependency-4.1.28.dist-info/licenses/LICENSES/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
+ fosslight_dependency-4.1.28.dist-info/licenses/LICENSES/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
31
+ fosslight_dependency-4.1.28.dist-info/licenses/LICENSES/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
32
+ fosslight_dependency-4.1.28.dist-info/METADATA,sha256=zyuppSQD8EgIN4J4IIWptlzq3rKFoyB0dcc2aZqmEd4,5555
33
+ fosslight_dependency-4.1.28.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
34
+ fosslight_dependency-4.1.28.dist-info/entry_points.txt,sha256=AeU-9Bl8al8Sa-XvhitGHdT3ZTPIrlhqADcp7s5OLF8,90
35
+ fosslight_dependency-4.1.28.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
36
+ fosslight_dependency-4.1.28.dist-info/RECORD,,