From 1e2f436f7cfb64ff92301a689641d58c5c308d12 Mon Sep 17 00:00:00 2001 From: miao_kaibo Date: Fri, 30 Oct 2020 17:55:31 +0800 Subject: [PATCH 1/2] add copyright --- common/common.py | 16 ++++++++++++++-- common/log_obs.py | 14 ++++++++++++++ common/parser_config.py | 17 ++++++++++++++--- core/gitee_to_obs.py | 18 ++++++++++++++---- core/package_manager.py | 19 ++++++++++++++----- core/project_manager.py | 16 ++++++++++++++-- core/runner.py | 17 ++++++++++++++--- core/save.py | 18 ++++++++++++++---- openeuler_obs.py | 16 +++++++++++++++- 9 files changed, 127 insertions(+), 24 deletions(-) diff --git a/common/common.py b/common/common.py index 7bfbcb1..2645791 100644 --- a/common/common.py +++ b/common/common.py @@ -1,8 +1,20 @@ #/bin/env python3 # -*- encoding=utf8 -*- +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: miao_kaibo +# Create: 2020-10-20 +# ****************************************************************************** + """ -created by: miaokaibo -date: 2020-10-20 15:50 function for all """ diff --git a/common/log_obs.py b/common/log_obs.py index 7e986ee..b493ee8 100644 --- a/common/log_obs.py +++ b/common/log_obs.py @@ -1,5 +1,19 @@ #/bin/env python3 # -*- encoding=utf8 -*- +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: miao_kaibo +# Create: 2020-10-16 +# ****************************************************************************** + """ logger for all scripts """ diff --git a/common/parser_config.py b/common/parser_config.py index 3ec4772..590aa97 100644 --- a/common/parser_config.py +++ b/common/parser_config.py @@ -1,9 +1,20 @@ #/bin/env python3 # -*- encoding=utf8 -*- -""" -created by: miaokaibo -date: 2020-10-20 9:55 +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: miao_kaibo +# Create: 2020-10-20 +# ****************************************************************************** +""" parser config.ini """ import os diff --git a/core/gitee_to_obs.py b/core/gitee_to_obs.py index 9701a8f..55936eb 100644 --- a/core/gitee_to_obs.py +++ b/core/gitee_to_obs.py @@ -1,9 +1,19 @@ #!/bin/evn python3 +# -*- encoding=utf8 -*- +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: yaokai +# Create: 2020-10-26 +# ****************************************************************************** -""" -created by :yaokai -date: 2020-10-26 -""" import sys import os import shutil diff --git a/core/package_manager.py b/core/package_manager.py index 8958474..d964d1c 100755 --- a/core/package_manager.py +++ b/core/package_manager.py @@ -1,9 +1,18 @@ #!/bin/env python3 - -""" -created by: wangchong -date: 2020-10-26 -""" +# -*- encoding=utf8 -*- +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: wangchong +# Create: 2020-10-26 +# ****************************************************************************** import os import re diff --git a/core/project_manager.py b/core/project_manager.py index ac38541..be0cce9 100644 --- a/core/project_manager.py +++ b/core/project_manager.py @@ -1,9 +1,21 @@ #!/usr/bin/env python3 # -*- encoding=utf-8 -*- +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: miao_kaibo +# Create: 2020-10-29 +# ****************************************************************************** + """ obs project manager -create by: miaokaibo -time: 2020-10-29 """ import re import os diff --git a/core/runner.py b/core/runner.py index cd9caff..2e68636 100644 --- a/core/runner.py +++ b/core/runner.py @@ -1,9 +1,20 @@ #/bin/env python3 # -*- encoding=utf8 -*- -""" -created by: miaokaibo -date: 2020-10-20 9:55 +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: miao_kaibo +# Create: 2020-10-20 +# ****************************************************************************** +""" main script for running """ from common.log_obs import log diff --git a/core/save.py b/core/save.py index ac3dd2a..66c987e 100644 --- a/core/save.py +++ b/core/save.py @@ -1,9 +1,19 @@ #/bin/env python3 # -*- encoding=utf8 -*- -""" -created by: miaokaibo -date: 2020-10-22 9:30 -""" +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: miao_kaibo +# Create: 2020-10-22 +# ****************************************************************************** + import csv import os import sys diff --git a/openeuler_obs.py b/openeuler_obs.py index fa8eecc..547239f 100644 --- a/openeuler_obs.py +++ b/openeuler_obs.py @@ -1,5 +1,19 @@ - #/bin/env python3 +#/bin/env python3 # -*- encoding=utf8 -*- +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# Author: miao_kaibo +# Create: 2020-10-16 +# ****************************************************************************** + """ main script for openeuler-obs """ -- Gitee From 919e91b52c26d776695737492e416bbb074895d5 Mon Sep 17 00:00:00 2001 From: miao_kaibo Date: Fri, 30 Oct 2020 18:00:00 +0800 Subject: [PATCH 2/2] add docstring for file --- core/gitee_to_obs.py | 4 +++- core/package_manager.py | 4 ++++ core/save.py | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/core/gitee_to_obs.py b/core/gitee_to_obs.py index 55936eb..ea04658 100644 --- a/core/gitee_to_obs.py +++ b/core/gitee_to_obs.py @@ -13,7 +13,9 @@ # Author: yaokai # Create: 2020-10-26 # ****************************************************************************** - +""" +sync code from gitee to obs +""" import sys import os import shutil diff --git a/core/package_manager.py b/core/package_manager.py index d964d1c..332a613 100755 --- a/core/package_manager.py +++ b/core/package_manager.py @@ -14,6 +14,10 @@ # Create: 2020-10-26 # ****************************************************************************** +""" +action for package +""" + import os import re import sys diff --git a/core/save.py b/core/save.py index 66c987e..98184fa 100644 --- a/core/save.py +++ b/core/save.py @@ -13,6 +13,9 @@ # Author: miao_kaibo # Create: 2020-10-22 # ****************************************************************************** +""" +save package info +""" import csv import os -- Gitee