From 1659664f5420c8ef4d2d7d6c7950c53606eb7d0d Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 30 Nov 2024 15:11:59 -0500 Subject: [PATCH 01/22] create subpackage script --- _monorepo-scripts/make-subpackage.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 _monorepo-scripts/make-subpackage.sh diff --git a/_monorepo-scripts/make-subpackage.sh b/_monorepo-scripts/make-subpackage.sh new file mode 100644 index 00000000..d0e65aac --- /dev/null +++ b/_monorepo-scripts/make-subpackage.sh @@ -0,0 +1,28 @@ +opts=( -f -k -v ) + +while true; do + case "$1" in + --dry-run ) + opts+=( -n ) + shift 1 + ;; + * ) + break + ;; + esac +done + +rm -r dbt-postgres +mkdir dbt-postgres + +declare -a sources=(".changes" "docker" "scripts" "tests" ".changie.yaml" "CHANGELOG.md" "CONTRIBUTING.md" "pyproject.toml" "README.md" "test.env" "test.env.example") +for source in "${sources[@]}" +do + git mv "${opts[@]}" $source dbt-postgres +done + +mkdir dbt-postgres/src +git mv "${opts[@]}" dbt dbt-postgres/src + +git mv "${opts[@]}" dbt-postgres/test.env dbt-postgres/.env +git mv "${opts[@]}" dbt-postgres/test.env.example dbt-postgres/.env.example From 1861a03ce6cf18f3903875dc5b6eb44ed1e4b51e Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 30 Nov 2024 15:35:38 -0500 Subject: [PATCH 02/22] remove local files from script; add psycopg2 check script --- _monorepo-scripts/make-subpackage.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_monorepo-scripts/make-subpackage.sh b/_monorepo-scripts/make-subpackage.sh index d0e65aac..0fbca536 100644 --- a/_monorepo-scripts/make-subpackage.sh +++ b/_monorepo-scripts/make-subpackage.sh @@ -15,7 +15,7 @@ done rm -r dbt-postgres mkdir dbt-postgres -declare -a sources=(".changes" "docker" "scripts" "tests" ".changie.yaml" "CHANGELOG.md" "CONTRIBUTING.md" "pyproject.toml" "README.md" "test.env" "test.env.example") +declare -a sources=(".changes" "docker" "scripts" "tests" ".changie.yaml" "CHANGELOG.md" "CONTRIBUTING.md" "pyproject.toml" "README.md" "test.env.example") for source in "${sources[@]}" do git mv "${opts[@]}" $source dbt-postgres @@ -23,6 +23,5 @@ done mkdir dbt-postgres/src git mv "${opts[@]}" dbt dbt-postgres/src - -git mv "${opts[@]}" dbt-postgres/test.env dbt-postgres/.env git mv "${opts[@]}" dbt-postgres/test.env.example dbt-postgres/.env.example +git mv "${opts[@]}" .github/scripts/psycopg2-check.sh dbt-postgres/scripts/psycopg2-check.sh From 621f754b0e2cf43d741b661cd076b9244052e435 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sun, 1 Dec 2024 09:57:01 -0500 Subject: [PATCH 03/22] execute migration script --- {.changes => dbt-postgres/.changes}/0.0.0.md | 0 {.changes => dbt-postgres/.changes}/1.9.0-b1.md | 0 .../.changes}/1.9.0/Features-20240430-185700.yaml | 0 .../.changes}/1.9.0/Features-20240501-151856.yaml | 0 .../.changes}/1.9.0/Features-20240731-210800.yaml | 0 .../.changes}/1.9.0/Features-20240903-160221.yaml | 0 .../.changes}/1.9.0/Features-20240911-141416.yaml | 0 .../.changes}/1.9.0/Fixes-20240514-193201.yaml | 0 .../.changes}/1.9.0/Fixes-20240605-202614.yaml | 0 .../.changes}/1.9.0/Fixes-20240626-163930.yaml | 0 .../.changes}/1.9.0/Under the Hood-20240716-172442.yaml | 0 .../.changes}/1.9.0/Under the Hood-20240731-075011.yaml | 0 {.changes => dbt-postgres/.changes}/header.tpl.md | 0 {.changes => dbt-postgres/.changes}/unreleased/.gitkeep | 0 .../.changes}/unreleased/Breaking Changes-20241016-175527.yaml | 0 .../.changes}/unreleased/Features-20240927-133708.yaml | 0 .changie.yaml => dbt-postgres/.changie.yaml | 0 test.env.example => dbt-postgres/.env.example | 0 CHANGELOG.md => dbt-postgres/CHANGELOG.md | 0 CONTRIBUTING.md => dbt-postgres/CONTRIBUTING.md | 0 README.md => dbt-postgres/README.md | 0 {docker => dbt-postgres/docker}/Dockerfile | 0 {docker => dbt-postgres/docker}/README.md | 0 {docker => dbt-postgres/docker}/dev.Dockerfile | 0 pyproject.toml => dbt-postgres/pyproject.toml | 0 {.github => dbt-postgres}/scripts/psycopg2-check.sh | 0 {scripts => dbt-postgres/scripts}/setup_test_database.sql | 0 {dbt => dbt-postgres/src/dbt}/__init__.py | 0 {dbt => dbt-postgres/src/dbt}/adapters/postgres/__init__.py | 0 {dbt => dbt-postgres/src/dbt}/adapters/postgres/__version__.py | 0 {dbt => dbt-postgres/src/dbt}/adapters/postgres/column.py | 0 {dbt => dbt-postgres/src/dbt}/adapters/postgres/connections.py | 0 {dbt => dbt-postgres/src/dbt}/adapters/postgres/impl.py | 0 .../src/dbt}/adapters/postgres/record/__init__.py | 0 .../src/dbt}/adapters/postgres/record/cursor/cursor.py | 0 .../src/dbt}/adapters/postgres/record/cursor/status.py | 0 {dbt => dbt-postgres/src/dbt}/adapters/postgres/record/handle.py | 0 {dbt => dbt-postgres/src/dbt}/adapters/postgres/relation.py | 0 .../src/dbt}/adapters/postgres/relation_configs/__init__.py | 0 .../src/dbt}/adapters/postgres/relation_configs/constants.py | 0 .../src/dbt}/adapters/postgres/relation_configs/index.py | 0 .../dbt}/adapters/postgres/relation_configs/materialized_view.py | 0 {dbt => dbt-postgres/src/dbt}/include/postgres/__init__.py | 0 {dbt => dbt-postgres/src/dbt}/include/postgres/dbt_project.yml | 0 .../src/dbt}/include/postgres/macros/adapters.sql | 0 {dbt => dbt-postgres/src/dbt}/include/postgres/macros/catalog.sql | 0 .../postgres/macros/materializations/incremental_strategies.sql | 0 .../include/postgres/macros/materializations/snapshot_merge.sql | 0 .../src/dbt}/include/postgres/macros/relations.sql | 0 .../include/postgres/macros/relations/materialized_view/alter.sql | 0 .../postgres/macros/relations/materialized_view/create.sql | 0 .../postgres/macros/relations/materialized_view/describe.sql | 0 .../include/postgres/macros/relations/materialized_view/drop.sql | 0 .../postgres/macros/relations/materialized_view/refresh.sql | 0 .../postgres/macros/relations/materialized_view/rename.sql | 0 .../src/dbt}/include/postgres/macros/relations/table/drop.sql | 0 .../src/dbt}/include/postgres/macros/relations/table/rename.sql | 0 .../src/dbt}/include/postgres/macros/relations/table/replace.sql | 0 .../src/dbt}/include/postgres/macros/relations/view/drop.sql | 0 .../src/dbt}/include/postgres/macros/relations/view/rename.sql | 0 .../src/dbt}/include/postgres/macros/relations/view/replace.sql | 0 .../src/dbt}/include/postgres/macros/timestamps.sql | 0 .../src/dbt}/include/postgres/macros/utils/any_value.sql | 0 .../src/dbt}/include/postgres/macros/utils/columns_spec_ddl.sql | 0 .../src/dbt}/include/postgres/macros/utils/dateadd.sql | 0 .../src/dbt}/include/postgres/macros/utils/datediff.sql | 0 .../src/dbt}/include/postgres/macros/utils/last_day.sql | 0 .../src/dbt}/include/postgres/macros/utils/listagg.sql | 0 .../src/dbt}/include/postgres/macros/utils/split_part.sql | 0 .../src/dbt}/include/postgres/profile_template.yml | 0 .../src/dbt}/include/postgres/sample_profiles.yml | 0 {tests => dbt-postgres/tests}/conftest.py | 0 {tests => dbt-postgres/tests}/functional/README.md | 0 {tests => dbt-postgres/tests}/functional/__init__.py | 0 {tests => dbt-postgres/tests}/functional/adapter/__init__.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_aliases.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_basic.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_caching.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_clone.py | 0 .../tests}/functional/adapter/test_column_types.py | 0 .../tests}/functional/adapter/test_concurrency.py | 0 .../tests}/functional/adapter/test_constraints.py | 0 .../tests}/functional/adapter/test_data_types.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_debug.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_empty.py | 0 .../tests}/functional/adapter/test_ephemeral.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_grants.py | 0 .../tests}/functional/adapter/test_hooks/data/seed_model.sql | 0 .../tests}/functional/adapter/test_hooks/data/seed_run.sql | 0 .../tests}/functional/adapter/test_hooks/test_hooks.py | 0 .../tests}/functional/adapter/test_incremental.py | 0 .../tests}/functional/adapter/test_incremental_microbatch.py | 0 .../tests}/functional/adapter/test_persist_docs.py | 0 .../tests}/functional/adapter/test_query_comment.py | 0 .../tests}/functional/adapter/test_relations.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_show.py | 0 .../tests}/functional/adapter/test_simple_copy.py | 0 .../tests}/functional/adapter/test_simple_seed/seed_bom.csv | 0 .../functional/adapter/test_simple_seed/test_simple_seed.py | 0 .../tests}/functional/adapter/test_simple_snapshot.py | 0 .../tests}/functional/adapter/test_store_test_failures.py | 0 .../tests}/functional/adapter/test_unit_testing.py | 0 {tests => dbt-postgres/tests}/functional/adapter/test_utils.py | 0 .../tests}/functional/basic/data/seed-initial.csv | 0 .../tests}/functional/basic/data/seed-update.csv | 0 .../tests}/functional/basic/data/summary_expected.csv | 0 .../tests}/functional/basic/data/summary_expected_update.csv | 0 .../tests}/functional/basic/data/varchar10_seed.sql | 0 .../tests}/functional/basic/data/varchar300_seed.sql | 0 {tests => dbt-postgres/tests}/functional/basic/test_basic.py | 0 .../tests}/functional/basic/test_invalid_reference.py | 0 .../tests}/functional/basic/test_jaffle_shop.py | 0 .../tests}/functional/basic/test_mixed_case_db.py | 0 {tests => dbt-postgres/tests}/functional/basic/test_project.py | 0 .../tests}/functional/basic/test_simple_reference.py | 0 .../tests}/functional/basic/test_varchar_widening.py | 0 {tests => dbt-postgres/tests}/functional/compile/fixtures.py | 0 {tests => dbt-postgres/tests}/functional/compile/test_compile.py | 0 {tests => dbt-postgres/tests}/functional/conftest.py | 0 .../tests}/functional/contracts/test_contract_enforcement.py | 0 .../tests}/functional/contracts/test_contract_precision.py | 0 .../tests}/functional/contracts/test_nonstandard_data_type.py | 0 .../tests}/functional/custom_aliases/fixtures.py | 0 .../tests}/functional/custom_aliases/test_custom_aliases.py | 0 .../functional/custom_singular_tests/data/seed_expected.sql | 0 .../custom_singular_tests/test_custom_singular_tests.py | 0 .../tests}/functional/dbt_debug/test_dbt_debug.py | 0 {tests => dbt-postgres/tests}/functional/dbt_runner.py | 0 {tests => dbt-postgres/tests}/functional/exit_codes/fixtures.py | 0 .../tests}/functional/exit_codes/test_exit_codes.py | 0 {tests => dbt-postgres/tests}/functional/exposures/fixtures.py | 0 .../tests}/functional/exposures/test_exposure_configs.py | 0 .../tests}/functional/exposures/test_exposures.py | 0 .../tests}/functional/graph_selection/test_graph_selection.py | 0 .../tests}/functional/graph_selection/test_group_selection.py | 0 .../tests}/functional/graph_selection/test_intersection_syntax.py | 0 .../graph_selection/test_schema_test_graph_selection.py | 0 .../tests}/functional/graph_selection/test_tag_selection.py | 0 .../tests}/functional/graph_selection/test_version_selection.py | 0 .../tests}/functional/incremental_schema_tests/fixtures.py | 0 .../incremental_schema_tests/test_incremental_schema.py | 0 .../tests}/functional/invalid_model_tests/test_invalid_models.py | 0 .../tests}/functional/invalid_model_tests/test_model_warning.py | 0 {tests => dbt-postgres/tests}/functional/macros/data/seed.sql | 0 {tests => dbt-postgres/tests}/functional/macros/fixtures.py | 0 .../functional/macros/package_macro_overrides/dbt_project.yml | 0 .../functional/macros/package_macro_overrides/macros/macros.sql | 0 {tests => dbt-postgres/tests}/functional/macros/test_macros.py | 0 .../tests}/functional/materializations/conftest.py | 0 .../tests}/functional/materializations/fixtures.py | 0 .../materialized_view_tests/test_materialized_view.py | 0 .../materialized_view_tests/test_postgres_materialized_view.py | 0 .../functional/materializations/materialized_view_tests/utils.py | 0 .../tests}/functional/materializations/test_incremental.py | 0 .../functional/materializations/test_runtime_materialization.py | 0 .../functional/materializations/test_supported_languages.py | 0 {tests => dbt-postgres/tests}/functional/postgres/fixtures.py | 0 {tests => dbt-postgres/tests}/functional/postgres/test_indexes.py | 0 {tests => dbt-postgres/tests}/functional/projects/__init__.py | 0 .../tests}/functional/projects/dbt_integration/__init__.py | 0 .../functional/projects/dbt_integration/macros/do_something.sql | 0 .../functional/projects/dbt_integration/models/incremental.sql | 0 .../tests}/functional/projects/dbt_integration/models/table.sql | 0 .../tests}/functional/projects/dbt_integration/models/view.sql | 0 .../functional/projects/dbt_integration/schemas/project.yml | 0 .../tests}/functional/projects/dbt_integration/schemas/schema.yml | 0 .../tests}/functional/projects/graph_selection/__init__.py | 0 .../tests}/functional/projects/graph_selection/data/seed.csv | 0 .../functional/projects/graph_selection/data/summary_expected.csv | 0 .../projects/graph_selection/models/alternative_users.sql | 0 .../functional/projects/graph_selection/models/base_users.sql | 0 .../tests}/functional/projects/graph_selection/models/emails.sql | 0 .../functional/projects/graph_selection/models/emails_alt.sql | 0 .../functional/projects/graph_selection/models/nested_users.sql | 0 .../functional/projects/graph_selection/models/never_selected.sql | 0 .../tests}/functional/projects/graph_selection/models/subdir.sql | 0 .../tests}/functional/projects/graph_selection/models/users.sql | 0 .../functional/projects/graph_selection/models/users_rollup.sql | 0 .../projects/graph_selection/models/users_rollup_dependency.sql | 0 .../projects/graph_selection/schemas/patch_path_selection.yml | 0 .../functional/projects/graph_selection/schemas/properties.yml | 0 .../tests}/functional/projects/graph_selection/schemas/schema.yml | 0 .../tests}/functional/projects/jaffle_shop/__init__.py | 0 .../tests}/functional/projects/jaffle_shop/data/raw_customers.csv | 0 .../tests}/functional/projects/jaffle_shop/data/raw_orders.csv | 0 .../tests}/functional/projects/jaffle_shop/data/raw_payments.csv | 0 .../tests}/functional/projects/jaffle_shop/docs/docs.md | 0 .../tests}/functional/projects/jaffle_shop/docs/overview.md | 0 .../tests}/functional/projects/jaffle_shop/models/customers.sql | 0 .../tests}/functional/projects/jaffle_shop/models/orders.sql | 0 .../functional/projects/jaffle_shop/schemas/jaffle_shop.yml | 0 .../tests}/functional/projects/jaffle_shop/schemas/staging.yml | 0 .../functional/projects/jaffle_shop/staging/stg_customers.sql | 0 .../tests}/functional/projects/jaffle_shop/staging/stg_orders.sql | 0 .../functional/projects/jaffle_shop/staging/stg_payments.sql | 0 {tests => dbt-postgres/tests}/functional/projects/utils.py | 0 {tests => dbt-postgres/tests}/functional/retry/fixtures.py | 0 {tests => dbt-postgres/tests}/functional/retry/test_retry.py | 0 .../tests}/functional/run_operations/fixtures.py | 0 .../tests}/functional/run_operations/test_run_operations.py | 0 .../tests}/functional/schema/fixtures/macros.py | 0 {tests => dbt-postgres/tests}/functional/schema/fixtures/sql.py | 0 .../tests}/functional/schema/test_custom_schema.py | 0 .../tests}/functional/selected_resources/fixtures.py | 0 .../functional/selected_resources/test_selected_resources.py | 0 .../tests}/functional/semantic_models/fixtures.py | 0 .../functional/semantic_models/test_semantic_model_configs.py | 0 .../functional/semantic_models/test_semantic_model_parsing.py | 0 .../tests}/functional/semantic_models/test_semantic_models.py | 0 {tests => dbt-postgres/tests}/functional/show/fixtures.py | 0 {tests => dbt-postgres/tests}/functional/show/test_show.py | 0 .../tests}/functional/sources/common_source_setup.py | 0 {tests => dbt-postgres/tests}/functional/sources/data/seed.sql | 0 {tests => dbt-postgres/tests}/functional/sources/fixtures.py | 0 .../tests}/functional/sources/test_simple_source.py | 0 .../tests}/functional/sources/test_source_configs.py | 0 .../tests}/functional/sources/test_source_fresher_state.py | 0 .../tests}/functional/sources/test_source_freshness.py | 0 {tests => dbt-postgres/tests}/functional/statements/fixtures.py | 0 .../tests}/functional/statements/test_statements.py | 0 {tests => dbt-postgres/tests}/functional/test_access.py | 0 {tests => dbt-postgres/tests}/functional/test_analyses.py | 0 {tests => dbt-postgres/tests}/functional/test_catalog.py | 0 {tests => dbt-postgres/tests}/functional/test_clean.py | 0 {tests => dbt-postgres/tests}/functional/test_colors.py | 0 {tests => dbt-postgres/tests}/functional/test_column_quotes.py | 0 {tests => dbt-postgres/tests}/functional/test_config.py | 0 .../tests}/functional/test_connection_manager.py | 0 .../tests}/functional/test_custom_target_path.py | 0 {tests => dbt-postgres/tests}/functional/test_cycles.py | 0 .../tests}/functional/test_default_selectors.py | 0 {tests => dbt-postgres/tests}/functional/test_events.py | 0 .../tests}/functional/test_external_reference.py | 0 {tests => dbt-postgres/tests}/functional/test_fail_fast.py | 0 {tests => dbt-postgres/tests}/functional/test_multiple_indexes.py | 0 {tests => dbt-postgres/tests}/functional/test_ref_override.py | 0 {tests => dbt-postgres/tests}/functional/test_relation_name.py | 0 {tests => dbt-postgres/tests}/functional/test_severity.py | 0 .../tests}/functional/test_store_test_failures.py | 0 {tests => dbt-postgres/tests}/functional/test_thread_count.py | 0 {tests => dbt-postgres/tests}/functional/test_timezones.py | 0 {tests => dbt-postgres/tests}/functional/test_types.py | 0 {tests => dbt-postgres/tests}/functional/test_unlogged_table.py | 0 {tests => dbt-postgres/tests}/functional/unit_testing/fixtures.py | 0 .../tests}/functional/unit_testing/test_csv_fixtures.py | 0 .../tests}/functional/unit_testing/test_state.py | 0 .../tests}/functional/unit_testing/test_unit_testing.py | 0 .../tests}/functional/unit_testing/test_ut_dependency.py | 0 .../tests}/functional/unit_testing/test_ut_sources.py | 0 {tests => dbt-postgres/tests}/functional/utils.py | 0 {tests => dbt-postgres/tests}/unit/test_adapter.py | 0 {tests => dbt-postgres/tests}/unit/test_adapter_conversions.py | 0 {tests => dbt-postgres/tests}/unit/test_connection.py | 0 {tests => dbt-postgres/tests}/unit/test_filter_catalog.py | 0 {tests => dbt-postgres/tests}/unit/test_materialized_view.py | 0 {tests => dbt-postgres/tests}/unit/test_renamed_relations.py | 0 {tests => dbt-postgres/tests}/unit/utils.py | 0 257 files changed, 0 insertions(+), 0 deletions(-) rename {.changes => dbt-postgres/.changes}/0.0.0.md (100%) rename {.changes => dbt-postgres/.changes}/1.9.0-b1.md (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Features-20240430-185700.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Features-20240501-151856.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Features-20240731-210800.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Features-20240903-160221.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Features-20240911-141416.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Fixes-20240514-193201.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Fixes-20240605-202614.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Fixes-20240626-163930.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Under the Hood-20240716-172442.yaml (100%) rename {.changes => dbt-postgres/.changes}/1.9.0/Under the Hood-20240731-075011.yaml (100%) rename {.changes => dbt-postgres/.changes}/header.tpl.md (100%) rename {.changes => dbt-postgres/.changes}/unreleased/.gitkeep (100%) rename {.changes => dbt-postgres/.changes}/unreleased/Breaking Changes-20241016-175527.yaml (100%) rename {.changes => dbt-postgres/.changes}/unreleased/Features-20240927-133708.yaml (100%) rename .changie.yaml => dbt-postgres/.changie.yaml (100%) rename test.env.example => dbt-postgres/.env.example (100%) rename CHANGELOG.md => dbt-postgres/CHANGELOG.md (100%) rename CONTRIBUTING.md => dbt-postgres/CONTRIBUTING.md (100%) rename README.md => dbt-postgres/README.md (100%) rename {docker => dbt-postgres/docker}/Dockerfile (100%) rename {docker => dbt-postgres/docker}/README.md (100%) rename {docker => dbt-postgres/docker}/dev.Dockerfile (100%) rename pyproject.toml => dbt-postgres/pyproject.toml (100%) rename {.github => dbt-postgres}/scripts/psycopg2-check.sh (100%) rename {scripts => dbt-postgres/scripts}/setup_test_database.sql (100%) rename {dbt => dbt-postgres/src/dbt}/__init__.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/__init__.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/__version__.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/column.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/connections.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/impl.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/record/__init__.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/record/cursor/cursor.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/record/cursor/status.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/record/handle.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/relation.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/relation_configs/__init__.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/relation_configs/constants.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/relation_configs/index.py (100%) rename {dbt => dbt-postgres/src/dbt}/adapters/postgres/relation_configs/materialized_view.py (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/__init__.py (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/dbt_project.yml (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/adapters.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/catalog.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/materializations/incremental_strategies.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/materializations/snapshot_merge.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/materialized_view/alter.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/materialized_view/create.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/materialized_view/describe.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/materialized_view/drop.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/materialized_view/refresh.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/materialized_view/rename.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/table/drop.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/table/rename.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/table/replace.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/view/drop.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/view/rename.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/relations/view/replace.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/timestamps.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/utils/any_value.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/utils/columns_spec_ddl.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/utils/dateadd.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/utils/datediff.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/utils/last_day.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/utils/listagg.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/macros/utils/split_part.sql (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/profile_template.yml (100%) rename {dbt => dbt-postgres/src/dbt}/include/postgres/sample_profiles.yml (100%) rename {tests => dbt-postgres/tests}/conftest.py (100%) rename {tests => dbt-postgres/tests}/functional/README.md (100%) rename {tests => dbt-postgres/tests}/functional/__init__.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/__init__.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_aliases.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_basic.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_caching.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_clone.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_column_types.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_concurrency.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_constraints.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_data_types.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_debug.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_empty.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_ephemeral.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_grants.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_hooks/data/seed_model.sql (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_hooks/data/seed_run.sql (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_hooks/test_hooks.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_incremental.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_incremental_microbatch.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_persist_docs.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_query_comment.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_relations.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_show.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_simple_copy.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_simple_seed/seed_bom.csv (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_simple_seed/test_simple_seed.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_simple_snapshot.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_store_test_failures.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_unit_testing.py (100%) rename {tests => dbt-postgres/tests}/functional/adapter/test_utils.py (100%) rename {tests => dbt-postgres/tests}/functional/basic/data/seed-initial.csv (100%) rename {tests => dbt-postgres/tests}/functional/basic/data/seed-update.csv (100%) rename {tests => dbt-postgres/tests}/functional/basic/data/summary_expected.csv (100%) rename {tests => dbt-postgres/tests}/functional/basic/data/summary_expected_update.csv (100%) rename {tests => dbt-postgres/tests}/functional/basic/data/varchar10_seed.sql (100%) rename {tests => dbt-postgres/tests}/functional/basic/data/varchar300_seed.sql (100%) rename {tests => dbt-postgres/tests}/functional/basic/test_basic.py (100%) rename {tests => dbt-postgres/tests}/functional/basic/test_invalid_reference.py (100%) rename {tests => dbt-postgres/tests}/functional/basic/test_jaffle_shop.py (100%) rename {tests => dbt-postgres/tests}/functional/basic/test_mixed_case_db.py (100%) rename {tests => dbt-postgres/tests}/functional/basic/test_project.py (100%) rename {tests => dbt-postgres/tests}/functional/basic/test_simple_reference.py (100%) rename {tests => dbt-postgres/tests}/functional/basic/test_varchar_widening.py (100%) rename {tests => dbt-postgres/tests}/functional/compile/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/compile/test_compile.py (100%) rename {tests => dbt-postgres/tests}/functional/conftest.py (100%) rename {tests => dbt-postgres/tests}/functional/contracts/test_contract_enforcement.py (100%) rename {tests => dbt-postgres/tests}/functional/contracts/test_contract_precision.py (100%) rename {tests => dbt-postgres/tests}/functional/contracts/test_nonstandard_data_type.py (100%) rename {tests => dbt-postgres/tests}/functional/custom_aliases/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/custom_aliases/test_custom_aliases.py (100%) rename {tests => dbt-postgres/tests}/functional/custom_singular_tests/data/seed_expected.sql (100%) rename {tests => dbt-postgres/tests}/functional/custom_singular_tests/test_custom_singular_tests.py (100%) rename {tests => dbt-postgres/tests}/functional/dbt_debug/test_dbt_debug.py (100%) rename {tests => dbt-postgres/tests}/functional/dbt_runner.py (100%) rename {tests => dbt-postgres/tests}/functional/exit_codes/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/exit_codes/test_exit_codes.py (100%) rename {tests => dbt-postgres/tests}/functional/exposures/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/exposures/test_exposure_configs.py (100%) rename {tests => dbt-postgres/tests}/functional/exposures/test_exposures.py (100%) rename {tests => dbt-postgres/tests}/functional/graph_selection/test_graph_selection.py (100%) rename {tests => dbt-postgres/tests}/functional/graph_selection/test_group_selection.py (100%) rename {tests => dbt-postgres/tests}/functional/graph_selection/test_intersection_syntax.py (100%) rename {tests => dbt-postgres/tests}/functional/graph_selection/test_schema_test_graph_selection.py (100%) rename {tests => dbt-postgres/tests}/functional/graph_selection/test_tag_selection.py (100%) rename {tests => dbt-postgres/tests}/functional/graph_selection/test_version_selection.py (100%) rename {tests => dbt-postgres/tests}/functional/incremental_schema_tests/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/incremental_schema_tests/test_incremental_schema.py (100%) rename {tests => dbt-postgres/tests}/functional/invalid_model_tests/test_invalid_models.py (100%) rename {tests => dbt-postgres/tests}/functional/invalid_model_tests/test_model_warning.py (100%) rename {tests => dbt-postgres/tests}/functional/macros/data/seed.sql (100%) rename {tests => dbt-postgres/tests}/functional/macros/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/macros/package_macro_overrides/dbt_project.yml (100%) rename {tests => dbt-postgres/tests}/functional/macros/package_macro_overrides/macros/macros.sql (100%) rename {tests => dbt-postgres/tests}/functional/macros/test_macros.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/conftest.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/materialized_view_tests/test_materialized_view.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/materialized_view_tests/test_postgres_materialized_view.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/materialized_view_tests/utils.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/test_incremental.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/test_runtime_materialization.py (100%) rename {tests => dbt-postgres/tests}/functional/materializations/test_supported_languages.py (100%) rename {tests => dbt-postgres/tests}/functional/postgres/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/postgres/test_indexes.py (100%) rename {tests => dbt-postgres/tests}/functional/projects/__init__.py (100%) rename {tests => dbt-postgres/tests}/functional/projects/dbt_integration/__init__.py (100%) rename {tests => dbt-postgres/tests}/functional/projects/dbt_integration/macros/do_something.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/dbt_integration/models/incremental.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/dbt_integration/models/table.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/dbt_integration/models/view.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/dbt_integration/schemas/project.yml (100%) rename {tests => dbt-postgres/tests}/functional/projects/dbt_integration/schemas/schema.yml (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/__init__.py (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/data/seed.csv (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/data/summary_expected.csv (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/alternative_users.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/base_users.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/emails.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/emails_alt.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/nested_users.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/never_selected.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/subdir.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/users.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/users_rollup.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/models/users_rollup_dependency.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/schemas/patch_path_selection.yml (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/schemas/properties.yml (100%) rename {tests => dbt-postgres/tests}/functional/projects/graph_selection/schemas/schema.yml (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/__init__.py (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/data/raw_customers.csv (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/data/raw_orders.csv (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/data/raw_payments.csv (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/docs/docs.md (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/docs/overview.md (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/models/customers.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/models/orders.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/schemas/jaffle_shop.yml (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/schemas/staging.yml (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/staging/stg_customers.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/staging/stg_orders.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/jaffle_shop/staging/stg_payments.sql (100%) rename {tests => dbt-postgres/tests}/functional/projects/utils.py (100%) rename {tests => dbt-postgres/tests}/functional/retry/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/retry/test_retry.py (100%) rename {tests => dbt-postgres/tests}/functional/run_operations/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/run_operations/test_run_operations.py (100%) rename {tests => dbt-postgres/tests}/functional/schema/fixtures/macros.py (100%) rename {tests => dbt-postgres/tests}/functional/schema/fixtures/sql.py (100%) rename {tests => dbt-postgres/tests}/functional/schema/test_custom_schema.py (100%) rename {tests => dbt-postgres/tests}/functional/selected_resources/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/selected_resources/test_selected_resources.py (100%) rename {tests => dbt-postgres/tests}/functional/semantic_models/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/semantic_models/test_semantic_model_configs.py (100%) rename {tests => dbt-postgres/tests}/functional/semantic_models/test_semantic_model_parsing.py (100%) rename {tests => dbt-postgres/tests}/functional/semantic_models/test_semantic_models.py (100%) rename {tests => dbt-postgres/tests}/functional/show/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/show/test_show.py (100%) rename {tests => dbt-postgres/tests}/functional/sources/common_source_setup.py (100%) rename {tests => dbt-postgres/tests}/functional/sources/data/seed.sql (100%) rename {tests => dbt-postgres/tests}/functional/sources/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/sources/test_simple_source.py (100%) rename {tests => dbt-postgres/tests}/functional/sources/test_source_configs.py (100%) rename {tests => dbt-postgres/tests}/functional/sources/test_source_fresher_state.py (100%) rename {tests => dbt-postgres/tests}/functional/sources/test_source_freshness.py (100%) rename {tests => dbt-postgres/tests}/functional/statements/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/statements/test_statements.py (100%) rename {tests => dbt-postgres/tests}/functional/test_access.py (100%) rename {tests => dbt-postgres/tests}/functional/test_analyses.py (100%) rename {tests => dbt-postgres/tests}/functional/test_catalog.py (100%) rename {tests => dbt-postgres/tests}/functional/test_clean.py (100%) rename {tests => dbt-postgres/tests}/functional/test_colors.py (100%) rename {tests => dbt-postgres/tests}/functional/test_column_quotes.py (100%) rename {tests => dbt-postgres/tests}/functional/test_config.py (100%) rename {tests => dbt-postgres/tests}/functional/test_connection_manager.py (100%) rename {tests => dbt-postgres/tests}/functional/test_custom_target_path.py (100%) rename {tests => dbt-postgres/tests}/functional/test_cycles.py (100%) rename {tests => dbt-postgres/tests}/functional/test_default_selectors.py (100%) rename {tests => dbt-postgres/tests}/functional/test_events.py (100%) rename {tests => dbt-postgres/tests}/functional/test_external_reference.py (100%) rename {tests => dbt-postgres/tests}/functional/test_fail_fast.py (100%) rename {tests => dbt-postgres/tests}/functional/test_multiple_indexes.py (100%) rename {tests => dbt-postgres/tests}/functional/test_ref_override.py (100%) rename {tests => dbt-postgres/tests}/functional/test_relation_name.py (100%) rename {tests => dbt-postgres/tests}/functional/test_severity.py (100%) rename {tests => dbt-postgres/tests}/functional/test_store_test_failures.py (100%) rename {tests => dbt-postgres/tests}/functional/test_thread_count.py (100%) rename {tests => dbt-postgres/tests}/functional/test_timezones.py (100%) rename {tests => dbt-postgres/tests}/functional/test_types.py (100%) rename {tests => dbt-postgres/tests}/functional/test_unlogged_table.py (100%) rename {tests => dbt-postgres/tests}/functional/unit_testing/fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/unit_testing/test_csv_fixtures.py (100%) rename {tests => dbt-postgres/tests}/functional/unit_testing/test_state.py (100%) rename {tests => dbt-postgres/tests}/functional/unit_testing/test_unit_testing.py (100%) rename {tests => dbt-postgres/tests}/functional/unit_testing/test_ut_dependency.py (100%) rename {tests => dbt-postgres/tests}/functional/unit_testing/test_ut_sources.py (100%) rename {tests => dbt-postgres/tests}/functional/utils.py (100%) rename {tests => dbt-postgres/tests}/unit/test_adapter.py (100%) rename {tests => dbt-postgres/tests}/unit/test_adapter_conversions.py (100%) rename {tests => dbt-postgres/tests}/unit/test_connection.py (100%) rename {tests => dbt-postgres/tests}/unit/test_filter_catalog.py (100%) rename {tests => dbt-postgres/tests}/unit/test_materialized_view.py (100%) rename {tests => dbt-postgres/tests}/unit/test_renamed_relations.py (100%) rename {tests => dbt-postgres/tests}/unit/utils.py (100%) 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/.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/pyproject.toml b/dbt-postgres/pyproject.toml similarity index 100% rename from pyproject.toml rename to dbt-postgres/pyproject.toml 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/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 From a7f2242c76d705df2f9484e3e1ea79c8952d2bc6 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sun, 1 Dec 2024 11:30:23 -0500 Subject: [PATCH 04/22] update workflows to run in the subpackage directory --- .github/workflows/changelog-entry-check.yml | 1 + .github/workflows/code-quality.yml | 9 ++++++--- .github/workflows/integration-tests.yml | 11 ++++++----- .github/workflows/release-internal.yml | 1 + .github/workflows/release.yml | 5 +++++ .github/workflows/release_prep_hatch.yml | 1 + .github/workflows/unit-tests.yml | 6 +++++- .github/workflows/version-bump.yml | 5 +++++ dbt-postgres/pyproject.toml | 7 ++++--- .../scripts/update_dev_dependency_branches.sh | 0 10 files changed, 34 insertions(+), 12 deletions(-) rename {.github => dbt-postgres}/scripts/update_dev_dependency_branches.sh (100%) diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index 889c0995..878a6b8d 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -12,6 +12,7 @@ on: defaults: run: shell: bash + working-directory: ./dbt-postgres permissions: contents: read diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 1ca2ded0..c3f0a707 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -26,6 +26,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.ref || github.sha }} cancel-in-progress: true +defaults: + run: + shell: bash + working-directory: ./dbt-postgres + jobs: code-quality: name: Code Quality @@ -39,12 +44,10 @@ 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" - name: Setup `hatch` uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main - name: Run code quality - shell: bash run: hatch run code-quality diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 304c139c..1dfbcbe9 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -73,6 +73,7 @@ concurrency: defaults: run: shell: bash + working-directory: ./dbt-postgres jobs: integration: @@ -111,7 +112,7 @@ 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 }} @@ -164,25 +165,25 @@ jobs: brew install postgresql - name: "Test psycopg2 name - default" - run: .github/scripts/psycopg2-check.sh + run: scripts/psycopg2-check.sh env: PSYCOPG2_EXPECTED_NAME: psycopg2-binary - name: "Test psycopg2 name - invalid override" - run: .github/scripts/psycopg2-check.sh + run: scripts/psycopg2-check.sh 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 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 env: PSYCOPG2_WORKAROUND: true PSYCOPG2_EXPECTED_NAME: psycopg2 diff --git a/.github/workflows/release-internal.yml b/.github/workflows/release-internal.yml index c272b809..8496d3eb 100644 --- a/.github/workflows/release-internal.yml +++ b/.github/workflows/release-internal.yml @@ -34,6 +34,7 @@ on: defaults: run: shell: "bash" + working-directory: ./dbt-postgres jobs: invoke-reusable-workflow: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbf36399..f3ab7c93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,11 @@ 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" diff --git a/.github/workflows/release_prep_hatch.yml b/.github/workflows/release_prep_hatch.yml index 18d7637b..d14c6112 100644 --- a/.github/workflows/release_prep_hatch.yml +++ b/.github/workflows/release_prep_hatch.yml @@ -75,6 +75,7 @@ permissions: defaults: run: shell: bash + working-directory: ./dbt-postgres env: PYTHON_TARGET_VERSION: 3.12 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5805c982..dbd4e731 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -15,6 +15,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.ref || github.sha }} cancel-in-progress: true +defaults: + run: + shell: bash + working-directory: ./dbt-postgres + jobs: unit: name: Unit Tests @@ -38,4 +43,3 @@ jobs: - name: Run unit tests run: hatch run unit-tests - shell: bash 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/dbt-postgres/pyproject.toml b/dbt-postgres/pyproject.toml index f3aa52c1..43164d88 100644 --- a/dbt-postgres/pyproject.toml +++ b/dbt-postgres/pyproject.toml @@ -43,10 +43,12 @@ requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.sdist] -include = ["dbt"] +packages = ["src/dbt/adapters", "src/dbt/include"] +sources = ["src"] [tool.hatch.build.targets.wheel] -packages = ["dbt"] +packages = ["src/dbt/adapters", "src/dbt/include"] +sources = ["src"] [tool.hatch.version] path = "dbt/adapters/postgres/__version__.py" @@ -104,7 +106,6 @@ check-sdist = [ ] [tool.pytest] -env_files = ["test.env"] testpaths = [ "tests/functional", "tests/unit", 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 From c84c2d7342e6b8131c82a9f3643c1ab41605c02c Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sun, 1 Dec 2024 11:55:46 -0500 Subject: [PATCH 05/22] update workflows to run in the subpackage directory --- .github/workflows/code-quality.yml | 3 ++- .github/workflows/integration-tests.yml | 7 +++++++ .github/workflows/unit-tests.yml | 7 ++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index c3f0a707..4d73016b 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -29,7 +29,6 @@ concurrency: defaults: run: shell: bash - working-directory: ./dbt-postgres jobs: code-quality: @@ -45,9 +44,11 @@ jobs: - name: Update Adapters and Core branches if: ${{ contains(github.event_name, 'workflow_') }} 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 - name: Run code quality run: hatch run code-quality + working-directory: ./dbt-postgres diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 1dfbcbe9..8e1c20ce 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -117,9 +117,11 @@ jobs: ${{ 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 @@ -134,6 +136,7 @@ jobs: - name: Run integration tests run: hatch run integration-tests + working-directory: ./dbt-postgres env: POSTGRES_TEST_HOST: localhost POSTGRES_TEST_PORT: 5432 @@ -166,17 +169,20 @@ jobs: - name: "Test psycopg2 name - default" run: scripts/psycopg2-check.sh + working-directory: ./dbt-postgres env: PSYCOPG2_EXPECTED_NAME: psycopg2-binary - name: "Test psycopg2 name - invalid override" 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: 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 @@ -184,6 +190,7 @@ jobs: - name: "Test psycopg2 name - manual override" # verify that the workaround documented in the `README.md` continues to work run: scripts/psycopg2-check.sh + working-directory: ./dbt-postgres env: PSYCOPG2_WORKAROUND: true PSYCOPG2_EXPECTED_NAME: psycopg2 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index dbd4e731..be1a5195 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -15,11 +15,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.ref || github.sha }} cancel-in-progress: true -defaults: - run: - shell: bash - working-directory: ./dbt-postgres - jobs: unit: name: Unit Tests @@ -43,3 +38,5 @@ jobs: - name: Run unit tests run: hatch run unit-tests + shell: bash + working-directory: ./dbt-postgres From 2ccc867e2f7f2284c90869162a3a35fbd8967b23 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sun, 1 Dec 2024 12:03:17 -0500 Subject: [PATCH 06/22] update workflows to run in the subpackage directory --- dbt-postgres/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt-postgres/pyproject.toml b/dbt-postgres/pyproject.toml index 43164d88..57efcddf 100644 --- a/dbt-postgres/pyproject.toml +++ b/dbt-postgres/pyproject.toml @@ -51,7 +51,7 @@ packages = ["src/dbt/adapters", "src/dbt/include"] sources = ["src"] [tool.hatch.version] -path = "dbt/adapters/postgres/__version__.py" +path = "src/dbt/adapters/postgres/__version__.py" [tool.hatch.envs.default] dependencies = [ From ea65e8491d53feacb81ab83d7f1f4581162d0087 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sun, 1 Dec 2024 12:22:56 -0500 Subject: [PATCH 07/22] add changelog --- .../.changes/unreleased/Under the Hood-20241201-122244.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dbt-postgres/.changes/unreleased/Under the Hood-20241201-122244.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" From e2c6cecd587a554980570d7dbeb94717cad6c92e Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sun, 1 Dec 2024 12:41:47 -0500 Subject: [PATCH 08/22] vendor changelog check to check in the subdirectory --- .github/workflows/changelog-entry-check.yml | 62 +++++++++++++++++++-- 1 file changed, 57 insertions(+), 5 deletions(-) diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index 878a6b8d..d470c6bf 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -20,11 +20,63 @@ permissions: jobs: changelog-entry-check: - uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main - with: - changelog_comment: >- + name: Check if Changelog Exists + if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') }} + runs-on: ubuntu-latest + env: + 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" - secrets: inherit + steps: + - name: Check if changelog file was added + # https://github.com/marketplace/actions/paths-changes-filter + # For each filter, it sets output variable named by the filter to the text: + # 'true' - if any of changed files matches any of filter rules + # 'false' - if none of changed files matches any of filter rules + uses: dorny/paths-filter@v3 + id: changelog_check + with: + token: ${{ secrets.GITHUB_TOKEN }} + filters: | + exists: + - added|modified: 'dbt-postgres/.changes/unreleased/**.yaml' + + # this step uses the read permission from the GITHUB_TOKEN it inherits + - name: Check for comment + if: steps.changelog_check.outputs.exists == 'false' + uses: peter-evans/find-comment@v3 + id: changelog_comment + with: + issue-number: ${{ github.event.pull_request.number }} + comment-author: "github-actions[bot]" + body-includes: ${{ env.COMMENT }} + + - name: Set if comment already exists + if: steps.changelog_check.outputs.exists == 'false' + shell: bash + id: comment_check + run: | + if [ '${{ steps.changelog_comment.outputs.comment-body }}' = '' ]; then + echo "exists=false" >> $GITHUB_OUTPUT + echo "Comment does not exist for this PR" + else + echo "exists=true" >> $GITHUB_OUTPUT + echo "Comment already exists for this PR" + fi + + # this step uses the write permission on the PR from the GITHUB_TOKEN it inherits + - name: Create PR comment if changelog entry is missing, required, and does not exist + if: | + steps.changelog_check.outputs.exists == 'false' && + steps.comment_check.outputs.exists == 'false' + run: | + gh issue comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "${{ env.COMMENT }}" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Fail job if changelog entry is missing and required + if: steps.changelog_check.outputs.exists == 'false' + uses: actions/github-script@v7 + with: + script: core.setFailed('Changelog entry required to merge.') From a832cfcae1c6defbdd1d81d5c68b9d309d0f4c77 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 4 Dec 2024 21:04:24 -0500 Subject: [PATCH 09/22] remove the subpackage script; it is basically using git mv --- _monorepo-scripts/make-subpackage.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 _monorepo-scripts/make-subpackage.sh diff --git a/_monorepo-scripts/make-subpackage.sh b/_monorepo-scripts/make-subpackage.sh deleted file mode 100644 index 0fbca536..00000000 --- a/_monorepo-scripts/make-subpackage.sh +++ /dev/null @@ -1,27 +0,0 @@ -opts=( -f -k -v ) - -while true; do - case "$1" in - --dry-run ) - opts+=( -n ) - shift 1 - ;; - * ) - break - ;; - esac -done - -rm -r dbt-postgres -mkdir dbt-postgres - -declare -a sources=(".changes" "docker" "scripts" "tests" ".changie.yaml" "CHANGELOG.md" "CONTRIBUTING.md" "pyproject.toml" "README.md" "test.env.example") -for source in "${sources[@]}" -do - git mv "${opts[@]}" $source dbt-postgres -done - -mkdir dbt-postgres/src -git mv "${opts[@]}" dbt dbt-postgres/src -git mv "${opts[@]}" dbt-postgres/test.env.example dbt-postgres/.env.example -git mv "${opts[@]}" .github/scripts/psycopg2-check.sh dbt-postgres/scripts/psycopg2-check.sh From 120d7ea7e0d08b676f59c680c618de192fbe839d Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 4 Dec 2024 21:11:26 -0500 Subject: [PATCH 10/22] remove the subpackage script; it is basically using git mv --- dbt-postgres/hatch.toml | 62 ++++++++++++++++++++++++++++++++ dbt-postgres/pyproject.toml | 71 +++---------------------------------- 2 files changed, 66 insertions(+), 67 deletions(-) create mode 100644 dbt-postgres/hatch.toml 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 index 57efcddf..6f4b4604 100644 --- a/dbt-postgres/pyproject.toml +++ b/dbt-postgres/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + [project] dynamic = ["version"] name = "dbt-postgres" @@ -38,73 +42,6 @@ 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] -packages = ["src/dbt/adapters", "src/dbt/include"] -sources = ["src"] - -[tool.hatch.build.targets.wheel] -packages = ["src/dbt/adapters", "src/dbt/include"] -sources = ["src"] - -[tool.hatch.version] -path = "src/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] testpaths = [ "tests/functional", From f9c0d50206f3a08f97ccdda6ddd511c4763c2a15 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Thu, 5 Dec 2024 05:40:40 -0500 Subject: [PATCH 11/22] update release workflow to use local refs and built-in workflows for installing python and hatch --- .github/workflows/release.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3ab7c93..bde4d4ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ defaults: 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 }} @@ -59,20 +59,15 @@ jobs: with: ref: ${{ needs.release-prep.outputs.release-branch }} persist-credentials: false - - - name: "Setup `hatch`" - uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + - uses: actions/setup-python@v5 with: python-version: ${{ inputs.python_version }} - - - name: "Set archive name" - id: archive + - uses: pypa/hatch@install + - id: archive run: | archive_name=${{ github.event.repository.name }}-${{ inputs.version }}-${{ inputs.deploy-to }} echo "name=$archive_name" >> $GITHUB_OUTPUT - - - name: "Build ${{ github.event.repository.name }}" - uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main + - uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main with: archive-name: ${{ steps.archive.outputs.name }} From d229314f17de9e72deb2658c4406555f915a6775 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:38:02 -0500 Subject: [PATCH 12/22] point the changelog check to the new shared workflow --- .github/workflows/changelog-entry-check.yml | 82 ++------------------- 1 file changed, 6 insertions(+), 76 deletions(-) diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index d470c6bf..67b0847f 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -2,81 +2,11 @@ name: Changelog entry check on: pull_request: - types: - - opened - - reopened - - labeled - - unlabeled - - synchronize - -defaults: - run: - shell: bash - working-directory: ./dbt-postgres - -permissions: - contents: read - pull-requests: write + types: [opened, reopened, labeled, unlabeled, synchronize] jobs: - changelog-entry-check: - name: Check if Changelog Exists - if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') }} - runs-on: ubuntu-latest - env: - 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). - steps: - - name: Check if changelog file was added - # https://github.com/marketplace/actions/paths-changes-filter - # For each filter, it sets output variable named by the filter to the text: - # 'true' - if any of changed files matches any of filter rules - # 'false' - if none of changed files matches any of filter rules - uses: dorny/paths-filter@v3 - id: changelog_check - with: - token: ${{ secrets.GITHUB_TOKEN }} - filters: | - exists: - - added|modified: 'dbt-postgres/.changes/unreleased/**.yaml' - - # this step uses the read permission from the GITHUB_TOKEN it inherits - - name: Check for comment - if: steps.changelog_check.outputs.exists == 'false' - uses: peter-evans/find-comment@v3 - id: changelog_comment - with: - issue-number: ${{ github.event.pull_request.number }} - comment-author: "github-actions[bot]" - body-includes: ${{ env.COMMENT }} - - - name: Set if comment already exists - if: steps.changelog_check.outputs.exists == 'false' - shell: bash - id: comment_check - run: | - if [ '${{ steps.changelog_comment.outputs.comment-body }}' = '' ]; then - echo "exists=false" >> $GITHUB_OUTPUT - echo "Comment does not exist for this PR" - else - echo "exists=true" >> $GITHUB_OUTPUT - echo "Comment already exists for this PR" - fi - - # this step uses the write permission on the PR from the GITHUB_TOKEN it inherits - - name: Create PR comment if changelog entry is missing, required, and does not exist - if: | - steps.changelog_check.outputs.exists == 'false' && - steps.comment_check.outputs.exists == 'false' - run: | - gh issue comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "${{ env.COMMENT }}" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Fail job if changelog entry is missing and required - if: steps.changelog_check.outputs.exists == 'false' - uses: actions/github-script@v7 - with: - script: core.setFailed('Changelog entry required to merge.') + changelog-entry: + uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml@monorepo/shared-workflows + with: + pull-request: ${{ github.event.pull_request.number }} + secrets: inherit From ed9bf0083d8bd89cbd0c309e76b37a5d53f1d441 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:38:26 -0500 Subject: [PATCH 13/22] minimize changes in the code quality workflow --- .github/workflows/code-quality.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 4d73016b..3e4ed49c 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -43,6 +43,7 @@ jobs: - name: Update Adapters and Core branches if: ${{ contains(github.event_name, 'workflow_') }} + shell: bash run: scripts/update_dev_packages.sh ${{ inputs.dbt_adapters_branch }} "main" working-directory: ./dbt-postgres @@ -50,5 +51,6 @@ jobs: uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main - name: Run code quality + shell: bash run: hatch run code-quality working-directory: ./dbt-postgres From 79aa63e33994050ff93dd10043d9f99872254412 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:39:42 -0500 Subject: [PATCH 14/22] minimize changes in the changelog entry check workflow --- .github/workflows/changelog-entry-check.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index 67b0847f..f46c4a16 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -2,10 +2,15 @@ name: Changelog entry check on: pull_request: - types: [opened, reopened, labeled, unlabeled, synchronize] + types: + - opened + - reopened + - labeled + - unlabeled + - synchronize jobs: - changelog-entry: + changelog-entry-check: uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml@monorepo/shared-workflows with: pull-request: ${{ github.event.pull_request.number }} From f868e112485c3c3499f098bbc07d99d8bf93958e Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:40:24 -0500 Subject: [PATCH 15/22] minimize changes in the changelog entry check workflow --- .github/workflows/changelog-entry-check.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index f46c4a16..3345cc9b 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -9,6 +9,14 @@ on: - unlabeled - synchronize +defaults: + run: + shell: bash + +permissions: + contents: read + pull-requests: write + jobs: changelog-entry-check: uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml@monorepo/shared-workflows From 6e085b0c5aaf33379443d48efc9ea8deed259bdc Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:41:20 -0500 Subject: [PATCH 16/22] minimize changes in the code quality workflow --- .github/workflows/code-quality.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 3e4ed49c..3619e0dd 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -26,10 +26,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.ref || github.sha }} cancel-in-progress: true -defaults: - run: - shell: bash - jobs: code-quality: name: Code Quality From f5c557e133518deb2e357d7a50c4d2dfe1e07443 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:43:05 -0500 Subject: [PATCH 17/22] minimize changes in the integration tests workflow --- .github/workflows/integration-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 8e1c20ce..fd7f7ca1 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -73,7 +73,6 @@ concurrency: defaults: run: shell: bash - working-directory: ./dbt-postgres jobs: integration: From a02a7f1ee21c06c775b69c784e4010387a22e255 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:46:06 -0500 Subject: [PATCH 18/22] minimize changes in the release workflow --- .github/workflows/release-internal.yml | 1 - .github/workflows/release.yml | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-internal.yml b/.github/workflows/release-internal.yml index 8496d3eb..c272b809 100644 --- a/.github/workflows/release-internal.yml +++ b/.github/workflows/release-internal.yml @@ -34,7 +34,6 @@ on: defaults: run: shell: "bash" - working-directory: ./dbt-postgres jobs: invoke-reusable-workflow: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bde4d4ad..03d63052 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,15 +59,18 @@ jobs: with: ref: ${{ needs.release-prep.outputs.release-branch }} persist-credentials: false - - uses: actions/setup-python@v5 - with: - python-version: ${{ inputs.python_version }} - - uses: pypa/hatch@install - - id: archive + + - name: "Setup `hatch`" + uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + + - name: "Set archive name" + id: archive run: | archive_name=${{ github.event.repository.name }}-${{ inputs.version }}-${{ inputs.deploy-to }} echo "name=$archive_name" >> $GITHUB_OUTPUT - - uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main + + - name: "Build ${{ github.event.repository.name }}" + uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main with: archive-name: ${{ steps.archive.outputs.name }} From fd7fcf80bd2dca16b2220300c660fdcdc261a65f Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:47:16 -0500 Subject: [PATCH 19/22] minimize changes in the release workflow --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03d63052..dff06591 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,6 +62,8 @@ jobs: - name: "Setup `hatch`" uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + with: + python-version: ${{ inputs.python_version }} - name: "Set archive name" id: archive From d959514a719923be3a7f953ca9a8a20a213600e6 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:49:21 -0500 Subject: [PATCH 20/22] minimize changes in the release workflow --- .github/workflows/release_prep_hatch.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release_prep_hatch.yml b/.github/workflows/release_prep_hatch.yml index d14c6112..18d7637b 100644 --- a/.github/workflows/release_prep_hatch.yml +++ b/.github/workflows/release_prep_hatch.yml @@ -75,7 +75,6 @@ permissions: defaults: run: shell: bash - working-directory: ./dbt-postgres env: PYTHON_TARGET_VERSION: 3.12 From 7c158c41035687a6f84d9e22faf0f82df222d0d4 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Tue, 10 Dec 2024 13:54:48 -0500 Subject: [PATCH 21/22] update changelog entry check to reference the reusable workflow on main --- .github/workflows/changelog-entry-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index 3345cc9b..c0672325 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -19,7 +19,7 @@ permissions: jobs: changelog-entry-check: - uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml@monorepo/shared-workflows + uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml with: pull-request: ${{ github.event.pull_request.number }} secrets: inherit From fe49b1b59ed1772ccf28c0f9a2a5c1de06044bba Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Tue, 10 Dec 2024 13:56:43 -0500 Subject: [PATCH 22/22] update changelog entry check to reference the reusable workflow on main --- .github/workflows/changelog-entry-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog-entry-check.yml b/.github/workflows/changelog-entry-check.yml index c0672325..34b2a17b 100644 --- a/.github/workflows/changelog-entry-check.yml +++ b/.github/workflows/changelog-entry-check.yml @@ -19,7 +19,7 @@ permissions: jobs: changelog-entry-check: - uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml + uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml@main with: pull-request: ${{ github.event.pull_request.number }} secrets: inherit