From f2d891c95ccae3b5f5773ca691ace3a5651f6ac5 Mon Sep 17 00:00:00 2001 From: Dingjiahui Date: Mon, 23 Dec 2024 10:00:39 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B4Copyright?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dingjiahui --- build/build.sh | 14 ++++++++++---- build/constants.sh | 14 ++++++++++---- build/daily_build.sh | 14 ++++++++++---- build/oedp.spec | 4 ++-- oedp.py | 15 +++++++++++---- src/commands/check/check_cmd.py | 15 +++++++++++---- src/commands/info/info_cmd.py | 15 +++++++++++---- src/commands/init/init_cmd.py | 15 +++++++++++---- src/commands/list/list_cmd.py | 15 +++++++++++---- src/commands/run/run_action.py | 15 +++++++++++---- src/commands/run/run_cmd.py | 15 +++++++++++---- src/constants/const.py | 15 +++++++++++---- src/constants/paths.py | 15 +++++++++++---- src/exceptions/base_custom_exception.py | 15 +++++++++++---- src/exceptions/config_exception.py | 15 +++++++++++---- src/parsers/oedp_parser.py | 15 +++++++++++---- src/utils/command/command_executor.py | 14 ++++++++++---- src/utils/config_reader.py | 15 +++++++++++---- src/utils/log/log_config_obj.py | 13 +++++++++++++ src/utils/log/logger_generator.py | 16 ++++++++++++---- src/utils/main_reader.py | 15 +++++++++++---- src/utils/tools.py | 15 +++++++++++---- 22 files changed, 232 insertions(+), 82 deletions(-) diff --git a/build/build.sh b/build/build.sh index 897b26f..734ec0c 100644 --- a/build/build.sh +++ b/build/build.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== set -ex diff --git a/build/constants.sh b/build/constants.sh index 8302553..04e7b82 100644 --- a/build/constants.sh +++ b/build/constants.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== set -e diff --git a/build/daily_build.sh b/build/daily_build.sh index e65135a..3d0035a 100644 --- a/build/daily_build.sh +++ b/build/daily_build.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== cd /root/build_workspace/ diff --git a/build/oedp.spec b/build/oedp.spec index 07a0131..cd3f2db 100644 --- a/build/oedp.spec +++ b/build/oedp.spec @@ -1,9 +1,9 @@ %define _python_bytecompile_errors_terminate_build 0 Name: oedp Version: 1.0.0 -Release: release_number +Release: 1 Summary: openEuler deploy tool -License: NA +License: Mulan PSL v2 Source0: %{name}-%{version}.tar.gz Requires: python3, ansible diff --git a/oedp.py b/oedp.py index e4857c9..43c9fbd 100644 --- a/oedp.py +++ b/oedp.py @@ -1,8 +1,15 @@ #!/usr/bin/env python3 -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import sys diff --git a/src/commands/check/check_cmd.py b/src/commands/check/check_cmd.py index 50fc9dc..db480d2 100644 --- a/src/commands/check/check_cmd.py +++ b/src/commands/check/check_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from src.utils.log.logger_generator import LoggerGenerator diff --git a/src/commands/info/info_cmd.py b/src/commands/info/info_cmd.py index c885641..0b4b4d1 100644 --- a/src/commands/info/info_cmd.py +++ b/src/commands/info/info_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from tabulate import tabulate diff --git a/src/commands/init/init_cmd.py b/src/commands/init/init_cmd.py index cae76c4..0c3cb73 100644 --- a/src/commands/init/init_cmd.py +++ b/src/commands/init/init_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/commands/list/list_cmd.py b/src/commands/list/list_cmd.py index 818cefa..5442faa 100644 --- a/src/commands/list/list_cmd.py +++ b/src/commands/list/list_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/commands/run/run_action.py b/src/commands/run/run_action.py index 6b66a42..ef29c9d 100644 --- a/src/commands/run/run_action.py +++ b/src/commands/run/run_action.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/commands/run/run_cmd.py b/src/commands/run/run_cmd.py index 66e850d..640cb9a 100644 --- a/src/commands/run/run_cmd.py +++ b/src/commands/run/run_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from src.commands.run.run_action import RunAction diff --git a/src/constants/const.py b/src/constants/const.py index d4d4da1..e1f1746 100644 --- a/src/constants/const.py +++ b/src/constants/const.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== # 命令行 diff --git a/src/constants/paths.py b/src/constants/paths.py index 083bc38..1fc6852 100644 --- a/src/constants/paths.py +++ b/src/constants/paths.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== """ diff --git a/src/exceptions/base_custom_exception.py b/src/exceptions/base_custom_exception.py index b7f031c..2666dc9 100644 --- a/src/exceptions/base_custom_exception.py +++ b/src/exceptions/base_custom_exception.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== class BaseCustomException(Exception): diff --git a/src/exceptions/config_exception.py b/src/exceptions/config_exception.py index ac41a35..ddca312 100644 --- a/src/exceptions/config_exception.py +++ b/src/exceptions/config_exception.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from src.exceptions.base_custom_exception import BaseCustomException diff --git a/src/parsers/oedp_parser.py b/src/parsers/oedp_parser.py index 51a79ed..76112ce 100644 --- a/src/parsers/oedp_parser.py +++ b/src/parsers/oedp_parser.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import argparse diff --git a/src/utils/command/command_executor.py b/src/utils/command/command_executor.py index e32cc3b..16379ab 100644 --- a/src/utils/command/command_executor.py +++ b/src/utils/command/command_executor.py @@ -1,8 +1,14 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/utils/config_reader.py b/src/utils/config_reader.py index 4916e90..5438884 100644 --- a/src/utils/config_reader.py +++ b/src/utils/config_reader.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import json diff --git a/src/utils/log/log_config_obj.py b/src/utils/log/log_config_obj.py index 78dc3f8..9cda5fc 100644 --- a/src/utils/log/log_config_obj.py +++ b/src/utils/log/log_config_obj.py @@ -1,3 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 +# ====================================================================================================================== + import logging import os.path from configparser import ConfigParser, NoSectionError, NoOptionError diff --git a/src/utils/log/logger_generator.py b/src/utils/log/logger_generator.py index 604aa46..8499d22 100644 --- a/src/utils/log/logger_generator.py +++ b/src/utils/log/logger_generator.py @@ -1,8 +1,16 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== + import logging import logging.handlers import os.path diff --git a/src/utils/main_reader.py b/src/utils/main_reader.py index 3dc3542..8d5eda8 100644 --- a/src/utils/main_reader.py +++ b/src/utils/main_reader.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/utils/tools.py b/src/utils/tools.py index f932f2f..b2ea56f 100644 --- a/src/utils/tools.py +++ b/src/utils/tools.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== """ -- Gitee