-
Notifications
You must be signed in to change notification settings - Fork 504
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (53 loc) · 2.16 KB
/
setup.py
File metadata and controls
58 lines (53 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 2020 Josh Wills. All rights reserved.
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the LICENSE file at the
# root of this repository, or online at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from pathlib import Path
from setuptools import find_packages, setup
README = Path(__file__).parent / "README.md"
extras_require = {}
if not os.environ.get("RELEASE_BUILD"):
extras_require["dev"] = [
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#egg=dbt-tests-adapter&subdirectory=dbt-tests-adapter"
]
setup(
name="dbt-materialize",
# This adapter's minor version should match the required dbt-postgres version,
# but patch versions may differ.
# If you bump this version, bump it in __version__.py too.
version="1.9.8",
description="The Materialize adapter plugin for dbt.",
long_description=(Path(__file__).parent / "README.md").open().read(),
long_description_content_type="text/markdown",
author="Materialize, Inc.",
author_email="support@materialize.com",
url="https://github.com/MaterializeInc/materialize/blob/main/misc/dbt-materialize",
packages=find_packages(),
package_data={
"dbt": [
"include/materialize/dbt_project.yml",
"include/materialize/macros/*.sql",
"include/materialize/macros/**/*.sql",
]
},
install_requires=[
"dbt-common>=1.10,<3.0",
"dbt-adapters>=1.7,<2.0",
# add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency
"dbt-core>=1.8.0",
"dbt-postgres>=1.8,<1.11",
],
extras_require=extras_require,
)