From fc60a64899d1245bf0b78ee71ab4ab3113dcf26d Mon Sep 17 00:00:00 2001 From: gongzt Date: Fri, 11 Sep 2020 11:43:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=97=B6=E7=9A=84=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E5=B0=86=E5=85=B6=E6=B7=BB=E5=8A=A0=E5=88=B0?= =?UTF-8?q?setup.py=E6=89=93=E5=8C=85=E6=96=87=E4=BB=B6=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageship/conf.yaml | 21 +++++++++++++++++++++ packageship/setup.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 packageship/conf.yaml diff --git a/packageship/conf.yaml b/packageship/conf.yaml new file mode 100644 index 00000000..b4d29ee3 --- /dev/null +++ b/packageship/conf.yaml @@ -0,0 +1,21 @@ +# During initialization, you can initialize multiple databases at once + +# dbname: The name of the database to be initialized +# It is recommended to use the version number as the name of the database + +# src_db_file:SQLite files related to the source package provided in the repo source + +# bin_db_file:SQLite files related to the binary package provided in the repo source + +# lifecycle:Does the imported source package data need to be stored in the life cycle database +# When you need to store in the life cycle, you need to set the value to enable +# When you do not need to store in the life cycle, you need to set the value to disable + +# priority: The priority of the database,When querying dependencies, which library is +# the first to find data the value can only be 1、 2、 3、 4 + +- dbname: $database_name + src_db_file: $path.sqlite + bin_db_file: $path.sqlite + lifecycle: enable/disable + priority: 1/2/3/4 \ No newline at end of file diff --git a/packageship/setup.py b/packageship/setup.py index 346a0c62..4ef2d481 100644 --- a/packageship/setup.py +++ b/packageship/setup.py @@ -58,6 +58,6 @@ setup( long_description=open('README.md', encoding='utf-8').read(), author='gongzt', data_files=[ - (_CONFIG_PATH, ['packageship/package.ini']), + (_CONFIG_PATH, ['packageship/package.ini', 'conf.yaml']), ('/usr/bin', ['packageship/pkgshipd', 'packageship/pkgship'])] ) -- Gitee