qubership-pipelines-common-library 2.0.1__tar.gz → 2.0.2__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.
Files changed (76) hide show
  1. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/PKG-INFO +1 -1
  2. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/pyproject.toml +1 -1
  3. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_cli.py +37 -26
  4. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_logging.py +0 -1
  5. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/LICENSE +0 -0
  6. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/README.md +0 -0
  7. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/__init__.py +0 -0
  8. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/__init__.py +0 -0
  9. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/artifactory_client.py +0 -0
  10. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/execution/__init__.py +0 -0
  11. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/execution/exec_command.py +0 -0
  12. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/execution/exec_context.py +0 -0
  13. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/execution/exec_context_file.py +0 -0
  14. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/execution/exec_info.py +0 -0
  15. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/execution/exec_logger.py +0 -0
  16. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/git_client.py +0 -0
  17. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/github_client.py +0 -0
  18. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/gitlab_client.py +0 -0
  19. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/jenkins_client.py +0 -0
  20. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/kube_client.py +0 -0
  21. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/log_client.py +0 -0
  22. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/maven_client.py +0 -0
  23. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/minio_client.py +0 -0
  24. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/__init__.py +0 -0
  25. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/rest.py +0 -0
  26. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils.py +0 -0
  27. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_aws.py +0 -0
  28. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_context.py +0 -0
  29. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_dictionary.py +0 -0
  30. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_file.py +0 -0
  31. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_json.py +0 -0
  32. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/utils/utils_string.py +0 -0
  33. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v1/webex_client.py +0 -0
  34. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/__init__.py +0 -0
  35. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/__init__.py +0 -0
  36. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/artifact_finder.py +0 -0
  37. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/auth/__init__.py +0 -0
  38. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/auth/aws_credentials.py +0 -0
  39. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/auth/azure_credentials.py +0 -0
  40. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/auth/gcp_credentials.py +0 -0
  41. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/model/__init__.py +0 -0
  42. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/model/artifact.py +0 -0
  43. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/model/artifact_provider.py +0 -0
  44. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/model/credentials.py +0 -0
  45. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/model/credentials_provider.py +0 -0
  46. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/providers/__init__.py +0 -0
  47. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/providers/artifactory.py +0 -0
  48. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/providers/aws_code_artifact.py +0 -0
  49. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/providers/azure_artifacts.py +0 -0
  50. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/providers/gcp_artifact_registry.py +0 -0
  51. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/artifacts_finder/providers/nexus.py +0 -0
  52. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/extensions/pipeline_data_importer.py +0 -0
  53. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/github/__init__.py +0 -0
  54. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/github/github_client.py +0 -0
  55. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/github/github_pipeline_data_importer.py +0 -0
  56. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/github/github_run_pipeline_command.py +0 -0
  57. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/github/safe_github_client.py +0 -0
  58. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/gitlab/__init__.py +0 -0
  59. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/gitlab/custom_extensions.py +0 -0
  60. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/gitlab/gitlab_client.py +0 -0
  61. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/gitlab/gitlab_pipeline_data_importer.py +0 -0
  62. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/gitlab/gitlab_run_pipeline_command.py +0 -0
  63. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/gitlab/safe_gitlab_client.py +0 -0
  64. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/jenkins/__init__.py +0 -0
  65. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/jenkins/custom_extensions.py +0 -0
  66. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/jenkins/jenkins_client.py +0 -0
  67. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/jenkins/jenkins_pipeline_data_importer.py +0 -0
  68. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/jenkins/jenkins_run_pipeline_command.py +0 -0
  69. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/jenkins/safe_jenkins_client.py +0 -0
  70. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/podman/__init__.py +0 -0
  71. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/podman/podman_command.md +0 -0
  72. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/podman/podman_command.py +0 -0
  73. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/sops/sops_client.py +0 -0
  74. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/utils/crypto_utils.py +0 -0
  75. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/utils/extension_utils.py +0 -0
  76. {qubership_pipelines_common_library-2.0.1 → qubership_pipelines_common_library-2.0.2}/qubership_pipelines_common_library/v2/utils/retry_decorator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qubership-pipelines-common-library
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Qubership Pipelines common library
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "qubership-pipelines-common-library"
3
- version = "2.0.1"
3
+ version = "2.0.2"
4
4
  description = "Qubership Pipelines common library"
5
5
  authors = ["Qubership"]
6
6
  readme = "README.md"
@@ -1,14 +1,11 @@
1
1
  import logging
2
+ import os
2
3
  import re
3
-
4
+ import sys
4
5
  import click
5
- from rich import box
6
- from rich.logging import RichHandler
7
- from rich.panel import Panel
8
6
 
9
7
  from qubership_pipelines_common_library.v1.execution.exec_logger import ExecutionLogger
10
- from qubership_pipelines_common_library.v1.utils.utils_logging import rich_console, ExtendedReprHighlighter, \
11
- LevelColorFilter
8
+ from qubership_pipelines_common_library.v1.utils.utils_string import UtilsString
12
9
 
13
10
  DEFAULT_CONTEXT_FILE_PATH = 'context.yaml'
14
11
 
@@ -37,26 +34,34 @@ def utils_cli(func):
37
34
 
38
35
  def _configure_global_logger(global_logger: logging.Logger, log_level: str):
39
36
  """Configure the global logger with a specific log level and formatter."""
37
+ log_level_value = getattr(logging, log_level.upper(), logging.INFO)
40
38
  global_logger.setLevel(logging.DEBUG)
41
39
  if global_logger.hasHandlers():
42
40
  global_logger.handlers.clear()
43
41
  global_logger.propagate = True
44
- rich_handler = RichHandler(
45
- console=rich_console,
46
- show_time=False,
47
- show_level=False,
48
- show_path=False,
49
- enable_link_path=False,
50
- rich_tracebacks=True,
51
- tracebacks_show_locals=False,
52
- markup=True,
53
- highlighter=ExtendedReprHighlighter(),
54
- )
55
- rich_handler.addFilter(LevelColorFilter())
56
- rich_handler.setFormatter(logging.Formatter(ExecutionLogger.LEVELNAME_COLORED_FORMAT))
57
- log_level_value = getattr(logging, log_level.upper(), logging.INFO)
58
- rich_handler.setLevel(log_level_value)
59
- global_logger.addHandler(rich_handler)
42
+ if UtilsString.convert_to_bool(os.getenv('NO_RICH', False)):
43
+ stdout_handler = logging.StreamHandler(sys.stdout)
44
+ stdout_handler.setLevel(log_level_value)
45
+ stdout_handler.setFormatter(logging.Formatter(ExecutionLogger.DEFAULT_FORMAT))
46
+ global_logger.addHandler(stdout_handler)
47
+ else:
48
+ from rich.logging import RichHandler
49
+ from qubership_pipelines_common_library.v1.utils.utils_logging import rich_console, ExtendedReprHighlighter, LevelColorFilter
50
+ rich_handler = RichHandler(
51
+ console=rich_console,
52
+ show_time=False,
53
+ show_level=False,
54
+ show_path=False,
55
+ enable_link_path=False,
56
+ rich_tracebacks=True,
57
+ tracebacks_show_locals=False,
58
+ markup=True,
59
+ highlighter=ExtendedReprHighlighter(),
60
+ )
61
+ rich_handler.addFilter(LevelColorFilter())
62
+ rich_handler.setFormatter(logging.Formatter(ExecutionLogger.LEVELNAME_COLORED_FORMAT))
63
+ rich_handler.setLevel(log_level_value)
64
+ global_logger.addHandler(rich_handler)
60
65
 
61
66
 
62
67
  def _print_command_name():
@@ -67,10 +72,16 @@ def _print_command_name():
67
72
  logging.getLogger().warning("Can't find command name.")
68
73
  command_name = ""
69
74
 
70
- command_panel = Panel(f"command_name = {command_name}", expand=False, padding=(0, 1), box=box.ROUNDED)
71
- rich_console.print()
72
- rich_console.print(command_panel)
73
- rich_console.print()
75
+ if UtilsString.convert_to_bool(os.getenv('NO_RICH', False)):
76
+ logging.info(f"command_name = {command_name}")
77
+ else:
78
+ from rich import box
79
+ from rich.panel import Panel
80
+ from qubership_pipelines_common_library.v1.utils.utils_logging import rich_console
81
+ command_panel = Panel(f"command_name = {command_name}", expand=False, padding=(0, 1), box=box.ROUNDED)
82
+ rich_console.print()
83
+ rich_console.print(command_panel)
84
+ rich_console.print()
74
85
 
75
86
 
76
87
  def _transform_kwargs(kwargs):
@@ -18,7 +18,6 @@ soft_theme = Theme({
18
18
  "repr.str": "rgb(140,180,140)",
19
19
  "repr.tag_name": "rgb(200,170,220)",
20
20
  "repr.tag_value": "rgb(170,200,220)",
21
-
22
21
  "repr.time": "rgb(160,190,220) italic",
23
22
  })
24
23