fosslight-util 1.4.42__py3-none-any.whl → 1.4.43__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_util/cover.py CHANGED
@@ -14,9 +14,10 @@ class CoverItem:
14
14
  start_time_key = "Start time"
15
15
  python_ver_key = "Python version"
16
16
  analyzed_path_key = "Analyzed path"
17
+ excluded_path_key = "Excluded path"
17
18
  comment_key = "Comment"
18
19
 
19
- def __init__(self, tool_name="", start_time="", input_path="", comment=""):
20
+ def __init__(self, tool_name="", start_time="", input_path="", comment="", exclude_path=[]):
20
21
  self.tool_name = tool_name
21
22
  if start_time:
22
23
  date, time = start_time.split('_')
@@ -24,6 +25,7 @@ class CoverItem:
24
25
  else:
25
26
  self.start_time = ""
26
27
  self.input_path = os.path.abspath(input_path)
28
+ self.exclude_path = ", ".join(exclude_path)
27
29
  self.comment = comment
28
30
 
29
31
  self.tool_version = print_package_version(self.tool_name, "", False)
@@ -39,6 +41,7 @@ class CoverItem:
39
41
  json_item[self.start_time_key] = self.start_time
40
42
  json_item[self.python_ver_key] = self.python_version
41
43
  json_item[self.analyzed_path_key] = self.input_path
44
+ json_item[self.excluded_path_key] = self.exclude_path
42
45
  json_item[self.comment_key] = self.comment
43
46
 
44
47
  return json_item
fosslight_util/set_log.py CHANGED
@@ -42,7 +42,7 @@ class CustomAdapter(logging.LoggerAdapter):
42
42
 
43
43
 
44
44
  def init_log(log_file, create_file=True, stream_log_level=logging.INFO,
45
- file_log_level=logging.DEBUG, main_package_name="", path_to_analyze=""):
45
+ file_log_level=logging.DEBUG, main_package_name="", path_to_analyze="", path_to_exclude=[]):
46
46
 
47
47
  logger = logging.getLogger(constant.LOGGER_NAME)
48
48
 
@@ -83,5 +83,7 @@ def init_log(log_file, create_file=True, stream_log_level=logging.INFO,
83
83
  _result_log["Tool Info"] = pkg_info
84
84
  if path_to_analyze != "":
85
85
  _result_log["Path to analyze"] = path_to_analyze
86
+ if path_to_exclude != []:
87
+ _result_log["Path to exclude"] = ", ".join(path_to_exclude)
86
88
 
87
89
  return logger, _result_log
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight-util
3
- Version: 1.4.42
3
+ Version: 1.4.43
4
4
  Summary: FOSSLight Util
5
5
  Home-page: https://github.com/fosslight/fosslight_util
6
6
  Author: LG Electronics
@@ -4,14 +4,14 @@ fosslight_util/compare_yaml.py,sha256=0bapoyS0yrzkiK70K57E8-3wZ_D6mZAJ-24Eq9TYBl
4
4
  fosslight_util/constant.py,sha256=j9uhncoC2Fn4j4ATNsjUoS91nVXhyGzU6xLyWFj941A,1834
5
5
  fosslight_util/convert_excel_to_yaml.py,sha256=7ZsAMMQJIEXrmcl_28nSHvFpGMi1ZiRZYpEfI5O8vP8,2298
6
6
  fosslight_util/correct.py,sha256=v4OL8XssYuatcP9G0YhnLChWUiJP8rwoyWDeMmQGT0E,5334
7
- fosslight_util/cover.py,sha256=21l-BS3ZJ8nDxMLHKGT9igB3XbCme55A0eQf01jbISM,1436
7
+ fosslight_util/cover.py,sha256=GZAeGoQGGCx7OEddErS_Mj6pbMCQrdr5jX-CixU4iAA,1607
8
8
  fosslight_util/download.py,sha256=4_s1zPEpxPQ7FNkDo0f6MdrQLMOVdjifDO7Y5psqAq8,14484
9
9
  fosslight_util/help.py,sha256=xhAf43fuRLOU3TE7jqaxVTizVn4aANDvHaHYQAdaqYc,2154
10
10
  fosslight_util/oss_item.py,sha256=JxGokv79z_6Ca4-Aquc_zZEvRqu-xmBunP8Lvy6AIjY,7268
11
11
  fosslight_util/output_format.py,sha256=kJpuTuS3XTrsdUd2gsl5GWto5KtJfSej-qkD9azZFdQ,2982
12
12
  fosslight_util/parsing_yaml.py,sha256=R2aecMLDoWR-bBdD8qiW0OTn7F5ZC5YNd1Of0YYEJxU,4514
13
13
  fosslight_util/read_excel.py,sha256=21T12bSaB69Yp19n-o2qpHMJNWUFoytneaNneRp3qCA,5294
14
- fosslight_util/set_log.py,sha256=8cFGpr4HMk4grHo3a5keR4V1xWBscbjowYPxyrh42ks,3140
14
+ fosslight_util/set_log.py,sha256=GsUtbtqmYKgBltHzeaxV3H9gaUWMYQYDJEhr_LdEGoo,3258
15
15
  fosslight_util/spdx_licenses.py,sha256=r90hUY4_T-XrHIJHLx1Ox3gWZ3qzdZj9rJFo7AwmkPE,3641
16
16
  fosslight_util/timer_thread.py,sha256=5VbZENQPD-N0NUmzEktqGr6Am-e7vxD79K05mmr29g0,433
17
17
  fosslight_util/write_excel.py,sha256=FJFmCs6_vJTYNDgp-Cwk0ylkMTjN3u3_Wgxy0yoiGqo,12306
@@ -23,9 +23,9 @@ fosslight_util/write_yaml.py,sha256=iJcG3ItggoBp8p3m8PAZwULehKo3BlH1qW2rZzlDv8g,
23
23
  fosslight_util/resources/frequentLicenselist.json,sha256=GUhzK6tu7ok10fekOnmVmUgIGRC-acGABZKTNKfDyYA,4776157
24
24
  fosslight_util/resources/frequent_license_nick_list.json,sha256=ryU2C_6ZxHbz90_sUN9OvI9GXkCMLu7oGcmd9W79YYo,5005
25
25
  fosslight_util/resources/licenses.json,sha256=mK55z-bhY7Mjpj2KsO1crKGGL-X3F6MBFQJ0zLlx010,240843
26
- fosslight_util-1.4.42.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
27
- fosslight_util-1.4.42.dist-info/METADATA,sha256=Gwh1UV3hbzKi2Urxb-w9bJzw9uA1YzrTySAD-7C4ohU,6418
28
- fosslight_util-1.4.42.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
- fosslight_util-1.4.42.dist-info/entry_points.txt,sha256=bzXX5i7HZ13V8BLKvtu_9KO3ZjtRypH-XszOXT6I3bU,69
30
- fosslight_util-1.4.42.dist-info/top_level.txt,sha256=2qyYWGLakgBRy4BqoBNt-I5C29tBr_e93e5e1pbuTGA,15
31
- fosslight_util-1.4.42.dist-info/RECORD,,
26
+ fosslight_util-1.4.43.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
27
+ fosslight_util-1.4.43.dist-info/METADATA,sha256=ymBhCoY9sAe4DGu3z8QxmJMg1F7Wews2qO0uR45Z9pI,6418
28
+ fosslight_util-1.4.43.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
+ fosslight_util-1.4.43.dist-info/entry_points.txt,sha256=bzXX5i7HZ13V8BLKvtu_9KO3ZjtRypH-XszOXT6I3bU,69
30
+ fosslight_util-1.4.43.dist-info/top_level.txt,sha256=2qyYWGLakgBRy4BqoBNt-I5C29tBr_e93e5e1pbuTGA,15
31
+ fosslight_util-1.4.43.dist-info/RECORD,,