From 19471a8cf6ec9090a36a48a3e408b2d18d3cadde Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Fri, 20 Aug 2021 11:24:34 -0500 Subject: [PATCH 1/2] dbt 20 updates --- README.md | 9 +++++++++ dbt_project.yml | 4 ++-- integration_tests/dbt_project.yml | 2 +- integration_tests/requirements.txt | 2 +- packages.yml | 7 +++++-- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 55eb601..8cc17ae 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Apache License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![dbt logo and version](https://img.shields.io/static/v1?logo=dbt&label=dbt-version&message=0.20.x&color=orange) # Xero This package models Xero data from [Fivetran's connector](https://fivetran.com/docs/applications/xero). It uses data in the format described by [this ERD](https://docs.google.com/presentation/d/1eJ5eLTWyG2ozdZYLf4oy887anCvLtoE8RhJ1VLmFrbI/edit?usp=sharing). @@ -23,6 +24,14 @@ If you are using multi-currency accounting in Xero, you are likely to have unrea Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages. +Include in your `packages.yml` + +```yaml +packages: + - package: fivetran/xero + version: [">=0.2.0", "<0.3.0"] +``` + ## Configuration By default, this package will look for your Xero data in the `xero` schema of your [target database](https://docs.getdbt.com/docs/running-a-dbt-project/using-the-command-line-interface/configure-your-profile). If this is not where your Xero data is,add the following configuration to your `dbt_project.yml` file: diff --git a/dbt_project.yml b/dbt_project.yml index 7b4348e..e8ecd7d 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ name: 'xero' -version: '0.1.2' +version: '0.2.0' config-version: 2 -require-dbt-version: [">=0.19.0", "<0.20.0"] +require-dbt-version: [">=0.20.0"] vars: xero: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index d584dfa..95c02e1 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'xero_integration_tests' -version: '0.1.2' +version: '0.2.0' profile: 'integration_tests' config-version: 2 diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt index 38e8ae6..1b85aa4 100644 --- a/integration_tests/requirements.txt +++ b/integration_tests/requirements.txt @@ -1 +1 @@ -dbt==0.19.0 \ No newline at end of file +dbt~=0.20.0 \ No newline at end of file diff --git a/packages.yml b/packages.yml index 90611ac..794e691 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,6 @@ packages: - - package: fivetran/xero_source - version: [">=0.1.0","<0.2.0"] + # - package: fivetran/xero_source + # version: [">=0.2.0","<0.3.0"] + - git: https://github.com/fivetran/dbt_xero_source.git + revision: feature/dbt20-upgrade + warn-unpinned: false \ No newline at end of file From 2a9b4b55342075fdd9d73acb788100d097ac1886 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Fri, 20 Aug 2021 12:18:07 -0500 Subject: [PATCH 2/2] Update packages.yml --- packages.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages.yml b/packages.yml index 794e691..9856b5e 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,3 @@ packages: - # - package: fivetran/xero_source - # version: [">=0.2.0","<0.3.0"] - - git: https://github.com/fivetran/dbt_xero_source.git - revision: feature/dbt20-upgrade - warn-unpinned: false \ No newline at end of file + - package: fivetran/xero_source + version: [">=0.2.0","<0.3.0"] \ No newline at end of file