1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- # 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 distutils.core import setup
- from pathlib import Path
- from setuptools import find_packages
- 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.5",
- 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.10",
- ],
- extras_require=extras_require,
- )
|