fosslight-dependency 4.1.17__py3-none-any.whl → 4.1.19__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.
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
  # Copyright (c) 2021 LG Electronics Inc.
4
4
  # SPDX-License-Identifier: Apache-2.0
5
- from fosslight_util.help import PrintHelpMsg
5
+ from fosslight_util.help import PrintHelpMsg, print_package_version
6
6
 
7
7
  _HELP_MESSAGE_DEPENDENCY = """
8
8
  Usage: fosslight_dependency [option1] <arg1> [option2] <arg2>...
@@ -64,6 +64,10 @@ _HELP_MESSAGE_DEPENDENCY = """
64
64
  """
65
65
 
66
66
 
67
+ def print_version(pkg_name: str) -> None:
68
+ print_package_version(pkg_name, "FOSSLight Dependency Scanner Version:")
69
+
70
+
67
71
  def print_help_msg():
68
72
  helpMsg = PrintHelpMsg(_HELP_MESSAGE_DEPENDENCY)
69
73
  helpMsg.print_help_msg(True)
@@ -7,7 +7,6 @@ import os
7
7
  import platform
8
8
  import sys
9
9
  import argparse
10
- import pkg_resources
11
10
  import warnings
12
11
  from datetime import datetime
13
12
  import logging
@@ -16,7 +15,7 @@ import fosslight_dependency.constant as const
16
15
  from collections import defaultdict
17
16
  from fosslight_util.set_log import init_log
18
17
  import fosslight_util.constant as constant
19
- from fosslight_dependency._help import print_help_msg
18
+ from fosslight_dependency._help import print_version, print_help_msg
20
19
  from fosslight_dependency._analyze_dependency import analyze_dependency
21
20
  from fosslight_util.output_format import check_output_formats_v2, write_output_file
22
21
  from fosslight_util.oss_item import ScannerItem
@@ -361,9 +360,7 @@ def main():
361
360
  print_help_msg()
362
361
 
363
362
  if args.version: # -v option
364
- cur_version = pkg_resources.get_distribution(_PKG_NAME).version
365
- print(f"FOSSLight Dependency Scanner Version: {cur_version}")
366
- sys.exit(0)
363
+ print_version(_PKG_NAME)
367
364
 
368
365
  if args.manager: # -m option
369
366
  package_manager = ''.join(args.manager)
@@ -1,19 +1,22 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight-dependency
3
- Version: 4.1.17
3
+ Version: 4.1.19
4
4
  Summary: FOSSLight Dependency Scanner
5
5
  Home-page: https://github.com/fosslight/fosslight_dependency_scanner
6
+ Download-URL: https://github.com/fosslight/fosslight_dependency_scanner
6
7
  Author: LG Electronics
7
8
  License: Apache-2.0
8
- Download-URL: https://github.com/fosslight/fosslight_dependency_scanner
9
- Platform: UNKNOWN
10
9
  Classifier: License :: OSI Approved :: Apache Software License
11
10
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
11
  Classifier: Programming Language :: Python :: 3.10
15
12
  Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Python: >=3.10,<3.13
16
15
  Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ License-File: LICENSES/Apache-2.0.txt
18
+ License-File: LICENSES/LicenseRef-3rd_party_licenses.txt
19
+ License-File: LICENSES/MIT.txt
17
20
  Requires-Dist: openpyxl
18
21
  Requires-Dist: beautifulsoup4
19
22
  Requires-Dist: lxml
@@ -190,5 +193,3 @@ Please see the [CONTRIBUTING guide](https://github.com/fosslight/fosslight_depen
190
193
 
191
194
  Copyright (c) 2020 LG Electronics, Inc.
192
195
  FOSSLight Dependency Scanner is licensed under Apache-2.0, as found in the [LICENSE](https://github.com/fosslight/fosslight_dependency_scanner/blob/main/LICENSE) file.
193
-
194
-
@@ -1,11 +1,11 @@
1
1
  fosslight_dependency/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  fosslight_dependency/_analyze_dependency.py,sha256=AKwKPEjA5x4p3oCWMJugQjd4zX9WKy9zfUqp44gL63Q,4617
3
3
  fosslight_dependency/_graph_convertor.py,sha256=D8GwmJfuj9Wg3_DeKRPLGGdyHSLcoU2Q0VzKQbkJG4g,2267
4
- fosslight_dependency/_help.py,sha256=S5tt26ccMLp-BEgWoXWyPxd8JzLtwZ5bIc-A2UTeM4k,3365
4
+ fosslight_dependency/_help.py,sha256=DuvW8ltpT36VAXhs7yEFEnK8t7CHpG9v8uwrwykHXP8,3509
5
5
  fosslight_dependency/_package_manager.py,sha256=uwSrWTukE8WTtrcIra6iFw1qdI80vLjCuXStl3Da2-s,14916
6
6
  fosslight_dependency/constant.py,sha256=5upuTFSTmmQwqv2u-MRcEG4lxaIZAIi_c-rAPhOrsfM,1226
7
7
  fosslight_dependency/dependency_item.py,sha256=wNLWcsNycf3HQ5Pib2WrMeo2dn0eHCRg20NLcL95Qew,3345
8
- fosslight_dependency/run_dependency_scanner.py,sha256=k1UnI3tFjF1ZRG3TAceEvJnrpy2oYXzgtXlcl_DBmKo,18519
8
+ fosslight_dependency/run_dependency_scanner.py,sha256=0IO2-9Vi5Gkn7wURluencoQOMgCaSoEzup7UbPeATKM,18384
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
@@ -24,12 +24,12 @@ fosslight_dependency/package_manager/Pypi.py,sha256=LPeI7amFXKxhXMSRwiVaKfhHL_D7
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.17.dist-info/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
28
- fosslight_dependency-4.1.17.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
- fosslight_dependency-4.1.17.dist-info/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
30
- fosslight_dependency-4.1.17.dist-info/METADATA,sha256=6KICwwGUqYiD6WCb2ZpP7jeZM_q1IDCXnoYTDakDd5o,5104
31
- fosslight_dependency-4.1.17.dist-info/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
32
- fosslight_dependency-4.1.17.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
33
- fosslight_dependency-4.1.17.dist-info/entry_points.txt,sha256=e1QZbnCrQvfbwe9L6PxXnkRZMhl-PSo0QyUes0dGjU8,91
34
- fosslight_dependency-4.1.17.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
35
- fosslight_dependency-4.1.17.dist-info/RECORD,,
27
+ fosslight_dependency-4.1.19.dist-info/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
28
+ fosslight_dependency-4.1.19.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
+ fosslight_dependency-4.1.19.dist-info/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
30
+ fosslight_dependency-4.1.19.dist-info/METADATA,sha256=WkyXM3NFTiVNEE8TR9sxeVpwjkp1tDyk1_z4BrFepwc,5213
31
+ fosslight_dependency-4.1.19.dist-info/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
32
+ fosslight_dependency-4.1.19.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
33
+ fosslight_dependency-4.1.19.dist-info/entry_points.txt,sha256=AeU-9Bl8al8Sa-XvhitGHdT3ZTPIrlhqADcp7s5OLF8,90
34
+ fosslight_dependency-4.1.19.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
35
+ fosslight_dependency-4.1.19.dist-info/RECORD,,
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  fosslight_dependency = fosslight_dependency.run_dependency_scanner:main
3
-