Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for dbt 1.7 #72

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
__pycache__/
.venv/
tests/integration/profiles/.user.yml
coverage.json
logs
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Support for `dbt==1.7`. [#72] _Thanks to @pgoslatara!_

## [0.3.5] - 2023-11-09
### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ the support matrix.
|-------------|----------------|
| <0.20 | not tested |
| 0.20 - 0.21 | 0.1 |
| 1.0 - 1.6 | 0.2, 0.3 |
| 1.0 - 1.7 | 0.2, 0.3 |

## Related packages

Expand Down
1 change: 1 addition & 0 deletions dbt_coverage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"https://schemas.getdbt.com/dbt/manifest/v8.json",
"https://schemas.getdbt.com/dbt/manifest/v9.json",
"https://schemas.getdbt.com/dbt/manifest/v10.json",
"https://schemas.getdbt.com/dbt/manifest/v11.json",
]

app = typer.Typer(help="Compute coverage of dbt-managed data warehouses.")
Expand Down
350 changes: 236 additions & 114 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ colorama = { version = "*", python = "^3.7" } # Needed for a successful resolut
pytest = "^7"
pytest-docker = "^2"

dbt-core = { version = "~1.6.0", python = "^3.8" }
dbt-postgres = { version = "~1.6.0", python = "^3.8" }
dbt-core = { version = "~1.7.0", python = "^3.8" }
dbt-postgres = { version = "~1.7.0", python = "^3.8" }
importlib-metadata = { version = "*", python = "^3.8" } # Needed for a successful resolution of dbt's transitive dependencies

[tool.poetry.scripts]
Expand Down
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env_list =
dbt14
dbt15
dbt16
dbt17

[testenv]
description = run integration tests
Expand Down Expand Up @@ -70,3 +71,12 @@ deps =
{[testenv]deps}
dbt-core~=1.6.0
dbt-postgres~=1.6.0

[testenv:dbt17]
description = run with dbt==1.7
deps =
sweco marked this conversation as resolved.
Show resolved Hide resolved
{[testenv]deps}
dbt-core~=1.7.0
dbt-postgres~=1.7.0
setenv =
DBT_CLEAN_PROJECT_FILES_ONLY=false
Loading