Skip to content

Commit 40969c2

Browse files
authored
Fix version specification for redshift-connector (#2467)
## Changes This PR fixes the version specification for the `redshift-connector` dependency, introduced in #2305: as written it allows for higher 2.x versions (e.g. 2.2) as well as downgrades to earlier versions of the connector (e.g. 2.1.7) that were not used during development or tested. ### Relevant implementation details When using `~=` with semantic versioning, the complete minimum version needs to be specified. ### Linked issues Noticed when reviewing #2466, which downgrades `redshift-connector` to escape a version constraint on `lxml`. Coincidentally includes #2464.
1 parent 0f96b23 commit 40969c2

3 files changed

Lines changed: 393 additions & 404 deletions

File tree

.build-constraints.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ tomli==2.4.1 ; python_full_version < '3.11' \
6262
--hash=sha256:ff18e6a727ee0ab0388507b89d1bc6a22b138d1e2fa56d1ad494586d61d2eae9 \
6363
--hash=sha256:ff2983983d34813c1aeb0fa89091e76c3a22889ee83ab27c5eeb45100560c049
6464
# via hatchling
65-
trove-classifiers==2026.5.7.17 \
66-
--hash=sha256:5ec0800de5e2ddbd7c663cb4c0c15328f132dc168813897c18866c5c7b93db33 \
67-
--hash=sha256:a04a48f8f0a787cb996514d3969ac7608aa3c60cb15d073c1e02801e60533e80
65+
trove-classifiers==2026.5.22.10 \
66+
--hash=sha256:01fe864225726e03efb843827ecabfe319fc4dee8dd66d65b8996cb09be46e2c \
67+
--hash=sha256:5477e9974e91904fb2cfa4a7581ab6e2f30c2c38d847fd00ed866080748101d5
6868
# via hatchling

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies = [
4545
"databricks-switch-plugin~=0.1.7", # Temporary, until Switch is migrated to be a transpiler (LSP) plugin.
4646
"requests>=2.28.1,<3", # Matches databricks-sdk (and 'types-requests' below), to avoid conflicts.
4747
"pandas~=2.3.1", # Required for new configure assessment
48-
"redshift-connector~=2.1",
48+
"redshift-connector~=2.1.13",
4949
"snowflake-connector-python>=4.5.0",
5050
"snowflake-sqlalchemy>=1.9.0",
5151
]

0 commit comments

Comments
 (0)