From d1ebf9d12a42d9bf0fa4e6d835c618979f3f83db Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Fri, 23 Feb 2024 13:35:52 -0600 Subject: [PATCH] remove ~= from dependency definitions (#9640) * remove ~= from dependency definitions * try lower bounds of alpha version * Apply suggestions from code review * Apply suggestions from code review --- core/setup.py | 18 +++++++++--------- dev-requirements.txt | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/setup.py b/core/setup.py index 82d65f6e0bc..3bd43cd31df 100644 --- a/core/setup.py +++ b/core/setup.py @@ -49,9 +49,9 @@ # ---- # dbt-core uses these packages deeply, throughout the codebase, and there have been breaking changes in past patch releases (even though these are major-version-one). # Pin to the patch or minor version, and bump in each new minor version of dbt-core. - "agate~=1.7.0", + "agate>=1.7.0,<1.8", "Jinja2>=3.1.3,<4", - "mashumaro[msgpack]~=3.9", + "mashumaro[msgpack]>=3.9,<4.0", # ---- # Legacy: This package has not been updated since 2019, and it is unused in dbt's logging system (since v1.0) # The dependency here will be removed along with the removal of 'legacy logging', in a future release of dbt-core @@ -59,8 +59,8 @@ # ---- # 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. - "click>=8.0.2,<9", - "networkx>=2.3,<4", + "click>=8.0.2,<9.0", + "networkx>=2.3,<4.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) @@ -69,11 +69,11 @@ "sqlparse>=0.2.3,<0.5", # ---- # These are major-version-0 packages also maintained by dbt-labs. Accept patches. - "dbt-extractor~=0.5.0", - "minimal-snowplow-tracker~=0.0.2", - "dbt-semantic-interfaces~=0.5.0a2", - "dbt-common~=0.1.6", - "dbt-adapters~=0.1.0a2", + "dbt-extractor>=0.5.0,<=0.6", + "minimal-snowplow-tracker>=0.0.2,<0.1", + "dbt-semantic-interfaces<1.0.0a1", + "dbt-common<1.0", + "dbt-adapters>=0.1.0a2,<1.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 f6580a300aa..c97d1239721 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -15,9 +15,9 @@ mypy==1.4.1 pip-tools pre-commit protobuf>=4.0.0 -pytest~=7.4 +pytest>=7.4,<8.0 pytest-cov -pytest-csv~=3.0 +pytest-csv>=3.0,<4.0 pytest-dotenv pytest-logbook pytest-mock