From efef3a0dbbdd562ee86df6e0a5096812d6e9ff35 Mon Sep 17 00:00:00 2001 From: Wade Deng Date: Thu, 5 May 2022 10:01:52 +0800 Subject: [PATCH] [Enhancement] add a setup.py for pip install . --- extension/dbt-doris/setup.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 extension/dbt-doris/setup.py diff --git a/extension/dbt-doris/setup.py b/extension/dbt-doris/setup.py new file mode 100644 index 00000000000000..e01794f4133363 --- /dev/null +++ b/extension/dbt-doris/setup.py @@ -0,0 +1,36 @@ +from setuptools import setup + +packages = ["dbt", "dbt.adapters.doris", "dbt.include.doris"] + +package_data = { + "": ["*"], + "dbt.include.doris": [ + "macros/adapters/*", + "macros/get_custom_name/*", + "macros/materializations/incremental/*", + "macros/materializations/partition/*", + "macros/materializations/seed/*", + "macros/materializations/snapshot/*", + "macros/materializations/table/*", + "macros/materializations/view/*", + ], +} + +install_requires = ["dbt-core", "mysqlclient"] + +setup_kwargs = { + "name": "dbt-doris", + "version": "0.1.0", + "description": "The doris adapter plugin for dbt", + "long_description": None, + "maintainer": None, + "maintainer_email": None, + "url": None, + "packages": packages, + "package_data": package_data, + "install_requires": install_requires, + "python_requires": ">=3.7,<4.0", +} + + +setup(**setup_kwargs)