setup.py 2.2 KB

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