Skip to content

Commit

Permalink
Merge pull request #50 from calogica/upgrade/dbt-1-0
Browse files Browse the repository at this point in the history
Upgrade project to support dbt 0.1.x
  • Loading branch information
clausherther authored Dec 5, 2021
2 parents c9bad71 + 6577fee commit cf9b6d6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

target/
dbt_modules/
dbt_packages/
logs/
.python-version
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# dbt-date v0.5.0
* Deprecates support for dbt < 1.0.0

# dbt-date v0.4.2
## Under the hood
* Patch: adds support for dbt 1.x
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# dbt-date
Extension package for [**dbt**](https://github.com/fishtown-analytics/dbt) to handle date logic and calendar functionality.
Extension package for [**dbt**](https://github.com/dbt-labs/dbt) to handle date logic and calendar functionality.

FYI: this package includes [**dbt-utils**](https://github.com/fishtown-analytics/dbt-utils) so there's no need to also import dbt-utils in your local project. (In fact, you may get an error if you do.)
FYI: this package includes [**dbt-utils**](https://github.com/dbt-labs/dbt-utils) so there's no need to also import dbt-utils in your local project. (In fact, you may get an error if you do.)

Include in `packages.yml`

```yaml
packages:
- package: calogica/dbt_date
version: [">=0.4.0", "<0.5.0"]
version: [">=0.5.0", "<0.6.0"]
# <see https://github.com/calogica/dbt-date/releases/latest> for the latest version tag
```

Expand All @@ -17,7 +17,7 @@ Note: we no longer include `spark_utils` in this package to avoid versioning con
For example, in `packages.yml`, you will need to include the relevant package:

```yaml
- package: fishtown-analytics/spark_utils
- package: dbt-labs/spark_utils
version: <latest or range>
```
Expand Down
6 changes: 3 additions & 3 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: 'dbt_date'
version: '0.4'
version: '0.5.0'

config-version: 2

target-path: "target"
clean-targets: ["target", "dbt_modules", "dbt_packages"]
clean-targets: ["target", "dbt_packages"]
macro-paths: ["macros"]
log-path: "logs"

require-dbt-version: [">=0.20.0", "<1.1.0"]
require-dbt-version: [">=1.0.0", "<2.0.0"]
profile: integration_tests

quoting:
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ profile: "integration_tests"

config-version: 2

source-paths: ["models"]
model-paths: ["models"]
test-paths: ["tests"]
data-paths: ["data"]
seed-paths: ["data"]
macro-paths: ["macros"]

target-path: "target"
Expand Down
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: dbt-labs/dbt_utils
version: [">=0.7.0", "<0.8.0"]
version: [">=0.8.0", "<0.9.0"]

0 comments on commit cf9b6d6

Please sign in to comment.