prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Add materializations dirs to include paths for pg/redshift
  ## Issue
  
  ### Issue description
  The 0.14.0-a1 pypi distribution of dbt does not include specific macro directories in its `package_data` list. As a result, dbt installed via pip from pypi does not ship with materialization overrides for archival. This manifests as a `merge` statement running for snapshot jobs on pg/redshift projects.
  
  - [package_data](https://github.com/fishtown-analytics/dbt/blob/dev/wilt-chamberlain/plugins/postgres/setup.py#L24-L29)
  - unincluded macros:
    - [postgres](https://github.com/fishtown-analytics/dbt/tree/dev/wilt-chamberlain/plugins/postgres/dbt/include/postgres/macros/materializations)
    - [redshift](https://github.com/fishtown-analytics/dbt/tree/dev/wilt-chamberlain/plugins/redshift/dbt/include/redshift/macros/materializations)
  
  We should:
  1. include these macro directories in `setup.py` (is there anywhere else to add them?)
  2. figure out if there's a good way to keep these things synchronized, or understand if they've fallen out of sync. This works great in development, but only fails once the release is cut on pypi. Is there a way for us to find this earlier?
  
  ### Results
  dbt used the default snapshot materialization (using a `merge`) and not the pg/redshift-specific implementation provided in the respective plugins.
  
  ### System information
  The output of `dbt --version`:
  ```
  0.14.0-a1
  ```
  
  The operating system you're running on:
  
  The python version you're using (probably the output of `python --version`)
  
  ### Steps to reproduce
  ```
  pip install dbt
  dbt snapshot # on redshift
  ```
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `plugins/postgres/setup.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 from setuptools import find_packages
  3 from distutils.core import setup
  4 import os
  5 
  6 package_name = "dbt-postgres"
  7 package_version = "0.14.0a1"
  8 description = """The postgres adpter plugin for dbt (data build tool)"""
  9 
  10 this_directory = os.path.abspath(os.path.dirname(__file__))
  11 with open(os.path.join(this_directory, 'README.md')) as f:
  12     long_description = f.read()
  13 
  14 setup(
  15     name=package_name,
  16     version=package_version,
  17     description=description,
  18     long_description=description,
  19     long_description_content_type='text/markdown',
  20     author="Fishtown Analytics",
  21     author_email="info@fishtownanalytics.com",
  22     url="https://github.com/fishtown-analytics/dbt",
  23     packages=find_packages(),
  24     package_data={
  25         'dbt': [
  26             'include/postgres/dbt_project.yml',
  27             'include/postgres/macros/*.sql',
  28         ]
  29     },
  30     install_requires=[
  31         'dbt-core=={}'.format(package_version),
  32         'psycopg2>=2.7.5,<2.8',
  33     ]
  34 )
  35
  ```
  
  Path: `plugins/redshift/setup.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 from setuptools import find_packages
  3 from distutils.core import setup
  4 import os
  5 
  6 package_name = "dbt-redshift"
  7 package_version = "0.14.0a1"
  8 description = """The redshift adapter plugin for dbt (data build tool)"""
  9 
  10 this_directory = os.path.abspath(os.path.dirname(__file__))
  11 with open(os.path.join(this_directory, 'README.md')) as f:
  12     long_description = f.read()
  13 
  14 setup(
  15     name=package_name,
  16     version=package_version,
  17     description=description,
  18     long_description=description,
  19     long_description_content_type='text/markdown',
  20     author="Fishtown Analytics",
  21     author_email="info@fishtownanalytics.com",
  22     url="https://github.com/fishtown-analytics/dbt",
  23     packages=find_packages(),
  24     package_data={
  25         'dbt': [
  26             'include/redshift/dbt_project.yml',
  27             'include/redshift/macros/*.sql',
  28         ]
  29     },
  30     install_requires=[
  31         'dbt-core=={}'.format(package_version),
  32         'dbt-postgres=={}'.format(package_version),
  33         'boto3>=1.6.23,<1.10.0',
  34         'botocore>=1.9.23,<1.13.0',
  35         'psycopg2>=2.7.5,<2.8',
  36     ]
  37 )
  38
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/plugins/postgres/setup.py b/plugins/postgres/setup.py
  --- a/plugins/postgres/setup.py
  +++ b/plugins/postgres/setup.py
  @@ -25,6 +25,7 @@
           'dbt': [
               'include/postgres/dbt_project.yml',
               'include/postgres/macros/*.sql',
  +            'include/postgres/macros/**/*.sql',
           ]
       },
       install_requires=[
  diff --git a/plugins/redshift/setup.py b/plugins/redshift/setup.py
  --- a/plugins/redshift/setup.py
  +++ b/plugins/redshift/setup.py
  @@ -25,6 +25,7 @@
           'dbt': [
               'include/redshift/dbt_project.yml',
               'include/redshift/macros/*.sql',
  +            'include/redshift/macros/**/*.sql',
           ]
       },
       install_requires=[
  
verification_info: {"golden_diff": "diff --git a/plugins/postgres/setup.py b/plugins/postgres/setup.py\n--- a/plugins/postgres/setup.py\n+++ b/plugins/postgres/setup.py\n@@ -25,6 +25,7 @@\n         'dbt': [\n             'include/postgres/dbt_project.yml',\n             'include/postgres/macros/*.sql',\n+            'include/postgres/macros/**/*.sql',\n         ]\n     },\n     install_requires=[\ndiff --git a/plugins/redshift/setup.py b/plugins/redshift/setup.py\n--- a/plugins/redshift/setup.py\n+++ b/plugins/redshift/setup.py\n@@ -25,6 +25,7 @@\n         'dbt': [\n             'include/redshift/dbt_project.yml',\n             'include/redshift/macros/*.sql',\n+            'include/redshift/macros/**/*.sql',\n         ]\n     },\n     install_requires=[\n", "issue": "Add materializations dirs to include paths for pg/redshift\n## Issue\r\n\r\n### Issue description\r\nThe 0.14.0-a1 pypi distribution of dbt does not include specific macro directories in its `package_data` list. As a result, dbt installed via pip from pypi does not ship with materialization overrides for archival. This manifests as a `merge` statement running for snapshot jobs on pg/redshift projects.\r\n\r\n- [package_data](https://github.com/fishtown-analytics/dbt/blob/dev/wilt-chamberlain/plugins/postgres/setup.py#L24-L29)\r\n- unincluded macros:\r\n  - [postgres](https://github.com/fishtown-analytics/dbt/tree/dev/wilt-chamberlain/plugins/postgres/dbt/include/postgres/macros/materializations)\r\n  - [redshift](https://github.com/fishtown-analytics/dbt/tree/dev/wilt-chamberlain/plugins/redshift/dbt/include/redshift/macros/materializations)\r\n\r\nWe should:\r\n1. include these macro directories in `setup.py` (is there anywhere else to add them?)\r\n2. figure out if there's a good way to keep these things synchronized, or understand if they've fallen out of sync. This works great in development, but only fails once the release is cut on pypi. Is there a way for us to find this earlier?\r\n\r\n### Results\r\ndbt used the default snapshot materialization (using a `merge`) and not the pg/redshift-specific implementation provided in the respective plugins.\r\n\r\n### System information\r\nThe output of `dbt --version`:\r\n```\r\n0.14.0-a1\r\n```\r\n\r\nThe operating system you're running on:\r\n\r\nThe python version you're using (probably the output of `python --version`)\r\n\r\n### Steps to reproduce\r\n```\r\npip install dbt\r\ndbt snapshot # on redshift\r\n```\n", "before_files": [{"content": "#!/usr/bin/env python\nfrom setuptools import find_packages\nfrom distutils.core import setup\nimport os\n\npackage_name = \"dbt-postgres\"\npackage_version = \"0.14.0a1\"\ndescription = \"\"\"The postgres adpter plugin for dbt (data build tool)\"\"\"\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, 'README.md')) as f:\n    long_description = f.read()\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=description,\n    long_description_content_type='text/markdown',\n    author=\"Fishtown Analytics\",\n    author_email=\"info@fishtownanalytics.com\",\n    url=\"https://github.com/fishtown-analytics/dbt\",\n    packages=find_packages(),\n    package_data={\n        'dbt': [\n            'include/postgres/dbt_project.yml',\n            'include/postgres/macros/*.sql',\n        ]\n    },\n    install_requires=[\n        'dbt-core=={}'.format(package_version),\n        'psycopg2>=2.7.5,<2.8',\n    ]\n)\n", "path": "plugins/postgres/setup.py"}, {"content": "#!/usr/bin/env python\nfrom setuptools import find_packages\nfrom distutils.core import setup\nimport os\n\npackage_name = \"dbt-redshift\"\npackage_version = \"0.14.0a1\"\ndescription = \"\"\"The redshift adapter plugin for dbt (data build tool)\"\"\"\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, 'README.md')) as f:\n    long_description = f.read()\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=description,\n    long_description_content_type='text/markdown',\n    author=\"Fishtown Analytics\",\n    author_email=\"info@fishtownanalytics.com\",\n    url=\"https://github.com/fishtown-analytics/dbt\",\n    packages=find_packages(),\n    package_data={\n        'dbt': [\n            'include/redshift/dbt_project.yml',\n            'include/redshift/macros/*.sql',\n        ]\n    },\n    install_requires=[\n        'dbt-core=={}'.format(package_version),\n        'dbt-postgres=={}'.format(package_version),\n        'boto3>=1.6.23,<1.10.0',\n        'botocore>=1.9.23,<1.13.0',\n        'psycopg2>=2.7.5,<2.8',\n    ]\n)\n", "path": "plugins/redshift/setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nfrom setuptools import find_packages\nfrom distutils.core import setup\nimport os\n\npackage_name = \"dbt-postgres\"\npackage_version = \"0.14.0a1\"\ndescription = \"\"\"The postgres adpter plugin for dbt (data build tool)\"\"\"\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, 'README.md')) as f:\n    long_description = f.read()\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=description,\n    long_description_content_type='text/markdown',\n    author=\"Fishtown Analytics\",\n    author_email=\"info@fishtownanalytics.com\",\n    url=\"https://github.com/fishtown-analytics/dbt\",\n    packages=find_packages(),\n    package_data={\n        'dbt': [\n            'include/postgres/dbt_project.yml',\n            'include/postgres/macros/*.sql',\n            'include/postgres/macros/**/*.sql',\n        ]\n    },\n    install_requires=[\n        'dbt-core=={}'.format(package_version),\n        'psycopg2>=2.7.5,<2.8',\n    ]\n)\n", "path": "plugins/postgres/setup.py"}, {"content": "#!/usr/bin/env python\nfrom setuptools import find_packages\nfrom distutils.core import setup\nimport os\n\npackage_name = \"dbt-redshift\"\npackage_version = \"0.14.0a1\"\ndescription = \"\"\"The redshift adapter plugin for dbt (data build tool)\"\"\"\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, 'README.md')) as f:\n    long_description = f.read()\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=description,\n    long_description_content_type='text/markdown',\n    author=\"Fishtown Analytics\",\n    author_email=\"info@fishtownanalytics.com\",\n    url=\"https://github.com/fishtown-analytics/dbt\",\n    packages=find_packages(),\n    package_data={\n        'dbt': [\n            'include/redshift/dbt_project.yml',\n            'include/redshift/macros/*.sql',\n            'include/redshift/macros/**/*.sql',\n        ]\n    },\n    install_requires=[\n        'dbt-core=={}'.format(package_version),\n        'dbt-postgres=={}'.format(package_version),\n        'boto3>=1.6.23,<1.10.0',\n        'botocore>=1.9.23,<1.13.0',\n        'psycopg2>=2.7.5,<2.8',\n    ]\n)\n", "path": "plugins/redshift/setup.py"}]}