From b4751c8fb4aacb512fc215a84034f343fc625d4f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 16:37:09 -0500 Subject: [PATCH] loosen the click pin (#8232) (#8249) * loosen the click pin * changelog * separate out sqlparse pin * remove changelog * add ignores (cherry picked from commit 5b6d21d7da00847e694111e21724a59053b36e76) Co-authored-by: Emily Rockman --- .changes/unreleased/Dependencies-20230727-145703.yaml | 6 ++++++ core/dbt/cli/params.py | 6 +++--- core/setup.py | 3 +-- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changes/unreleased/Dependencies-20230727-145703.yaml diff --git a/.changes/unreleased/Dependencies-20230727-145703.yaml b/.changes/unreleased/Dependencies-20230727-145703.yaml new file mode 100644 index 00000000000..6cc64bf5102 --- /dev/null +++ b/.changes/unreleased/Dependencies-20230727-145703.yaml @@ -0,0 +1,6 @@ +kind: Dependencies +body: Update pin for click<9 +time: 2023-07-27T14:57:03.180458-05:00 +custom: + Author: emmyoop + PR: "8232" diff --git a/core/dbt/cli/params.py b/core/dbt/cli/params.py index 3bec7804f4e..e75f5f6419b 100644 --- a/core/dbt/cli/params.py +++ b/core/dbt/cli/params.py @@ -389,9 +389,9 @@ # Most CLI arguments should use the combined `select` option that aliases `--models` to `--select`. # However, if you need to split out these separators (like `dbt ls`), use the `models` and `raw_select` options instead. # See https://github.com/dbt-labs/dbt-core/pull/6774#issuecomment-1408476095 for more info. -models = click.option(*model_decls, **select_attrs) -raw_select = click.option(*select_decls, **select_attrs) -select = click.option(*select_decls, *model_decls, **select_attrs) +models = click.option(*model_decls, **select_attrs) # type: ignore[arg-type] +raw_select = click.option(*select_decls, **select_attrs) # type: ignore[arg-type] +select = click.option(*select_decls, *model_decls, **select_attrs) # type: ignore[arg-type] selector = click.option( "--selector", diff --git a/core/setup.py b/core/setup.py index e40da88838f..00117ddef34 100644 --- a/core/setup.py +++ b/core/setup.py @@ -59,8 +59,7 @@ # ---- # dbt-core uses these packages in standard ways. Pin to the major version, and check compatibility # with major versions in each new minor version of dbt-core. - # temporarily pinning click for mypy failures: https://github.com/pallets/click/issues/2558 - "click>=8.1.1,<8.1.4", + "click<9", "networkx>=2.3,<4", # ---- # These packages are major-version-0. Keep upper bounds on upcoming minor versions (which could have breaking changes)