From 3825fe13b745704fca47ca0e9a6854aaea1b5e17 Mon Sep 17 00:00:00 2001 From: Argus Li <43020525+ArgusLi@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:17:19 -0800 Subject: [PATCH] 1.3.0 release readiness (#76) ### Summary 1.3.0 release readiness ### Description Fix tests impacted by merge. Co-authored-by: Jared LaRue --- .github/dependabot.yml | 21 +++++++++++++++++++++ README.md | 22 +++++++++++++--------- dbt/adapters/dremio/__version__.py | 13 ++++++++++++- dev_requirements.txt | 5 ++++- setup.py | 2 +- tests/conftest.py | 11 +++++++++++ tests/fixtures/profiles.py | 11 +++++++++++ tests/unit/test_connection.py | 11 +++++++++++ 8 files changed, 84 insertions(+), 12 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f942a69 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,21 @@ +# Copyright (C) 2022 Dremio Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" + rebase-strategy: "disabled" diff --git a/README.md b/README.md index 7ac4b07..bd10bee 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis. -## dbt-dremio version 1.3.0b beta ## - -The `dbt-dremio` package contains all of the code enabling dbt to work with Dremio. For more information on using dbt with Dremio, consult [the docs](https://docs.getdbt.com/reference/warehouse-profiles/dremio-profile). +## dbt-dremio version 1.3.0 ## +--- +The `dbt-dremio` package contains all of the code enabling dbt to work with [Dremio](https://www.dremio.com/). For more information on using dbt with Dremio, consult [the docs](https://docs.getdbt.com/reference/warehouse-profiles/dremio-profile). The dbt-dremio package supports both Dremio Cloud and Dremio Software (versions 22.0 and later). @@ -15,18 +15,22 @@ Installing the dbt-dremio package will install or update dbt-core to version 1.3 > Prior to version 1.1.0b, dbt-dremio was created and maintained by [Fabrice Etanchaud](https://github.com/fabrice-etanchaud) on [their GitHub repo](https://github.com/fabrice-etanchaud/dbt-dremio). Code for using Dremio REST APIs was originally authored by [Ryan Murray](https://github.com/rymurr). Contributors in this repo are credited for laying the groundwork and maintaining the adapter till version 1.0.6.5. The dbt-dremio adapter is maintained and distributed by Dremio starting with version 1.1.0b. ## Getting started - +--- - [Install dbt](https://docs.getdbt.com/docs/installation) - Note that dbt-dremio requires dbt-core 1.3.0. - Read the [introduction](https://docs.getdbt.com/docs/introduction/) and [viewpoint](https://docs.getdbt.com/docs/about/viewpoint/) ## Join the dbt Community - +--- - Be part of the conversation in the [dbt Community Slack](http://community.getdbt.com/) - Read more on the [dbt Community Discourse](https://discourse.getdbt.com) ## Reporting bugs and contributing code - -- Want to report a bug or request a feature? Let us know by opening [an issue](https://github.com/dremio/dbt-dremio/issues/new) - - +--- +- Open bugs and feature requests can be found at [dbt-dremio's GitHub issues](https://github.com/dremio/dbt-dremio/issues). +- Want to report a bug or request a feature? Let us know by on [Slack](https://getdbt.slack.com/archives/C049G61TKBK), or opening [an issue](https://github.com/dremio/dbt-dremio/issues/new) +- Want to help us build dbt-dremio? Check out the [Contributing Guide](https://github.com/dremio/dbt-dremio/blob/main/CONTRIBUTING.md). + +## Code of Conduct +--- +Everyone interacting in the dbt-dremio project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [dbt-dremio Code of Conduct](https://github.com/dremio/dbt-dremio/blob/main/CODE_OF_CONDUCT.md). diff --git a/dbt/adapters/dremio/__version__.py b/dbt/adapters/dremio/__version__.py index 1a4228d..61a16c2 100644 --- a/dbt/adapters/dremio/__version__.py +++ b/dbt/adapters/dremio/__version__.py @@ -1 +1,12 @@ -version = "1.3.0b" +# Copyright (C) 2022 Dremio Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +version = "1.3.0" diff --git a/dev_requirements.txt b/dev_requirements.txt index 59d8f4b..bd39be7 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -17,4 +17,7 @@ pytest-xdist pytz tox>=3.13 twine -wheel \ No newline at end of file +wheel +agate==1.6.3 +requests==2.28.1 +setuptools==63.2.0 diff --git a/setup.py b/setup.py index ad75c87..64b037d 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from setuptools import find_namespace_packages, setup package_name = "dbt-dremio" -package_version = "1.3.0b" +package_version = "1.3.0" description = """The Dremio adapter plugin for dbt""" setup( diff --git a/tests/conftest.py b/tests/conftest.py index bd6a9e1..768f4c0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,14 @@ +# Copyright (C) 2022 Dremio Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import pytest from dotenv import load_dotenv diff --git a/tests/fixtures/profiles.py b/tests/fixtures/profiles.py index d05a505..b6a66c9 100644 --- a/tests/fixtures/profiles.py +++ b/tests/fixtures/profiles.py @@ -1,3 +1,14 @@ +# Copyright (C) 2022 Dremio Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from tests.functional.adapter.utils.test_utils import DATALAKE diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py index a117ccf..e979f32 100644 --- a/tests/unit/test_connection.py +++ b/tests/unit/test_connection.py @@ -1,3 +1,14 @@ +# Copyright (C) 2022 Dremio Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from unittest.mock import patch from dbt.exceptions import FailedToConnectException