Files
openGauss-OM/script/base_diff/comm_constants.py
李锦波 ea4d53c2f0 !827 更新master分支版本号至7.0.0-RC1
Merge pull request !827 from 李锦波/master
2024-09-20 09:29:09 +00:00

37 lines
1.2 KiB
Python

# -*- coding:utf-8 -*-
#############################################################################
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.
#
# openGauss is licensed under 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.
#############################################################################
class CommConstants:
""" constants for open gauss."""
PACKAGE_TYPE = "bz2File"
VERSION_PATTERN = r'(\d+\.\d+\.\d+)(-RC\d+)?'
VERSION_EXAMPLE = "openGauss-1.0"
PKG_SERVER = "Server"
PKG_OM = "OM"
PKG_CM = "CM"
PKG_SHA256 = "sha256"
# upgrade sql sha file and sql file
UPGRADE_SQL_SHA = "upgrade_sql.sha256"
UPGRADE_SQL_FILE = "upgrade_sql.tar.gz"
# not support grep upgrade
FIRST_GREY_UPGRADE_NUM = -1
DIST_NAME_TUPLE = ("redhat", "euleros", "centos", "openEuler", "FusionOS", "H3Linux", "NingOS")