diff --git a/CHANGELOG.md b/CHANGELOG.md index 6207f81cfd8..3756820e7f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ Contributors: - Fix bug in retry logic for bad response from hub and when there is a bad git tarball download. ([#4577](https://github.com/dbt-labs/dbt-core/issues/4577), [#4579](https://github.com/dbt-labs/dbt-core/issues/4579), [#4609](https://github.com/dbt-labs/dbt-core/pull/4609)) - Restore previous log level (DEBUG) when a test depends on a disabled resource. Still WARN if the resource is missing ([#4594](https://github.com/dbt-labs/dbt-core/issues/4594), [#4647](https://github.com/dbt-labs/dbt-core/pull/4647)) - Add project name validation to `dbt init` ([#4490](https://github.com/dbt-labs/dbt-core/issues/4490),[#4536](https://github.com/dbt-labs/dbt-core/pull/4536)) +- Support click versions in the v7.x series ([#tbd](https://github.com/dbt-labs/dbt-core/issues/tbd)) Contributors: * [@amirkdv](https://github.com/amirkdv) ([#4536](https://github.com/dbt-labs/dbt-core/pull/4536)) diff --git a/core/dbt/task/init.py b/core/dbt/task/init.py index 1f1d0daa182..e164917c40f 100644 --- a/core/dbt/task/init.py +++ b/core/dbt/task/init.py @@ -50,7 +50,8 @@ Happy modeling! """ -# https://click.palletsprojects.com/en/8.0.x/api/?highlight=float#types +# https://click.palletsprojects.com/en/8.0.x/api/#types +# click v7.0 has UNPROCESSED, STRING, INT, FLOAT, BOOL, and UUID available. click_type_mapping = { "string": click.STRING, "int": click.INT, diff --git a/core/setup.py b/core/setup.py index 4d31e64ef7d..a98e3b83100 100644 --- a/core/setup.py +++ b/core/setup.py @@ -53,7 +53,7 @@ install_requires=[ 'Jinja2==2.11.3', 'agate>=1.6,<1.6.4', - 'click>=8,<9', + 'click>=7.0,<9', 'colorama>=0.3.9,<0.4.5', 'hologram==0.0.14', 'isodate>=0.6,<0.7',