From 1d9c536378959ba0307562d5db7fd23f4db1197d Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 21 Nov 2024 14:24:06 -0600 Subject: [PATCH] Move upper bounds back to 2.0 (#11024) * quick test * add changelog * Update .changes/unreleased/Under the Hood-20241121-105350.yaml * pin dev req * bump protobuf --- .changes/unreleased/Under the Hood-20241121-105350.yaml | 6 ++++++ core/setup.py | 6 +++--- dev-requirements.txt | 9 +++++---- 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .changes/unreleased/Under the Hood-20241121-105350.yaml diff --git a/.changes/unreleased/Under the Hood-20241121-105350.yaml b/.changes/unreleased/Under the Hood-20241121-105350.yaml new file mode 100644 index 00000000000..cc1827a27bf --- /dev/null +++ b/.changes/unreleased/Under the Hood-20241121-105350.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Pin dbt-common and dbt-adapters with upper bound of 2.0. +time: 2024-11-21T10:53:50.051757-06:00 +custom: + Author: emmyoop + Issue: "11024" diff --git a/core/setup.py b/core/setup.py index 916fc47e3ed..e95b685894a 100644 --- a/core/setup.py +++ b/core/setup.py @@ -61,7 +61,7 @@ # with major versions in each new minor version of dbt-core. "click>=8.0.2,<9.0", "networkx>=2.3,<4.0", - "protobuf>=4.0.0,<5", + "protobuf>=5.0,<6.0", "requests<3.0.0", # should match dbt-common # ---- # These packages are major-version-0. Keep upper bounds on upcoming minor versions (which could have breaking changes) @@ -75,8 +75,8 @@ "minimal-snowplow-tracker>=0.0.2,<0.1", "dbt-semantic-interfaces>=0.5.1,<0.6", # Minor versions for these are expected to be backwards-compatible - "dbt-common>=1.0.4,<1.11.0", - "dbt-adapters>=1.1.1,<1.7.1", + "dbt-common>=1.0.4,<2.0", + "dbt-adapters>=1.1.1,<2.0", # ---- # Expect compatibility with all new versions of these packages, so lower bounds only. "packaging>20.9", diff --git a/dev-requirements.txt b/dev-requirements.txt index 65a4c44bb2b..402b4c51534 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,7 +1,8 @@ -# We hardcode these two dependencies to ensure that we are testing against the correct versions of -# released code to ensure we don't introduce any breaking changes -dbt-tests-adapter<=1.10.2 -dbt-postgres<=1.9.0 +# These point to main to catch any regressions before they are released to OSS +git+https://github.com/dbt-labs/dbt-adapters.git@main +git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-tests-adapter +git+https://github.com/dbt-labs/dbt-common.git@main +git+https://github.com/dbt-labs/dbt-postgres.git@main # black>=24.3.0,<25.0 bumpversion