diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index 889c0995..34b2a17b 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -19,11 +19,7 @@ permissions: jobs: changelog-entry-check: - uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main + uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml@main with: - changelog_comment: >- - Thank you for your pull request! We could not find a changelog entry for this change. - For details on how to document a change, see the - [dbt-postgres contributing guide](https://github.com/dbt-labs/dbt-postgres/blob/main/CONTRIBUTING.md). - skip_label: "Skip Changelog" + pull-request: ${{ github.event.pull_request.number }} secrets: inherit diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 1ca2ded0..3619e0dd 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -40,7 +40,8 @@ jobs: - name: Update Adapters and Core branches if: ${{ contains(github.event_name, 'workflow_') }} shell: bash - run: ./.github/scripts/update_dev_packages.sh ${{ inputs.dbt_adapters_branch }} "main" + run: scripts/update_dev_packages.sh ${{ inputs.dbt_adapters_branch }} "main" + working-directory: ./dbt-postgres - name: Setup `hatch` uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main @@ -48,3 +49,4 @@ jobs: - name: Run code quality shell: bash run: hatch run code-quality + working-directory: ./dbt-postgres diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 304c139c..fd7f7ca1 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -111,14 +111,16 @@ jobs: - name: Update Adapters and Core branches if: ${{ github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch'}} run: | - ./.github/scripts/update_dev_dependency_branches.sh \ + scripts/update_dev_dependency_branches.sh \ ${{ inputs.dbt_adapters_branch }} \ ${{ inputs.dbt_core_branch }} \ ${{ inputs.dbt_common_branch }} cat pyproject.toml + working-directory: ./dbt-postgres - name: Setup postgres run: psql -f ./scripts/setup_test_database.sql + working-directory: ./dbt-postgres env: PGHOST: localhost PGPORT: 5432 @@ -133,6 +135,7 @@ jobs: - name: Run integration tests run: hatch run integration-tests + working-directory: ./dbt-postgres env: POSTGRES_TEST_HOST: localhost POSTGRES_TEST_PORT: 5432 @@ -164,25 +167,29 @@ jobs: brew install postgresql - name: "Test psycopg2 name - default" - run: .github/scripts/psycopg2-check.sh + run: scripts/psycopg2-check.sh + working-directory: ./dbt-postgres env: PSYCOPG2_EXPECTED_NAME: psycopg2-binary - name: "Test psycopg2 name - invalid override" - run: .github/scripts/psycopg2-check.sh + run: scripts/psycopg2-check.sh + working-directory: ./dbt-postgres env: DBT_PSYCOPG2_NAME: rubber-baby-buggy-bumpers PSYCOPG2_EXPECTED_NAME: psycopg2-binary - name: "Test psycopg2 name - override" - run: .github/scripts/psycopg2-check.sh + run: scripts/psycopg2-check.sh + working-directory: ./dbt-postgres env: DBT_PSYCOPG2_NAME: psycopg2 PSYCOPG2_EXPECTED_NAME: psycopg2-binary # we have not implemented the hook yet, so this doesn't work - name: "Test psycopg2 name - manual override" # verify that the workaround documented in the `README.md` continues to work - run: .github/scripts/psycopg2-check.sh + run: scripts/psycopg2-check.sh + working-directory: ./dbt-postgres env: PSYCOPG2_WORKAROUND: true PSYCOPG2_EXPECTED_NAME: psycopg2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbf36399..dff06591 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,15 @@ concurrency: group: "${{ github.workflow }}-${{ github.event_name }}-${{ inputs.version }}-${{ inputs.deploy-to }}" cancel-in-progress: true +defaults: + run: + shell: bash + working-directory: ./dbt-postgres + jobs: release-prep: name: "Release prep: generate changelog, bump version" - uses: dbt-labs/dbt-postgres/.github/workflows/release_prep_hatch.yml@main + uses: ./.github/workflows/release_prep_hatch.yml with: branch: ${{ inputs.branch }} version: ${{ inputs.version }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5805c982..be1a5195 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -39,3 +39,4 @@ jobs: - name: Run unit tests run: hatch run unit-tests shell: bash + working-directory: ./dbt-postgres diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index bde34d68..70e01cfb 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -20,6 +20,11 @@ on: description: 'The version number to bump to (ex. 1.2.0, 1.3.0b1)' required: true +defaults: + run: + shell: bash + working-directory: ./dbt-postgres + jobs: version_bump_and_changie: uses: dbt-labs/actions/.github/workflows/version-bump.yml@main diff --git a/.changes/0.0.0.md b/dbt-postgres/.changes/0.0.0.md similarity index 100% rename from .changes/0.0.0.md rename to dbt-postgres/.changes/0.0.0.md diff --git a/.changes/1.9.0-b1.md b/dbt-postgres/.changes/1.9.0-b1.md similarity index 100% rename from .changes/1.9.0-b1.md rename to dbt-postgres/.changes/1.9.0-b1.md diff --git a/.changes/1.9.0/Features-20240430-185700.yaml b/dbt-postgres/.changes/1.9.0/Features-20240430-185700.yaml similarity index 100% rename from .changes/1.9.0/Features-20240430-185700.yaml rename to dbt-postgres/.changes/1.9.0/Features-20240430-185700.yaml diff --git a/.changes/1.9.0/Features-20240501-151856.yaml b/dbt-postgres/.changes/1.9.0/Features-20240501-151856.yaml similarity index 100% rename from .changes/1.9.0/Features-20240501-151856.yaml rename to dbt-postgres/.changes/1.9.0/Features-20240501-151856.yaml diff --git a/.changes/1.9.0/Features-20240731-210800.yaml b/dbt-postgres/.changes/1.9.0/Features-20240731-210800.yaml similarity index 100% rename from .changes/1.9.0/Features-20240731-210800.yaml rename to dbt-postgres/.changes/1.9.0/Features-20240731-210800.yaml diff --git a/.changes/1.9.0/Features-20240903-160221.yaml b/dbt-postgres/.changes/1.9.0/Features-20240903-160221.yaml similarity index 100% rename from .changes/1.9.0/Features-20240903-160221.yaml rename to dbt-postgres/.changes/1.9.0/Features-20240903-160221.yaml diff --git a/.changes/1.9.0/Features-20240911-141416.yaml b/dbt-postgres/.changes/1.9.0/Features-20240911-141416.yaml similarity index 100% rename from .changes/1.9.0/Features-20240911-141416.yaml rename to dbt-postgres/.changes/1.9.0/Features-20240911-141416.yaml diff --git a/.changes/1.9.0/Fixes-20240514-193201.yaml b/dbt-postgres/.changes/1.9.0/Fixes-20240514-193201.yaml similarity index 100% rename from .changes/1.9.0/Fixes-20240514-193201.yaml rename to dbt-postgres/.changes/1.9.0/Fixes-20240514-193201.yaml diff --git a/.changes/1.9.0/Fixes-20240605-202614.yaml b/dbt-postgres/.changes/1.9.0/Fixes-20240605-202614.yaml similarity index 100% rename from .changes/1.9.0/Fixes-20240605-202614.yaml rename to dbt-postgres/.changes/1.9.0/Fixes-20240605-202614.yaml diff --git a/.changes/1.9.0/Fixes-20240626-163930.yaml b/dbt-postgres/.changes/1.9.0/Fixes-20240626-163930.yaml similarity index 100% rename from .changes/1.9.0/Fixes-20240626-163930.yaml rename to dbt-postgres/.changes/1.9.0/Fixes-20240626-163930.yaml diff --git a/.changes/1.9.0/Under the Hood-20240716-172442.yaml b/dbt-postgres/.changes/1.9.0/Under the Hood-20240716-172442.yaml similarity index 100% rename from .changes/1.9.0/Under the Hood-20240716-172442.yaml rename to dbt-postgres/.changes/1.9.0/Under the Hood-20240716-172442.yaml diff --git a/.changes/1.9.0/Under the Hood-20240731-075011.yaml b/dbt-postgres/.changes/1.9.0/Under the Hood-20240731-075011.yaml similarity index 100% rename from .changes/1.9.0/Under the Hood-20240731-075011.yaml rename to dbt-postgres/.changes/1.9.0/Under the Hood-20240731-075011.yaml diff --git a/.changes/header.tpl.md b/dbt-postgres/.changes/header.tpl.md similarity index 100% rename from .changes/header.tpl.md rename to dbt-postgres/.changes/header.tpl.md diff --git a/.changes/unreleased/.gitkeep b/dbt-postgres/.changes/unreleased/.gitkeep similarity index 100% rename from .changes/unreleased/.gitkeep rename to dbt-postgres/.changes/unreleased/.gitkeep diff --git a/.changes/unreleased/Breaking Changes-20241016-175527.yaml b/dbt-postgres/.changes/unreleased/Breaking Changes-20241016-175527.yaml similarity index 100% rename from .changes/unreleased/Breaking Changes-20241016-175527.yaml rename to dbt-postgres/.changes/unreleased/Breaking Changes-20241016-175527.yaml diff --git a/.changes/unreleased/Features-20240927-133708.yaml b/dbt-postgres/.changes/unreleased/Features-20240927-133708.yaml similarity index 100% rename from .changes/unreleased/Features-20240927-133708.yaml rename to dbt-postgres/.changes/unreleased/Features-20240927-133708.yaml diff --git a/dbt-postgres/.changes/unreleased/Under the Hood-20241201-122244.yaml b/dbt-postgres/.changes/unreleased/Under the Hood-20241201-122244.yaml new file mode 100644 index 00000000..29cd08e4 --- /dev/null +++ b/dbt-postgres/.changes/unreleased/Under the Hood-20241201-122244.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Migrate to a monorepo in dbt-adapters +time: 2024-12-01T12:22:44.407931-05:00 +custom: + Author: mikealfare + Issue: "176" diff --git a/.changie.yaml b/dbt-postgres/.changie.yaml similarity index 100% rename from .changie.yaml rename to dbt-postgres/.changie.yaml diff --git a/test.env.example b/dbt-postgres/.env.example similarity index 100% rename from test.env.example rename to dbt-postgres/.env.example diff --git a/CHANGELOG.md b/dbt-postgres/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to dbt-postgres/CHANGELOG.md diff --git a/CONTRIBUTING.md b/dbt-postgres/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to dbt-postgres/CONTRIBUTING.md diff --git a/README.md b/dbt-postgres/README.md similarity index 100% rename from README.md rename to dbt-postgres/README.md diff --git a/docker/Dockerfile b/dbt-postgres/docker/Dockerfile similarity index 100% rename from docker/Dockerfile rename to dbt-postgres/docker/Dockerfile diff --git a/docker/README.md b/dbt-postgres/docker/README.md similarity index 100% rename from docker/README.md rename to dbt-postgres/docker/README.md diff --git a/docker/dev.Dockerfile b/dbt-postgres/docker/dev.Dockerfile similarity index 100% rename from docker/dev.Dockerfile rename to dbt-postgres/docker/dev.Dockerfile diff --git a/dbt-postgres/hatch.toml b/dbt-postgres/hatch.toml new file mode 100644 index 00000000..60bbb556 --- /dev/null +++ b/dbt-postgres/hatch.toml @@ -0,0 +1,62 @@ +[version] +path = "src/dbt/adapters/postgres/__version__.py" + +[build.targets.sdist] +packages = ["src/dbt/adapters", "src/dbt/include"] +sources = ["src"] + +[build.targets.wheel] +packages = ["src/dbt/adapters", "src/dbt/include"] +sources = ["src"] + +[envs.default] +dependencies = [ + "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", + "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", + "dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter", + "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", + "pre-commit==3.7.0", + "freezegun", + "pytest", + "pytest-dotenv", + "pytest-mock", + "pytest-xdist", +] +[envs.default.env-vars] +DBT_TEST_USER_1 = "dbt_test_user_1" +DBT_TEST_USER_2 = "dbt_test_user_2" +DBT_TEST_USER_3 = "dbt_test_user_3" +[envs.default.scripts] +setup = "pre-commit install" +code-quality = "pre-commit run --all-files" +unit-tests = "python -m pytest {args:tests/unit}" +integration-tests = "python -m pytest {args:tests/functional}" +docker-dev = [ + "echo Does not support integration testing, only development and unit testing. See issue https://github.com/dbt-labs/dbt-postgres/issues/99", + "docker build -f docker/dev.Dockerfile -t dbt-postgres-dev .", + "docker run --rm -it --name dbt-postgres-dev -v $(pwd):/opt/code dbt-postgres-dev", +] +docker-prod = "docker build -f docker/Dockerfile -t dbt-postgres ." + +[envs.build] +detached = true +dependencies = [ + "wheel", + "twine", + "check-wheel-contents", +] +[envs.build.scripts] +check-all = [ + "- check-wheel", + "- check-sdist", +] +check-wheel = [ + "twine check dist/*", + "find ./dist/dbt_postgres-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/", + "pip freeze | grep dbt-postgres", +] +check-sdist = [ + "check-wheel-contents dist/*.whl --ignore W007,W008", + "find ./dist/dbt_postgres-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/", + "pip freeze | grep dbt-postgres", +] diff --git a/dbt-postgres/pyproject.toml b/dbt-postgres/pyproject.toml new file mode 100644 index 00000000..6f4b4604 --- /dev/null +++ b/dbt-postgres/pyproject.toml @@ -0,0 +1,49 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +dynamic = ["version"] +name = "dbt-postgres" +description = "The set of adapter protocols and base functionality that supports integration with dbt-core" +readme = "README.md" +keywords = ["dbt", "adapter", "adapters", "database", "elt", "dbt-core", "dbt Core", "dbt Cloud", "dbt Labs", "postgres"] +requires-python = ">=3.9.0" +authors = [ + { name = "dbt Labs", email = "info@dbtlabs.com" }, +] +maintainers = [ + { name = "dbt Labs", email = "info@dbtlabs.com" }, +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: Apache Software License", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dependencies = [ + "psycopg2-binary>=2.9,<3.0", + "dbt-adapters>=1.7.0,<2.0", + # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency + "dbt-core>=1.8.0", + # installed via dbt-adapters but used directly + "dbt-common>=1.0.4,<2.0", + "agate>=1.0,<2.0", +] +[project.urls] +Homepage = "https://github.com/dbt-labs/dbt-postgres" +Documentation = "https://docs.getdbt.com" +Repository = "https://github.com/dbt-labs/dbt-postgres.git" +Issues = "https://github.com/dbt-labs/dbt-postgres/issues" +Changelog = "https://github.com/dbt-labs/dbt-postgres/blob/main/CHANGELOG.md" + +[tool.pytest] +testpaths = [ + "tests/functional", + "tests/unit", +] diff --git a/.github/scripts/psycopg2-check.sh b/dbt-postgres/scripts/psycopg2-check.sh similarity index 100% rename from .github/scripts/psycopg2-check.sh rename to dbt-postgres/scripts/psycopg2-check.sh diff --git a/scripts/setup_test_database.sql b/dbt-postgres/scripts/setup_test_database.sql similarity index 100% rename from scripts/setup_test_database.sql rename to dbt-postgres/scripts/setup_test_database.sql diff --git a/.github/scripts/update_dev_dependency_branches.sh b/dbt-postgres/scripts/update_dev_dependency_branches.sh similarity index 100% rename from .github/scripts/update_dev_dependency_branches.sh rename to dbt-postgres/scripts/update_dev_dependency_branches.sh diff --git a/dbt/__init__.py b/dbt-postgres/src/dbt/__init__.py similarity index 100% rename from dbt/__init__.py rename to dbt-postgres/src/dbt/__init__.py diff --git a/dbt/adapters/postgres/__init__.py b/dbt-postgres/src/dbt/adapters/postgres/__init__.py similarity index 100% rename from dbt/adapters/postgres/__init__.py rename to dbt-postgres/src/dbt/adapters/postgres/__init__.py diff --git a/dbt/adapters/postgres/__version__.py b/dbt-postgres/src/dbt/adapters/postgres/__version__.py similarity index 100% rename from dbt/adapters/postgres/__version__.py rename to dbt-postgres/src/dbt/adapters/postgres/__version__.py diff --git a/dbt/adapters/postgres/column.py b/dbt-postgres/src/dbt/adapters/postgres/column.py similarity index 100% rename from dbt/adapters/postgres/column.py rename to dbt-postgres/src/dbt/adapters/postgres/column.py diff --git a/dbt/adapters/postgres/connections.py b/dbt-postgres/src/dbt/adapters/postgres/connections.py similarity index 100% rename from dbt/adapters/postgres/connections.py rename to dbt-postgres/src/dbt/adapters/postgres/connections.py diff --git a/dbt/adapters/postgres/impl.py b/dbt-postgres/src/dbt/adapters/postgres/impl.py similarity index 100% rename from dbt/adapters/postgres/impl.py rename to dbt-postgres/src/dbt/adapters/postgres/impl.py diff --git a/dbt/adapters/postgres/record/__init__.py b/dbt-postgres/src/dbt/adapters/postgres/record/__init__.py similarity index 100% rename from dbt/adapters/postgres/record/__init__.py rename to dbt-postgres/src/dbt/adapters/postgres/record/__init__.py diff --git a/dbt/adapters/postgres/record/cursor/cursor.py b/dbt-postgres/src/dbt/adapters/postgres/record/cursor/cursor.py similarity index 100% rename from dbt/adapters/postgres/record/cursor/cursor.py rename to dbt-postgres/src/dbt/adapters/postgres/record/cursor/cursor.py diff --git a/dbt/adapters/postgres/record/cursor/status.py b/dbt-postgres/src/dbt/adapters/postgres/record/cursor/status.py similarity index 100% rename from dbt/adapters/postgres/record/cursor/status.py rename to dbt-postgres/src/dbt/adapters/postgres/record/cursor/status.py diff --git a/dbt/adapters/postgres/record/handle.py b/dbt-postgres/src/dbt/adapters/postgres/record/handle.py similarity index 100% rename from dbt/adapters/postgres/record/handle.py rename to dbt-postgres/src/dbt/adapters/postgres/record/handle.py diff --git a/dbt/adapters/postgres/relation.py b/dbt-postgres/src/dbt/adapters/postgres/relation.py similarity index 100% rename from dbt/adapters/postgres/relation.py rename to dbt-postgres/src/dbt/adapters/postgres/relation.py diff --git a/dbt/adapters/postgres/relation_configs/__init__.py b/dbt-postgres/src/dbt/adapters/postgres/relation_configs/__init__.py similarity index 100% rename from dbt/adapters/postgres/relation_configs/__init__.py rename to dbt-postgres/src/dbt/adapters/postgres/relation_configs/__init__.py diff --git a/dbt/adapters/postgres/relation_configs/constants.py b/dbt-postgres/src/dbt/adapters/postgres/relation_configs/constants.py similarity index 100% rename from dbt/adapters/postgres/relation_configs/constants.py rename to dbt-postgres/src/dbt/adapters/postgres/relation_configs/constants.py diff --git a/dbt/adapters/postgres/relation_configs/index.py b/dbt-postgres/src/dbt/adapters/postgres/relation_configs/index.py similarity index 100% rename from dbt/adapters/postgres/relation_configs/index.py rename to dbt-postgres/src/dbt/adapters/postgres/relation_configs/index.py diff --git a/dbt/adapters/postgres/relation_configs/materialized_view.py b/dbt-postgres/src/dbt/adapters/postgres/relation_configs/materialized_view.py similarity index 100% rename from dbt/adapters/postgres/relation_configs/materialized_view.py rename to dbt-postgres/src/dbt/adapters/postgres/relation_configs/materialized_view.py diff --git a/dbt/include/postgres/__init__.py b/dbt-postgres/src/dbt/include/postgres/__init__.py similarity index 100% rename from dbt/include/postgres/__init__.py rename to dbt-postgres/src/dbt/include/postgres/__init__.py diff --git a/dbt/include/postgres/dbt_project.yml b/dbt-postgres/src/dbt/include/postgres/dbt_project.yml similarity index 100% rename from dbt/include/postgres/dbt_project.yml rename to dbt-postgres/src/dbt/include/postgres/dbt_project.yml diff --git a/dbt/include/postgres/macros/adapters.sql b/dbt-postgres/src/dbt/include/postgres/macros/adapters.sql similarity index 100% rename from dbt/include/postgres/macros/adapters.sql rename to dbt-postgres/src/dbt/include/postgres/macros/adapters.sql diff --git a/dbt/include/postgres/macros/catalog.sql b/dbt-postgres/src/dbt/include/postgres/macros/catalog.sql similarity index 100% rename from dbt/include/postgres/macros/catalog.sql rename to dbt-postgres/src/dbt/include/postgres/macros/catalog.sql diff --git a/dbt/include/postgres/macros/materializations/incremental_strategies.sql b/dbt-postgres/src/dbt/include/postgres/macros/materializations/incremental_strategies.sql similarity index 100% rename from dbt/include/postgres/macros/materializations/incremental_strategies.sql rename to dbt-postgres/src/dbt/include/postgres/macros/materializations/incremental_strategies.sql diff --git a/dbt/include/postgres/macros/materializations/snapshot_merge.sql b/dbt-postgres/src/dbt/include/postgres/macros/materializations/snapshot_merge.sql similarity index 100% rename from dbt/include/postgres/macros/materializations/snapshot_merge.sql rename to dbt-postgres/src/dbt/include/postgres/macros/materializations/snapshot_merge.sql diff --git a/dbt/include/postgres/macros/relations.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations.sql similarity index 100% rename from dbt/include/postgres/macros/relations.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations.sql diff --git a/dbt/include/postgres/macros/relations/materialized_view/alter.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/alter.sql similarity index 100% rename from dbt/include/postgres/macros/relations/materialized_view/alter.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/alter.sql diff --git a/dbt/include/postgres/macros/relations/materialized_view/create.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/create.sql similarity index 100% rename from dbt/include/postgres/macros/relations/materialized_view/create.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/create.sql diff --git a/dbt/include/postgres/macros/relations/materialized_view/describe.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/describe.sql similarity index 100% rename from dbt/include/postgres/macros/relations/materialized_view/describe.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/describe.sql diff --git a/dbt/include/postgres/macros/relations/materialized_view/drop.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/drop.sql similarity index 100% rename from dbt/include/postgres/macros/relations/materialized_view/drop.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/drop.sql diff --git a/dbt/include/postgres/macros/relations/materialized_view/refresh.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/refresh.sql similarity index 100% rename from dbt/include/postgres/macros/relations/materialized_view/refresh.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/refresh.sql diff --git a/dbt/include/postgres/macros/relations/materialized_view/rename.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/rename.sql similarity index 100% rename from dbt/include/postgres/macros/relations/materialized_view/rename.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/materialized_view/rename.sql diff --git a/dbt/include/postgres/macros/relations/table/drop.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/table/drop.sql similarity index 100% rename from dbt/include/postgres/macros/relations/table/drop.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/table/drop.sql diff --git a/dbt/include/postgres/macros/relations/table/rename.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/table/rename.sql similarity index 100% rename from dbt/include/postgres/macros/relations/table/rename.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/table/rename.sql diff --git a/dbt/include/postgres/macros/relations/table/replace.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/table/replace.sql similarity index 100% rename from dbt/include/postgres/macros/relations/table/replace.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/table/replace.sql diff --git a/dbt/include/postgres/macros/relations/view/drop.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/view/drop.sql similarity index 100% rename from dbt/include/postgres/macros/relations/view/drop.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/view/drop.sql diff --git a/dbt/include/postgres/macros/relations/view/rename.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/view/rename.sql similarity index 100% rename from dbt/include/postgres/macros/relations/view/rename.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/view/rename.sql diff --git a/dbt/include/postgres/macros/relations/view/replace.sql b/dbt-postgres/src/dbt/include/postgres/macros/relations/view/replace.sql similarity index 100% rename from dbt/include/postgres/macros/relations/view/replace.sql rename to dbt-postgres/src/dbt/include/postgres/macros/relations/view/replace.sql diff --git a/dbt/include/postgres/macros/timestamps.sql b/dbt-postgres/src/dbt/include/postgres/macros/timestamps.sql similarity index 100% rename from dbt/include/postgres/macros/timestamps.sql rename to dbt-postgres/src/dbt/include/postgres/macros/timestamps.sql diff --git a/dbt/include/postgres/macros/utils/any_value.sql b/dbt-postgres/src/dbt/include/postgres/macros/utils/any_value.sql similarity index 100% rename from dbt/include/postgres/macros/utils/any_value.sql rename to dbt-postgres/src/dbt/include/postgres/macros/utils/any_value.sql diff --git a/dbt/include/postgres/macros/utils/columns_spec_ddl.sql b/dbt-postgres/src/dbt/include/postgres/macros/utils/columns_spec_ddl.sql similarity index 100% rename from dbt/include/postgres/macros/utils/columns_spec_ddl.sql rename to dbt-postgres/src/dbt/include/postgres/macros/utils/columns_spec_ddl.sql diff --git a/dbt/include/postgres/macros/utils/dateadd.sql b/dbt-postgres/src/dbt/include/postgres/macros/utils/dateadd.sql similarity index 100% rename from dbt/include/postgres/macros/utils/dateadd.sql rename to dbt-postgres/src/dbt/include/postgres/macros/utils/dateadd.sql diff --git a/dbt/include/postgres/macros/utils/datediff.sql b/dbt-postgres/src/dbt/include/postgres/macros/utils/datediff.sql similarity index 100% rename from dbt/include/postgres/macros/utils/datediff.sql rename to dbt-postgres/src/dbt/include/postgres/macros/utils/datediff.sql diff --git a/dbt/include/postgres/macros/utils/last_day.sql b/dbt-postgres/src/dbt/include/postgres/macros/utils/last_day.sql similarity index 100% rename from dbt/include/postgres/macros/utils/last_day.sql rename to dbt-postgres/src/dbt/include/postgres/macros/utils/last_day.sql diff --git a/dbt/include/postgres/macros/utils/listagg.sql b/dbt-postgres/src/dbt/include/postgres/macros/utils/listagg.sql similarity index 100% rename from dbt/include/postgres/macros/utils/listagg.sql rename to dbt-postgres/src/dbt/include/postgres/macros/utils/listagg.sql diff --git a/dbt/include/postgres/macros/utils/split_part.sql b/dbt-postgres/src/dbt/include/postgres/macros/utils/split_part.sql similarity index 100% rename from dbt/include/postgres/macros/utils/split_part.sql rename to dbt-postgres/src/dbt/include/postgres/macros/utils/split_part.sql diff --git a/dbt/include/postgres/profile_template.yml b/dbt-postgres/src/dbt/include/postgres/profile_template.yml similarity index 100% rename from dbt/include/postgres/profile_template.yml rename to dbt-postgres/src/dbt/include/postgres/profile_template.yml diff --git a/dbt/include/postgres/sample_profiles.yml b/dbt-postgres/src/dbt/include/postgres/sample_profiles.yml similarity index 100% rename from dbt/include/postgres/sample_profiles.yml rename to dbt-postgres/src/dbt/include/postgres/sample_profiles.yml diff --git a/tests/conftest.py b/dbt-postgres/tests/conftest.py similarity index 100% rename from tests/conftest.py rename to dbt-postgres/tests/conftest.py diff --git a/tests/functional/README.md b/dbt-postgres/tests/functional/README.md similarity index 100% rename from tests/functional/README.md rename to dbt-postgres/tests/functional/README.md diff --git a/tests/functional/__init__.py b/dbt-postgres/tests/functional/__init__.py similarity index 100% rename from tests/functional/__init__.py rename to dbt-postgres/tests/functional/__init__.py diff --git a/tests/functional/adapter/__init__.py b/dbt-postgres/tests/functional/adapter/__init__.py similarity index 100% rename from tests/functional/adapter/__init__.py rename to dbt-postgres/tests/functional/adapter/__init__.py diff --git a/tests/functional/adapter/test_aliases.py b/dbt-postgres/tests/functional/adapter/test_aliases.py similarity index 100% rename from tests/functional/adapter/test_aliases.py rename to dbt-postgres/tests/functional/adapter/test_aliases.py diff --git a/tests/functional/adapter/test_basic.py b/dbt-postgres/tests/functional/adapter/test_basic.py similarity index 100% rename from tests/functional/adapter/test_basic.py rename to dbt-postgres/tests/functional/adapter/test_basic.py diff --git a/tests/functional/adapter/test_caching.py b/dbt-postgres/tests/functional/adapter/test_caching.py similarity index 100% rename from tests/functional/adapter/test_caching.py rename to dbt-postgres/tests/functional/adapter/test_caching.py diff --git a/tests/functional/adapter/test_clone.py b/dbt-postgres/tests/functional/adapter/test_clone.py similarity index 100% rename from tests/functional/adapter/test_clone.py rename to dbt-postgres/tests/functional/adapter/test_clone.py diff --git a/tests/functional/adapter/test_column_types.py b/dbt-postgres/tests/functional/adapter/test_column_types.py similarity index 100% rename from tests/functional/adapter/test_column_types.py rename to dbt-postgres/tests/functional/adapter/test_column_types.py diff --git a/tests/functional/adapter/test_concurrency.py b/dbt-postgres/tests/functional/adapter/test_concurrency.py similarity index 100% rename from tests/functional/adapter/test_concurrency.py rename to dbt-postgres/tests/functional/adapter/test_concurrency.py diff --git a/tests/functional/adapter/test_constraints.py b/dbt-postgres/tests/functional/adapter/test_constraints.py similarity index 100% rename from tests/functional/adapter/test_constraints.py rename to dbt-postgres/tests/functional/adapter/test_constraints.py diff --git a/tests/functional/adapter/test_data_types.py b/dbt-postgres/tests/functional/adapter/test_data_types.py similarity index 100% rename from tests/functional/adapter/test_data_types.py rename to dbt-postgres/tests/functional/adapter/test_data_types.py diff --git a/tests/functional/adapter/test_debug.py b/dbt-postgres/tests/functional/adapter/test_debug.py similarity index 100% rename from tests/functional/adapter/test_debug.py rename to dbt-postgres/tests/functional/adapter/test_debug.py diff --git a/tests/functional/adapter/test_empty.py b/dbt-postgres/tests/functional/adapter/test_empty.py similarity index 100% rename from tests/functional/adapter/test_empty.py rename to dbt-postgres/tests/functional/adapter/test_empty.py diff --git a/tests/functional/adapter/test_ephemeral.py b/dbt-postgres/tests/functional/adapter/test_ephemeral.py similarity index 100% rename from tests/functional/adapter/test_ephemeral.py rename to dbt-postgres/tests/functional/adapter/test_ephemeral.py diff --git a/tests/functional/adapter/test_grants.py b/dbt-postgres/tests/functional/adapter/test_grants.py similarity index 100% rename from tests/functional/adapter/test_grants.py rename to dbt-postgres/tests/functional/adapter/test_grants.py diff --git a/tests/functional/adapter/test_hooks/data/seed_model.sql b/dbt-postgres/tests/functional/adapter/test_hooks/data/seed_model.sql similarity index 100% rename from tests/functional/adapter/test_hooks/data/seed_model.sql rename to dbt-postgres/tests/functional/adapter/test_hooks/data/seed_model.sql diff --git a/tests/functional/adapter/test_hooks/data/seed_run.sql b/dbt-postgres/tests/functional/adapter/test_hooks/data/seed_run.sql similarity index 100% rename from tests/functional/adapter/test_hooks/data/seed_run.sql rename to dbt-postgres/tests/functional/adapter/test_hooks/data/seed_run.sql diff --git a/tests/functional/adapter/test_hooks/test_hooks.py b/dbt-postgres/tests/functional/adapter/test_hooks/test_hooks.py similarity index 100% rename from tests/functional/adapter/test_hooks/test_hooks.py rename to dbt-postgres/tests/functional/adapter/test_hooks/test_hooks.py diff --git a/tests/functional/adapter/test_incremental.py b/dbt-postgres/tests/functional/adapter/test_incremental.py similarity index 100% rename from tests/functional/adapter/test_incremental.py rename to dbt-postgres/tests/functional/adapter/test_incremental.py diff --git a/tests/functional/adapter/test_incremental_microbatch.py b/dbt-postgres/tests/functional/adapter/test_incremental_microbatch.py similarity index 100% rename from tests/functional/adapter/test_incremental_microbatch.py rename to dbt-postgres/tests/functional/adapter/test_incremental_microbatch.py diff --git a/tests/functional/adapter/test_persist_docs.py b/dbt-postgres/tests/functional/adapter/test_persist_docs.py similarity index 100% rename from tests/functional/adapter/test_persist_docs.py rename to dbt-postgres/tests/functional/adapter/test_persist_docs.py diff --git a/tests/functional/adapter/test_query_comment.py b/dbt-postgres/tests/functional/adapter/test_query_comment.py similarity index 100% rename from tests/functional/adapter/test_query_comment.py rename to dbt-postgres/tests/functional/adapter/test_query_comment.py diff --git a/tests/functional/adapter/test_relations.py b/dbt-postgres/tests/functional/adapter/test_relations.py similarity index 100% rename from tests/functional/adapter/test_relations.py rename to dbt-postgres/tests/functional/adapter/test_relations.py diff --git a/tests/functional/adapter/test_show.py b/dbt-postgres/tests/functional/adapter/test_show.py similarity index 100% rename from tests/functional/adapter/test_show.py rename to dbt-postgres/tests/functional/adapter/test_show.py diff --git a/tests/functional/adapter/test_simple_copy.py b/dbt-postgres/tests/functional/adapter/test_simple_copy.py similarity index 100% rename from tests/functional/adapter/test_simple_copy.py rename to dbt-postgres/tests/functional/adapter/test_simple_copy.py diff --git a/tests/functional/adapter/test_simple_seed/seed_bom.csv b/dbt-postgres/tests/functional/adapter/test_simple_seed/seed_bom.csv similarity index 100% rename from tests/functional/adapter/test_simple_seed/seed_bom.csv rename to dbt-postgres/tests/functional/adapter/test_simple_seed/seed_bom.csv diff --git a/tests/functional/adapter/test_simple_seed/test_simple_seed.py b/dbt-postgres/tests/functional/adapter/test_simple_seed/test_simple_seed.py similarity index 100% rename from tests/functional/adapter/test_simple_seed/test_simple_seed.py rename to dbt-postgres/tests/functional/adapter/test_simple_seed/test_simple_seed.py diff --git a/tests/functional/adapter/test_simple_snapshot.py b/dbt-postgres/tests/functional/adapter/test_simple_snapshot.py similarity index 100% rename from tests/functional/adapter/test_simple_snapshot.py rename to dbt-postgres/tests/functional/adapter/test_simple_snapshot.py diff --git a/tests/functional/adapter/test_store_test_failures.py b/dbt-postgres/tests/functional/adapter/test_store_test_failures.py similarity index 100% rename from tests/functional/adapter/test_store_test_failures.py rename to dbt-postgres/tests/functional/adapter/test_store_test_failures.py diff --git a/tests/functional/adapter/test_unit_testing.py b/dbt-postgres/tests/functional/adapter/test_unit_testing.py similarity index 100% rename from tests/functional/adapter/test_unit_testing.py rename to dbt-postgres/tests/functional/adapter/test_unit_testing.py diff --git a/tests/functional/adapter/test_utils.py b/dbt-postgres/tests/functional/adapter/test_utils.py similarity index 100% rename from tests/functional/adapter/test_utils.py rename to dbt-postgres/tests/functional/adapter/test_utils.py diff --git a/tests/functional/basic/data/seed-initial.csv b/dbt-postgres/tests/functional/basic/data/seed-initial.csv similarity index 100% rename from tests/functional/basic/data/seed-initial.csv rename to dbt-postgres/tests/functional/basic/data/seed-initial.csv diff --git a/tests/functional/basic/data/seed-update.csv b/dbt-postgres/tests/functional/basic/data/seed-update.csv similarity index 100% rename from tests/functional/basic/data/seed-update.csv rename to dbt-postgres/tests/functional/basic/data/seed-update.csv diff --git a/tests/functional/basic/data/summary_expected.csv b/dbt-postgres/tests/functional/basic/data/summary_expected.csv similarity index 100% rename from tests/functional/basic/data/summary_expected.csv rename to dbt-postgres/tests/functional/basic/data/summary_expected.csv diff --git a/tests/functional/basic/data/summary_expected_update.csv b/dbt-postgres/tests/functional/basic/data/summary_expected_update.csv similarity index 100% rename from tests/functional/basic/data/summary_expected_update.csv rename to dbt-postgres/tests/functional/basic/data/summary_expected_update.csv diff --git a/tests/functional/basic/data/varchar10_seed.sql b/dbt-postgres/tests/functional/basic/data/varchar10_seed.sql similarity index 100% rename from tests/functional/basic/data/varchar10_seed.sql rename to dbt-postgres/tests/functional/basic/data/varchar10_seed.sql diff --git a/tests/functional/basic/data/varchar300_seed.sql b/dbt-postgres/tests/functional/basic/data/varchar300_seed.sql similarity index 100% rename from tests/functional/basic/data/varchar300_seed.sql rename to dbt-postgres/tests/functional/basic/data/varchar300_seed.sql diff --git a/tests/functional/basic/test_basic.py b/dbt-postgres/tests/functional/basic/test_basic.py similarity index 100% rename from tests/functional/basic/test_basic.py rename to dbt-postgres/tests/functional/basic/test_basic.py diff --git a/tests/functional/basic/test_invalid_reference.py b/dbt-postgres/tests/functional/basic/test_invalid_reference.py similarity index 100% rename from tests/functional/basic/test_invalid_reference.py rename to dbt-postgres/tests/functional/basic/test_invalid_reference.py diff --git a/tests/functional/basic/test_jaffle_shop.py b/dbt-postgres/tests/functional/basic/test_jaffle_shop.py similarity index 100% rename from tests/functional/basic/test_jaffle_shop.py rename to dbt-postgres/tests/functional/basic/test_jaffle_shop.py diff --git a/tests/functional/basic/test_mixed_case_db.py b/dbt-postgres/tests/functional/basic/test_mixed_case_db.py similarity index 100% rename from tests/functional/basic/test_mixed_case_db.py rename to dbt-postgres/tests/functional/basic/test_mixed_case_db.py diff --git a/tests/functional/basic/test_project.py b/dbt-postgres/tests/functional/basic/test_project.py similarity index 100% rename from tests/functional/basic/test_project.py rename to dbt-postgres/tests/functional/basic/test_project.py diff --git a/tests/functional/basic/test_simple_reference.py b/dbt-postgres/tests/functional/basic/test_simple_reference.py similarity index 100% rename from tests/functional/basic/test_simple_reference.py rename to dbt-postgres/tests/functional/basic/test_simple_reference.py diff --git a/tests/functional/basic/test_varchar_widening.py b/dbt-postgres/tests/functional/basic/test_varchar_widening.py similarity index 100% rename from tests/functional/basic/test_varchar_widening.py rename to dbt-postgres/tests/functional/basic/test_varchar_widening.py diff --git a/tests/functional/compile/fixtures.py b/dbt-postgres/tests/functional/compile/fixtures.py similarity index 100% rename from tests/functional/compile/fixtures.py rename to dbt-postgres/tests/functional/compile/fixtures.py diff --git a/tests/functional/compile/test_compile.py b/dbt-postgres/tests/functional/compile/test_compile.py similarity index 100% rename from tests/functional/compile/test_compile.py rename to dbt-postgres/tests/functional/compile/test_compile.py diff --git a/tests/functional/conftest.py b/dbt-postgres/tests/functional/conftest.py similarity index 100% rename from tests/functional/conftest.py rename to dbt-postgres/tests/functional/conftest.py diff --git a/tests/functional/contracts/test_contract_enforcement.py b/dbt-postgres/tests/functional/contracts/test_contract_enforcement.py similarity index 100% rename from tests/functional/contracts/test_contract_enforcement.py rename to dbt-postgres/tests/functional/contracts/test_contract_enforcement.py diff --git a/tests/functional/contracts/test_contract_precision.py b/dbt-postgres/tests/functional/contracts/test_contract_precision.py similarity index 100% rename from tests/functional/contracts/test_contract_precision.py rename to dbt-postgres/tests/functional/contracts/test_contract_precision.py diff --git a/tests/functional/contracts/test_nonstandard_data_type.py b/dbt-postgres/tests/functional/contracts/test_nonstandard_data_type.py similarity index 100% rename from tests/functional/contracts/test_nonstandard_data_type.py rename to dbt-postgres/tests/functional/contracts/test_nonstandard_data_type.py diff --git a/tests/functional/custom_aliases/fixtures.py b/dbt-postgres/tests/functional/custom_aliases/fixtures.py similarity index 100% rename from tests/functional/custom_aliases/fixtures.py rename to dbt-postgres/tests/functional/custom_aliases/fixtures.py diff --git a/tests/functional/custom_aliases/test_custom_aliases.py b/dbt-postgres/tests/functional/custom_aliases/test_custom_aliases.py similarity index 100% rename from tests/functional/custom_aliases/test_custom_aliases.py rename to dbt-postgres/tests/functional/custom_aliases/test_custom_aliases.py diff --git a/tests/functional/custom_singular_tests/data/seed_expected.sql b/dbt-postgres/tests/functional/custom_singular_tests/data/seed_expected.sql similarity index 100% rename from tests/functional/custom_singular_tests/data/seed_expected.sql rename to dbt-postgres/tests/functional/custom_singular_tests/data/seed_expected.sql diff --git a/tests/functional/custom_singular_tests/test_custom_singular_tests.py b/dbt-postgres/tests/functional/custom_singular_tests/test_custom_singular_tests.py similarity index 100% rename from tests/functional/custom_singular_tests/test_custom_singular_tests.py rename to dbt-postgres/tests/functional/custom_singular_tests/test_custom_singular_tests.py diff --git a/tests/functional/dbt_debug/test_dbt_debug.py b/dbt-postgres/tests/functional/dbt_debug/test_dbt_debug.py similarity index 100% rename from tests/functional/dbt_debug/test_dbt_debug.py rename to dbt-postgres/tests/functional/dbt_debug/test_dbt_debug.py diff --git a/tests/functional/dbt_runner.py b/dbt-postgres/tests/functional/dbt_runner.py similarity index 100% rename from tests/functional/dbt_runner.py rename to dbt-postgres/tests/functional/dbt_runner.py diff --git a/tests/functional/exit_codes/fixtures.py b/dbt-postgres/tests/functional/exit_codes/fixtures.py similarity index 100% rename from tests/functional/exit_codes/fixtures.py rename to dbt-postgres/tests/functional/exit_codes/fixtures.py diff --git a/tests/functional/exit_codes/test_exit_codes.py b/dbt-postgres/tests/functional/exit_codes/test_exit_codes.py similarity index 100% rename from tests/functional/exit_codes/test_exit_codes.py rename to dbt-postgres/tests/functional/exit_codes/test_exit_codes.py diff --git a/tests/functional/exposures/fixtures.py b/dbt-postgres/tests/functional/exposures/fixtures.py similarity index 100% rename from tests/functional/exposures/fixtures.py rename to dbt-postgres/tests/functional/exposures/fixtures.py diff --git a/tests/functional/exposures/test_exposure_configs.py b/dbt-postgres/tests/functional/exposures/test_exposure_configs.py similarity index 100% rename from tests/functional/exposures/test_exposure_configs.py rename to dbt-postgres/tests/functional/exposures/test_exposure_configs.py diff --git a/tests/functional/exposures/test_exposures.py b/dbt-postgres/tests/functional/exposures/test_exposures.py similarity index 100% rename from tests/functional/exposures/test_exposures.py rename to dbt-postgres/tests/functional/exposures/test_exposures.py diff --git a/tests/functional/graph_selection/test_graph_selection.py b/dbt-postgres/tests/functional/graph_selection/test_graph_selection.py similarity index 100% rename from tests/functional/graph_selection/test_graph_selection.py rename to dbt-postgres/tests/functional/graph_selection/test_graph_selection.py diff --git a/tests/functional/graph_selection/test_group_selection.py b/dbt-postgres/tests/functional/graph_selection/test_group_selection.py similarity index 100% rename from tests/functional/graph_selection/test_group_selection.py rename to dbt-postgres/tests/functional/graph_selection/test_group_selection.py diff --git a/tests/functional/graph_selection/test_intersection_syntax.py b/dbt-postgres/tests/functional/graph_selection/test_intersection_syntax.py similarity index 100% rename from tests/functional/graph_selection/test_intersection_syntax.py rename to dbt-postgres/tests/functional/graph_selection/test_intersection_syntax.py diff --git a/tests/functional/graph_selection/test_schema_test_graph_selection.py b/dbt-postgres/tests/functional/graph_selection/test_schema_test_graph_selection.py similarity index 100% rename from tests/functional/graph_selection/test_schema_test_graph_selection.py rename to dbt-postgres/tests/functional/graph_selection/test_schema_test_graph_selection.py diff --git a/tests/functional/graph_selection/test_tag_selection.py b/dbt-postgres/tests/functional/graph_selection/test_tag_selection.py similarity index 100% rename from tests/functional/graph_selection/test_tag_selection.py rename to dbt-postgres/tests/functional/graph_selection/test_tag_selection.py diff --git a/tests/functional/graph_selection/test_version_selection.py b/dbt-postgres/tests/functional/graph_selection/test_version_selection.py similarity index 100% rename from tests/functional/graph_selection/test_version_selection.py rename to dbt-postgres/tests/functional/graph_selection/test_version_selection.py diff --git a/tests/functional/incremental_schema_tests/fixtures.py b/dbt-postgres/tests/functional/incremental_schema_tests/fixtures.py similarity index 100% rename from tests/functional/incremental_schema_tests/fixtures.py rename to dbt-postgres/tests/functional/incremental_schema_tests/fixtures.py diff --git a/tests/functional/incremental_schema_tests/test_incremental_schema.py b/dbt-postgres/tests/functional/incremental_schema_tests/test_incremental_schema.py similarity index 100% rename from tests/functional/incremental_schema_tests/test_incremental_schema.py rename to dbt-postgres/tests/functional/incremental_schema_tests/test_incremental_schema.py diff --git a/tests/functional/invalid_model_tests/test_invalid_models.py b/dbt-postgres/tests/functional/invalid_model_tests/test_invalid_models.py similarity index 100% rename from tests/functional/invalid_model_tests/test_invalid_models.py rename to dbt-postgres/tests/functional/invalid_model_tests/test_invalid_models.py diff --git a/tests/functional/invalid_model_tests/test_model_warning.py b/dbt-postgres/tests/functional/invalid_model_tests/test_model_warning.py similarity index 100% rename from tests/functional/invalid_model_tests/test_model_warning.py rename to dbt-postgres/tests/functional/invalid_model_tests/test_model_warning.py diff --git a/tests/functional/macros/data/seed.sql b/dbt-postgres/tests/functional/macros/data/seed.sql similarity index 100% rename from tests/functional/macros/data/seed.sql rename to dbt-postgres/tests/functional/macros/data/seed.sql diff --git a/tests/functional/macros/fixtures.py b/dbt-postgres/tests/functional/macros/fixtures.py similarity index 100% rename from tests/functional/macros/fixtures.py rename to dbt-postgres/tests/functional/macros/fixtures.py diff --git a/tests/functional/macros/package_macro_overrides/dbt_project.yml b/dbt-postgres/tests/functional/macros/package_macro_overrides/dbt_project.yml similarity index 100% rename from tests/functional/macros/package_macro_overrides/dbt_project.yml rename to dbt-postgres/tests/functional/macros/package_macro_overrides/dbt_project.yml diff --git a/tests/functional/macros/package_macro_overrides/macros/macros.sql b/dbt-postgres/tests/functional/macros/package_macro_overrides/macros/macros.sql similarity index 100% rename from tests/functional/macros/package_macro_overrides/macros/macros.sql rename to dbt-postgres/tests/functional/macros/package_macro_overrides/macros/macros.sql diff --git a/tests/functional/macros/test_macros.py b/dbt-postgres/tests/functional/macros/test_macros.py similarity index 100% rename from tests/functional/macros/test_macros.py rename to dbt-postgres/tests/functional/macros/test_macros.py diff --git a/tests/functional/materializations/conftest.py b/dbt-postgres/tests/functional/materializations/conftest.py similarity index 100% rename from tests/functional/materializations/conftest.py rename to dbt-postgres/tests/functional/materializations/conftest.py diff --git a/tests/functional/materializations/fixtures.py b/dbt-postgres/tests/functional/materializations/fixtures.py similarity index 100% rename from tests/functional/materializations/fixtures.py rename to dbt-postgres/tests/functional/materializations/fixtures.py diff --git a/tests/functional/materializations/materialized_view_tests/test_materialized_view.py b/dbt-postgres/tests/functional/materializations/materialized_view_tests/test_materialized_view.py similarity index 100% rename from tests/functional/materializations/materialized_view_tests/test_materialized_view.py rename to dbt-postgres/tests/functional/materializations/materialized_view_tests/test_materialized_view.py diff --git a/tests/functional/materializations/materialized_view_tests/test_postgres_materialized_view.py b/dbt-postgres/tests/functional/materializations/materialized_view_tests/test_postgres_materialized_view.py similarity index 100% rename from tests/functional/materializations/materialized_view_tests/test_postgres_materialized_view.py rename to dbt-postgres/tests/functional/materializations/materialized_view_tests/test_postgres_materialized_view.py diff --git a/tests/functional/materializations/materialized_view_tests/utils.py b/dbt-postgres/tests/functional/materializations/materialized_view_tests/utils.py similarity index 100% rename from tests/functional/materializations/materialized_view_tests/utils.py rename to dbt-postgres/tests/functional/materializations/materialized_view_tests/utils.py diff --git a/tests/functional/materializations/test_incremental.py b/dbt-postgres/tests/functional/materializations/test_incremental.py similarity index 100% rename from tests/functional/materializations/test_incremental.py rename to dbt-postgres/tests/functional/materializations/test_incremental.py diff --git a/tests/functional/materializations/test_runtime_materialization.py b/dbt-postgres/tests/functional/materializations/test_runtime_materialization.py similarity index 100% rename from tests/functional/materializations/test_runtime_materialization.py rename to dbt-postgres/tests/functional/materializations/test_runtime_materialization.py diff --git a/tests/functional/materializations/test_supported_languages.py b/dbt-postgres/tests/functional/materializations/test_supported_languages.py similarity index 100% rename from tests/functional/materializations/test_supported_languages.py rename to dbt-postgres/tests/functional/materializations/test_supported_languages.py diff --git a/tests/functional/postgres/fixtures.py b/dbt-postgres/tests/functional/postgres/fixtures.py similarity index 100% rename from tests/functional/postgres/fixtures.py rename to dbt-postgres/tests/functional/postgres/fixtures.py diff --git a/tests/functional/postgres/test_indexes.py b/dbt-postgres/tests/functional/postgres/test_indexes.py similarity index 100% rename from tests/functional/postgres/test_indexes.py rename to dbt-postgres/tests/functional/postgres/test_indexes.py diff --git a/tests/functional/projects/__init__.py b/dbt-postgres/tests/functional/projects/__init__.py similarity index 100% rename from tests/functional/projects/__init__.py rename to dbt-postgres/tests/functional/projects/__init__.py diff --git a/tests/functional/projects/dbt_integration/__init__.py b/dbt-postgres/tests/functional/projects/dbt_integration/__init__.py similarity index 100% rename from tests/functional/projects/dbt_integration/__init__.py rename to dbt-postgres/tests/functional/projects/dbt_integration/__init__.py diff --git a/tests/functional/projects/dbt_integration/macros/do_something.sql b/dbt-postgres/tests/functional/projects/dbt_integration/macros/do_something.sql similarity index 100% rename from tests/functional/projects/dbt_integration/macros/do_something.sql rename to dbt-postgres/tests/functional/projects/dbt_integration/macros/do_something.sql diff --git a/tests/functional/projects/dbt_integration/models/incremental.sql b/dbt-postgres/tests/functional/projects/dbt_integration/models/incremental.sql similarity index 100% rename from tests/functional/projects/dbt_integration/models/incremental.sql rename to dbt-postgres/tests/functional/projects/dbt_integration/models/incremental.sql diff --git a/tests/functional/projects/dbt_integration/models/table.sql b/dbt-postgres/tests/functional/projects/dbt_integration/models/table.sql similarity index 100% rename from tests/functional/projects/dbt_integration/models/table.sql rename to dbt-postgres/tests/functional/projects/dbt_integration/models/table.sql diff --git a/tests/functional/projects/dbt_integration/models/view.sql b/dbt-postgres/tests/functional/projects/dbt_integration/models/view.sql similarity index 100% rename from tests/functional/projects/dbt_integration/models/view.sql rename to dbt-postgres/tests/functional/projects/dbt_integration/models/view.sql diff --git a/tests/functional/projects/dbt_integration/schemas/project.yml b/dbt-postgres/tests/functional/projects/dbt_integration/schemas/project.yml similarity index 100% rename from tests/functional/projects/dbt_integration/schemas/project.yml rename to dbt-postgres/tests/functional/projects/dbt_integration/schemas/project.yml diff --git a/tests/functional/projects/dbt_integration/schemas/schema.yml b/dbt-postgres/tests/functional/projects/dbt_integration/schemas/schema.yml similarity index 100% rename from tests/functional/projects/dbt_integration/schemas/schema.yml rename to dbt-postgres/tests/functional/projects/dbt_integration/schemas/schema.yml diff --git a/tests/functional/projects/graph_selection/__init__.py b/dbt-postgres/tests/functional/projects/graph_selection/__init__.py similarity index 100% rename from tests/functional/projects/graph_selection/__init__.py rename to dbt-postgres/tests/functional/projects/graph_selection/__init__.py diff --git a/tests/functional/projects/graph_selection/data/seed.csv b/dbt-postgres/tests/functional/projects/graph_selection/data/seed.csv similarity index 100% rename from tests/functional/projects/graph_selection/data/seed.csv rename to dbt-postgres/tests/functional/projects/graph_selection/data/seed.csv diff --git a/tests/functional/projects/graph_selection/data/summary_expected.csv b/dbt-postgres/tests/functional/projects/graph_selection/data/summary_expected.csv similarity index 100% rename from tests/functional/projects/graph_selection/data/summary_expected.csv rename to dbt-postgres/tests/functional/projects/graph_selection/data/summary_expected.csv diff --git a/tests/functional/projects/graph_selection/models/alternative_users.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/alternative_users.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/alternative_users.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/alternative_users.sql diff --git a/tests/functional/projects/graph_selection/models/base_users.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/base_users.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/base_users.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/base_users.sql diff --git a/tests/functional/projects/graph_selection/models/emails.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/emails.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/emails.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/emails.sql diff --git a/tests/functional/projects/graph_selection/models/emails_alt.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/emails_alt.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/emails_alt.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/emails_alt.sql diff --git a/tests/functional/projects/graph_selection/models/nested_users.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/nested_users.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/nested_users.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/nested_users.sql diff --git a/tests/functional/projects/graph_selection/models/never_selected.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/never_selected.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/never_selected.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/never_selected.sql diff --git a/tests/functional/projects/graph_selection/models/subdir.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/subdir.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/subdir.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/subdir.sql diff --git a/tests/functional/projects/graph_selection/models/users.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/users.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/users.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/users.sql diff --git a/tests/functional/projects/graph_selection/models/users_rollup.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/users_rollup.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/users_rollup.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/users_rollup.sql diff --git a/tests/functional/projects/graph_selection/models/users_rollup_dependency.sql b/dbt-postgres/tests/functional/projects/graph_selection/models/users_rollup_dependency.sql similarity index 100% rename from tests/functional/projects/graph_selection/models/users_rollup_dependency.sql rename to dbt-postgres/tests/functional/projects/graph_selection/models/users_rollup_dependency.sql diff --git a/tests/functional/projects/graph_selection/schemas/patch_path_selection.yml b/dbt-postgres/tests/functional/projects/graph_selection/schemas/patch_path_selection.yml similarity index 100% rename from tests/functional/projects/graph_selection/schemas/patch_path_selection.yml rename to dbt-postgres/tests/functional/projects/graph_selection/schemas/patch_path_selection.yml diff --git a/tests/functional/projects/graph_selection/schemas/properties.yml b/dbt-postgres/tests/functional/projects/graph_selection/schemas/properties.yml similarity index 100% rename from tests/functional/projects/graph_selection/schemas/properties.yml rename to dbt-postgres/tests/functional/projects/graph_selection/schemas/properties.yml diff --git a/tests/functional/projects/graph_selection/schemas/schema.yml b/dbt-postgres/tests/functional/projects/graph_selection/schemas/schema.yml similarity index 100% rename from tests/functional/projects/graph_selection/schemas/schema.yml rename to dbt-postgres/tests/functional/projects/graph_selection/schemas/schema.yml diff --git a/tests/functional/projects/jaffle_shop/__init__.py b/dbt-postgres/tests/functional/projects/jaffle_shop/__init__.py similarity index 100% rename from tests/functional/projects/jaffle_shop/__init__.py rename to dbt-postgres/tests/functional/projects/jaffle_shop/__init__.py diff --git a/tests/functional/projects/jaffle_shop/data/raw_customers.csv b/dbt-postgres/tests/functional/projects/jaffle_shop/data/raw_customers.csv similarity index 100% rename from tests/functional/projects/jaffle_shop/data/raw_customers.csv rename to dbt-postgres/tests/functional/projects/jaffle_shop/data/raw_customers.csv diff --git a/tests/functional/projects/jaffle_shop/data/raw_orders.csv b/dbt-postgres/tests/functional/projects/jaffle_shop/data/raw_orders.csv similarity index 100% rename from tests/functional/projects/jaffle_shop/data/raw_orders.csv rename to dbt-postgres/tests/functional/projects/jaffle_shop/data/raw_orders.csv diff --git a/tests/functional/projects/jaffle_shop/data/raw_payments.csv b/dbt-postgres/tests/functional/projects/jaffle_shop/data/raw_payments.csv similarity index 100% rename from tests/functional/projects/jaffle_shop/data/raw_payments.csv rename to dbt-postgres/tests/functional/projects/jaffle_shop/data/raw_payments.csv diff --git a/tests/functional/projects/jaffle_shop/docs/docs.md b/dbt-postgres/tests/functional/projects/jaffle_shop/docs/docs.md similarity index 100% rename from tests/functional/projects/jaffle_shop/docs/docs.md rename to dbt-postgres/tests/functional/projects/jaffle_shop/docs/docs.md diff --git a/tests/functional/projects/jaffle_shop/docs/overview.md b/dbt-postgres/tests/functional/projects/jaffle_shop/docs/overview.md similarity index 100% rename from tests/functional/projects/jaffle_shop/docs/overview.md rename to dbt-postgres/tests/functional/projects/jaffle_shop/docs/overview.md diff --git a/tests/functional/projects/jaffle_shop/models/customers.sql b/dbt-postgres/tests/functional/projects/jaffle_shop/models/customers.sql similarity index 100% rename from tests/functional/projects/jaffle_shop/models/customers.sql rename to dbt-postgres/tests/functional/projects/jaffle_shop/models/customers.sql diff --git a/tests/functional/projects/jaffle_shop/models/orders.sql b/dbt-postgres/tests/functional/projects/jaffle_shop/models/orders.sql similarity index 100% rename from tests/functional/projects/jaffle_shop/models/orders.sql rename to dbt-postgres/tests/functional/projects/jaffle_shop/models/orders.sql diff --git a/tests/functional/projects/jaffle_shop/schemas/jaffle_shop.yml b/dbt-postgres/tests/functional/projects/jaffle_shop/schemas/jaffle_shop.yml similarity index 100% rename from tests/functional/projects/jaffle_shop/schemas/jaffle_shop.yml rename to dbt-postgres/tests/functional/projects/jaffle_shop/schemas/jaffle_shop.yml diff --git a/tests/functional/projects/jaffle_shop/schemas/staging.yml b/dbt-postgres/tests/functional/projects/jaffle_shop/schemas/staging.yml similarity index 100% rename from tests/functional/projects/jaffle_shop/schemas/staging.yml rename to dbt-postgres/tests/functional/projects/jaffle_shop/schemas/staging.yml diff --git a/tests/functional/projects/jaffle_shop/staging/stg_customers.sql b/dbt-postgres/tests/functional/projects/jaffle_shop/staging/stg_customers.sql similarity index 100% rename from tests/functional/projects/jaffle_shop/staging/stg_customers.sql rename to dbt-postgres/tests/functional/projects/jaffle_shop/staging/stg_customers.sql diff --git a/tests/functional/projects/jaffle_shop/staging/stg_orders.sql b/dbt-postgres/tests/functional/projects/jaffle_shop/staging/stg_orders.sql similarity index 100% rename from tests/functional/projects/jaffle_shop/staging/stg_orders.sql rename to dbt-postgres/tests/functional/projects/jaffle_shop/staging/stg_orders.sql diff --git a/tests/functional/projects/jaffle_shop/staging/stg_payments.sql b/dbt-postgres/tests/functional/projects/jaffle_shop/staging/stg_payments.sql similarity index 100% rename from tests/functional/projects/jaffle_shop/staging/stg_payments.sql rename to dbt-postgres/tests/functional/projects/jaffle_shop/staging/stg_payments.sql diff --git a/tests/functional/projects/utils.py b/dbt-postgres/tests/functional/projects/utils.py similarity index 100% rename from tests/functional/projects/utils.py rename to dbt-postgres/tests/functional/projects/utils.py diff --git a/tests/functional/retry/fixtures.py b/dbt-postgres/tests/functional/retry/fixtures.py similarity index 100% rename from tests/functional/retry/fixtures.py rename to dbt-postgres/tests/functional/retry/fixtures.py diff --git a/tests/functional/retry/test_retry.py b/dbt-postgres/tests/functional/retry/test_retry.py similarity index 100% rename from tests/functional/retry/test_retry.py rename to dbt-postgres/tests/functional/retry/test_retry.py diff --git a/tests/functional/run_operations/fixtures.py b/dbt-postgres/tests/functional/run_operations/fixtures.py similarity index 100% rename from tests/functional/run_operations/fixtures.py rename to dbt-postgres/tests/functional/run_operations/fixtures.py diff --git a/tests/functional/run_operations/test_run_operations.py b/dbt-postgres/tests/functional/run_operations/test_run_operations.py similarity index 100% rename from tests/functional/run_operations/test_run_operations.py rename to dbt-postgres/tests/functional/run_operations/test_run_operations.py diff --git a/tests/functional/schema/fixtures/macros.py b/dbt-postgres/tests/functional/schema/fixtures/macros.py similarity index 100% rename from tests/functional/schema/fixtures/macros.py rename to dbt-postgres/tests/functional/schema/fixtures/macros.py diff --git a/tests/functional/schema/fixtures/sql.py b/dbt-postgres/tests/functional/schema/fixtures/sql.py similarity index 100% rename from tests/functional/schema/fixtures/sql.py rename to dbt-postgres/tests/functional/schema/fixtures/sql.py diff --git a/tests/functional/schema/test_custom_schema.py b/dbt-postgres/tests/functional/schema/test_custom_schema.py similarity index 100% rename from tests/functional/schema/test_custom_schema.py rename to dbt-postgres/tests/functional/schema/test_custom_schema.py diff --git a/tests/functional/selected_resources/fixtures.py b/dbt-postgres/tests/functional/selected_resources/fixtures.py similarity index 100% rename from tests/functional/selected_resources/fixtures.py rename to dbt-postgres/tests/functional/selected_resources/fixtures.py diff --git a/tests/functional/selected_resources/test_selected_resources.py b/dbt-postgres/tests/functional/selected_resources/test_selected_resources.py similarity index 100% rename from tests/functional/selected_resources/test_selected_resources.py rename to dbt-postgres/tests/functional/selected_resources/test_selected_resources.py diff --git a/tests/functional/semantic_models/fixtures.py b/dbt-postgres/tests/functional/semantic_models/fixtures.py similarity index 100% rename from tests/functional/semantic_models/fixtures.py rename to dbt-postgres/tests/functional/semantic_models/fixtures.py diff --git a/tests/functional/semantic_models/test_semantic_model_configs.py b/dbt-postgres/tests/functional/semantic_models/test_semantic_model_configs.py similarity index 100% rename from tests/functional/semantic_models/test_semantic_model_configs.py rename to dbt-postgres/tests/functional/semantic_models/test_semantic_model_configs.py diff --git a/tests/functional/semantic_models/test_semantic_model_parsing.py b/dbt-postgres/tests/functional/semantic_models/test_semantic_model_parsing.py similarity index 100% rename from tests/functional/semantic_models/test_semantic_model_parsing.py rename to dbt-postgres/tests/functional/semantic_models/test_semantic_model_parsing.py diff --git a/tests/functional/semantic_models/test_semantic_models.py b/dbt-postgres/tests/functional/semantic_models/test_semantic_models.py similarity index 100% rename from tests/functional/semantic_models/test_semantic_models.py rename to dbt-postgres/tests/functional/semantic_models/test_semantic_models.py diff --git a/tests/functional/show/fixtures.py b/dbt-postgres/tests/functional/show/fixtures.py similarity index 100% rename from tests/functional/show/fixtures.py rename to dbt-postgres/tests/functional/show/fixtures.py diff --git a/tests/functional/show/test_show.py b/dbt-postgres/tests/functional/show/test_show.py similarity index 100% rename from tests/functional/show/test_show.py rename to dbt-postgres/tests/functional/show/test_show.py diff --git a/tests/functional/sources/common_source_setup.py b/dbt-postgres/tests/functional/sources/common_source_setup.py similarity index 100% rename from tests/functional/sources/common_source_setup.py rename to dbt-postgres/tests/functional/sources/common_source_setup.py diff --git a/tests/functional/sources/data/seed.sql b/dbt-postgres/tests/functional/sources/data/seed.sql similarity index 100% rename from tests/functional/sources/data/seed.sql rename to dbt-postgres/tests/functional/sources/data/seed.sql diff --git a/tests/functional/sources/fixtures.py b/dbt-postgres/tests/functional/sources/fixtures.py similarity index 100% rename from tests/functional/sources/fixtures.py rename to dbt-postgres/tests/functional/sources/fixtures.py diff --git a/tests/functional/sources/test_simple_source.py b/dbt-postgres/tests/functional/sources/test_simple_source.py similarity index 100% rename from tests/functional/sources/test_simple_source.py rename to dbt-postgres/tests/functional/sources/test_simple_source.py diff --git a/tests/functional/sources/test_source_configs.py b/dbt-postgres/tests/functional/sources/test_source_configs.py similarity index 100% rename from tests/functional/sources/test_source_configs.py rename to dbt-postgres/tests/functional/sources/test_source_configs.py diff --git a/tests/functional/sources/test_source_fresher_state.py b/dbt-postgres/tests/functional/sources/test_source_fresher_state.py similarity index 100% rename from tests/functional/sources/test_source_fresher_state.py rename to dbt-postgres/tests/functional/sources/test_source_fresher_state.py diff --git a/tests/functional/sources/test_source_freshness.py b/dbt-postgres/tests/functional/sources/test_source_freshness.py similarity index 100% rename from tests/functional/sources/test_source_freshness.py rename to dbt-postgres/tests/functional/sources/test_source_freshness.py diff --git a/tests/functional/statements/fixtures.py b/dbt-postgres/tests/functional/statements/fixtures.py similarity index 100% rename from tests/functional/statements/fixtures.py rename to dbt-postgres/tests/functional/statements/fixtures.py diff --git a/tests/functional/statements/test_statements.py b/dbt-postgres/tests/functional/statements/test_statements.py similarity index 100% rename from tests/functional/statements/test_statements.py rename to dbt-postgres/tests/functional/statements/test_statements.py diff --git a/tests/functional/test_access.py b/dbt-postgres/tests/functional/test_access.py similarity index 100% rename from tests/functional/test_access.py rename to dbt-postgres/tests/functional/test_access.py diff --git a/tests/functional/test_analyses.py b/dbt-postgres/tests/functional/test_analyses.py similarity index 100% rename from tests/functional/test_analyses.py rename to dbt-postgres/tests/functional/test_analyses.py diff --git a/tests/functional/test_catalog.py b/dbt-postgres/tests/functional/test_catalog.py similarity index 100% rename from tests/functional/test_catalog.py rename to dbt-postgres/tests/functional/test_catalog.py diff --git a/tests/functional/test_clean.py b/dbt-postgres/tests/functional/test_clean.py similarity index 100% rename from tests/functional/test_clean.py rename to dbt-postgres/tests/functional/test_clean.py diff --git a/tests/functional/test_colors.py b/dbt-postgres/tests/functional/test_colors.py similarity index 100% rename from tests/functional/test_colors.py rename to dbt-postgres/tests/functional/test_colors.py diff --git a/tests/functional/test_column_quotes.py b/dbt-postgres/tests/functional/test_column_quotes.py similarity index 100% rename from tests/functional/test_column_quotes.py rename to dbt-postgres/tests/functional/test_column_quotes.py diff --git a/tests/functional/test_config.py b/dbt-postgres/tests/functional/test_config.py similarity index 100% rename from tests/functional/test_config.py rename to dbt-postgres/tests/functional/test_config.py diff --git a/tests/functional/test_connection_manager.py b/dbt-postgres/tests/functional/test_connection_manager.py similarity index 100% rename from tests/functional/test_connection_manager.py rename to dbt-postgres/tests/functional/test_connection_manager.py diff --git a/tests/functional/test_custom_target_path.py b/dbt-postgres/tests/functional/test_custom_target_path.py similarity index 100% rename from tests/functional/test_custom_target_path.py rename to dbt-postgres/tests/functional/test_custom_target_path.py diff --git a/tests/functional/test_cycles.py b/dbt-postgres/tests/functional/test_cycles.py similarity index 100% rename from tests/functional/test_cycles.py rename to dbt-postgres/tests/functional/test_cycles.py diff --git a/tests/functional/test_default_selectors.py b/dbt-postgres/tests/functional/test_default_selectors.py similarity index 100% rename from tests/functional/test_default_selectors.py rename to dbt-postgres/tests/functional/test_default_selectors.py diff --git a/tests/functional/test_events.py b/dbt-postgres/tests/functional/test_events.py similarity index 100% rename from tests/functional/test_events.py rename to dbt-postgres/tests/functional/test_events.py diff --git a/tests/functional/test_external_reference.py b/dbt-postgres/tests/functional/test_external_reference.py similarity index 100% rename from tests/functional/test_external_reference.py rename to dbt-postgres/tests/functional/test_external_reference.py diff --git a/tests/functional/test_fail_fast.py b/dbt-postgres/tests/functional/test_fail_fast.py similarity index 100% rename from tests/functional/test_fail_fast.py rename to dbt-postgres/tests/functional/test_fail_fast.py diff --git a/tests/functional/test_multiple_indexes.py b/dbt-postgres/tests/functional/test_multiple_indexes.py similarity index 100% rename from tests/functional/test_multiple_indexes.py rename to dbt-postgres/tests/functional/test_multiple_indexes.py diff --git a/tests/functional/test_ref_override.py b/dbt-postgres/tests/functional/test_ref_override.py similarity index 100% rename from tests/functional/test_ref_override.py rename to dbt-postgres/tests/functional/test_ref_override.py diff --git a/tests/functional/test_relation_name.py b/dbt-postgres/tests/functional/test_relation_name.py similarity index 100% rename from tests/functional/test_relation_name.py rename to dbt-postgres/tests/functional/test_relation_name.py diff --git a/tests/functional/test_severity.py b/dbt-postgres/tests/functional/test_severity.py similarity index 100% rename from tests/functional/test_severity.py rename to dbt-postgres/tests/functional/test_severity.py diff --git a/tests/functional/test_store_test_failures.py b/dbt-postgres/tests/functional/test_store_test_failures.py similarity index 100% rename from tests/functional/test_store_test_failures.py rename to dbt-postgres/tests/functional/test_store_test_failures.py diff --git a/tests/functional/test_thread_count.py b/dbt-postgres/tests/functional/test_thread_count.py similarity index 100% rename from tests/functional/test_thread_count.py rename to dbt-postgres/tests/functional/test_thread_count.py diff --git a/tests/functional/test_timezones.py b/dbt-postgres/tests/functional/test_timezones.py similarity index 100% rename from tests/functional/test_timezones.py rename to dbt-postgres/tests/functional/test_timezones.py diff --git a/tests/functional/test_types.py b/dbt-postgres/tests/functional/test_types.py similarity index 100% rename from tests/functional/test_types.py rename to dbt-postgres/tests/functional/test_types.py diff --git a/tests/functional/test_unlogged_table.py b/dbt-postgres/tests/functional/test_unlogged_table.py similarity index 100% rename from tests/functional/test_unlogged_table.py rename to dbt-postgres/tests/functional/test_unlogged_table.py diff --git a/tests/functional/unit_testing/fixtures.py b/dbt-postgres/tests/functional/unit_testing/fixtures.py similarity index 100% rename from tests/functional/unit_testing/fixtures.py rename to dbt-postgres/tests/functional/unit_testing/fixtures.py diff --git a/tests/functional/unit_testing/test_csv_fixtures.py b/dbt-postgres/tests/functional/unit_testing/test_csv_fixtures.py similarity index 100% rename from tests/functional/unit_testing/test_csv_fixtures.py rename to dbt-postgres/tests/functional/unit_testing/test_csv_fixtures.py diff --git a/tests/functional/unit_testing/test_state.py b/dbt-postgres/tests/functional/unit_testing/test_state.py similarity index 100% rename from tests/functional/unit_testing/test_state.py rename to dbt-postgres/tests/functional/unit_testing/test_state.py diff --git a/tests/functional/unit_testing/test_unit_testing.py b/dbt-postgres/tests/functional/unit_testing/test_unit_testing.py similarity index 100% rename from tests/functional/unit_testing/test_unit_testing.py rename to dbt-postgres/tests/functional/unit_testing/test_unit_testing.py diff --git a/tests/functional/unit_testing/test_ut_dependency.py b/dbt-postgres/tests/functional/unit_testing/test_ut_dependency.py similarity index 100% rename from tests/functional/unit_testing/test_ut_dependency.py rename to dbt-postgres/tests/functional/unit_testing/test_ut_dependency.py diff --git a/tests/functional/unit_testing/test_ut_sources.py b/dbt-postgres/tests/functional/unit_testing/test_ut_sources.py similarity index 100% rename from tests/functional/unit_testing/test_ut_sources.py rename to dbt-postgres/tests/functional/unit_testing/test_ut_sources.py diff --git a/tests/functional/utils.py b/dbt-postgres/tests/functional/utils.py similarity index 100% rename from tests/functional/utils.py rename to dbt-postgres/tests/functional/utils.py diff --git a/tests/unit/test_adapter.py b/dbt-postgres/tests/unit/test_adapter.py similarity index 100% rename from tests/unit/test_adapter.py rename to dbt-postgres/tests/unit/test_adapter.py diff --git a/tests/unit/test_adapter_conversions.py b/dbt-postgres/tests/unit/test_adapter_conversions.py similarity index 100% rename from tests/unit/test_adapter_conversions.py rename to dbt-postgres/tests/unit/test_adapter_conversions.py diff --git a/tests/unit/test_connection.py b/dbt-postgres/tests/unit/test_connection.py similarity index 100% rename from tests/unit/test_connection.py rename to dbt-postgres/tests/unit/test_connection.py diff --git a/tests/unit/test_filter_catalog.py b/dbt-postgres/tests/unit/test_filter_catalog.py similarity index 100% rename from tests/unit/test_filter_catalog.py rename to dbt-postgres/tests/unit/test_filter_catalog.py diff --git a/tests/unit/test_materialized_view.py b/dbt-postgres/tests/unit/test_materialized_view.py similarity index 100% rename from tests/unit/test_materialized_view.py rename to dbt-postgres/tests/unit/test_materialized_view.py diff --git a/tests/unit/test_renamed_relations.py b/dbt-postgres/tests/unit/test_renamed_relations.py similarity index 100% rename from tests/unit/test_renamed_relations.py rename to dbt-postgres/tests/unit/test_renamed_relations.py diff --git a/tests/unit/utils.py b/dbt-postgres/tests/unit/utils.py similarity index 100% rename from tests/unit/utils.py rename to dbt-postgres/tests/unit/utils.py diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index f3aa52c1..00000000 --- a/pyproject.toml +++ /dev/null @@ -1,111 +0,0 @@ -[project] -dynamic = ["version"] -name = "dbt-postgres" -description = "The set of adapter protocols and base functionality that supports integration with dbt-core" -readme = "README.md" -keywords = ["dbt", "adapter", "adapters", "database", "elt", "dbt-core", "dbt Core", "dbt Cloud", "dbt Labs", "postgres"] -requires-python = ">=3.9.0" -authors = [ - { name = "dbt Labs", email = "info@dbtlabs.com" }, -] -maintainers = [ - { name = "dbt Labs", email = "info@dbtlabs.com" }, -] -classifiers = [ - "Development Status :: 5 - Production/Stable", - "License :: OSI Approved :: Apache Software License", - "Operating System :: MacOS :: MacOS X", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX :: Linux", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", -] -dependencies = [ - "psycopg2-binary>=2.9,<3.0", - "dbt-adapters>=1.7.0,<2.0", - # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency - "dbt-core>=1.8.0", - # installed via dbt-adapters but used directly - "dbt-common>=1.0.4,<2.0", - "agate>=1.0,<2.0", -] -[project.urls] -Homepage = "https://github.com/dbt-labs/dbt-postgres" -Documentation = "https://docs.getdbt.com" -Repository = "https://github.com/dbt-labs/dbt-postgres.git" -Issues = "https://github.com/dbt-labs/dbt-postgres/issues" -Changelog = "https://github.com/dbt-labs/dbt-postgres/blob/main/CHANGELOG.md" - -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.build.targets.sdist] -include = ["dbt"] - -[tool.hatch.build.targets.wheel] -packages = ["dbt"] - -[tool.hatch.version] -path = "dbt/adapters/postgres/__version__.py" - -[tool.hatch.envs.default] -dependencies = [ - "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", - "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", - "dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter", - "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", - "pre-commit==3.7.0", - "freezegun", - "pytest", - "pytest-dotenv", - "pytest-mock", - "pytest-xdist", -] -[tool.hatch.envs.default.env-vars] -DBT_TEST_USER_1 = "dbt_test_user_1" -DBT_TEST_USER_2 = "dbt_test_user_2" -DBT_TEST_USER_3 = "dbt_test_user_3" -[tool.hatch.envs.default.scripts] -setup = "pre-commit install" -code-quality = "pre-commit run --all-files" -unit-tests = "python -m pytest {args:tests/unit}" -integration-tests = "python -m pytest {args:tests/functional}" -docker-dev = [ - "echo Does not support integration testing, only development and unit testing. See issue https://github.com/dbt-labs/dbt-postgres/issues/99", - "docker build -f docker/dev.Dockerfile -t dbt-postgres-dev .", - "docker run --rm -it --name dbt-postgres-dev -v $(pwd):/opt/code dbt-postgres-dev", -] -docker-prod = "docker build -f docker/Dockerfile -t dbt-postgres ." - -[tool.hatch.envs.build] -detached = true -dependencies = [ - "wheel", - "twine", - "check-wheel-contents", -] -[tool.hatch.envs.build.scripts] -check-all = [ - "- check-wheel", - "- check-sdist", -] -check-wheel = [ - "twine check dist/*", - "find ./dist/dbt_postgres-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/", - "pip freeze | grep dbt-postgres", -] -check-sdist = [ - "check-wheel-contents dist/*.whl --ignore W007,W008", - "find ./dist/dbt_postgres-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/", - "pip freeze | grep dbt-postgres", -] - -[tool.pytest] -env_files = ["test.env"] -testpaths = [ - "tests/functional", - "tests/unit", -]