Skip to content

Commit 1b8dec0

Browse files
Fix Docker build: switch to uv and tighten dbt adapter lower bounds to >=1.8 (#2157)
* Switch Docker build to uv and tighten dbt adapter lower bounds to >=1.8 - Replace pip with uv in Dockerfile to avoid pip's resolution-too-deep error - Bump dbt-core and all adapter lower bounds from >=0.20 to >=1.8 (pre-1.8 is EOL) Co-Authored-By: Itamar Hartstein <haritamar@gmail.com> * Remove dbt-fabricspark from all extra (broken upstream: no installable version >=1.8) Co-Authored-By: Itamar Hartstein <haritamar@gmail.com> * Pin uv version to 0.10.11 and merge into single RUN layer Co-Authored-By: Itamar Hartstein <haritamar@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Itamar Hartstein <haritamar@gmail.com>
1 parent 2f98ef7 commit 1b8dec0

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ RUN apt-get update \
1818
/var/tmp/*
1919

2020
COPY . /app
21-
RUN pip install --upgrade pip
22-
RUN pip install --no-cache-dir "/app[all]"
21+
ARG UV_VERSION=0.10.11
22+
RUN pip install --no-cache-dir "uv==${UV_VERSION}" \
23+
&& uv pip install --no-cache --system "/app[all]"
2324

2425
ENTRYPOINT ["edr"]

pyproject.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ packages = [{include = "elementary"}]
2525
[tool.poetry.dependencies]
2626
python = ">=3.10,<3.14"
2727
click = ">=7.0,<9.0"
28-
dbt-core = ">=0.20,<2.0.0"
28+
dbt-core = ">=1.8,<2.0.0"
2929
requests = ">=2.28.1,<3.0.0"
3030
beautifulsoup4 = "<5.0.0"
3131
ratelimit = "*"
@@ -45,21 +45,21 @@ tabulate = ">= 0.9.0"
4545
tenacity = ">=8.0,<10.0"
4646
pytz = ">= 2025.1"
4747

48-
dbt-snowflake = {version = ">=0.20,<2.0.0", optional = true}
49-
dbt-bigquery = {version = ">=0.20,<2.0.0", optional = true}
50-
dbt-redshift = {version = ">=0.20,<2.0.0", optional = true}
51-
dbt-postgres = {version = ">=0.20,<2.0.0", optional = true}
52-
dbt-databricks = {version = ">=0.20,<2.0.0", optional = true}
53-
dbt-spark = {version = ">=0.20,<2.0.0", optional = true}
54-
dbt-athena-community = {version = ">=1.6.3,<2.0.0", optional = true}
55-
dbt-trino = {version = ">=1.5.0,<2.0.0", optional = true}
56-
dbt-clickhouse = {version = ">=0.20,<2.0.0", optional = true}
57-
dbt-duckdb = {version = ">=1.5.0,<2.0.0", optional = true}
58-
dbt-dremio = {version = ">=1.5.0,<2.0.0", optional = true}
59-
dbt-fabric = {version = ">=1.4,<2.0.0", optional = true}
60-
dbt-fabricspark = {version = ">=1.4,<2.0.0", optional = true}
61-
dbt-sqlserver = {version = ">=1.4,<2.0.0", optional = true}
62-
dbt-vertica = {version = ">=1.7,<2.0.0", optional = true}
48+
dbt-snowflake = {version = ">=1.8,<2.0.0", optional = true}
49+
dbt-bigquery = {version = ">=1.8,<2.0.0", optional = true}
50+
dbt-redshift = {version = ">=1.8,<2.0.0", optional = true}
51+
dbt-postgres = {version = ">=1.8,<2.0.0", optional = true}
52+
dbt-databricks = {version = ">=1.8,<2.0.0", optional = true}
53+
dbt-spark = {version = ">=1.8,<2.0.0", optional = true}
54+
dbt-athena-community = {version = ">=1.8,<2.0.0", optional = true}
55+
dbt-trino = {version = ">=1.8,<2.0.0", optional = true}
56+
dbt-clickhouse = {version = ">=1.8,<2.0.0", optional = true}
57+
dbt-duckdb = {version = ">=1.8,<2.0.0", optional = true}
58+
dbt-dremio = {version = ">=1.8,<2.0.0", optional = true}
59+
dbt-fabric = {version = ">=1.8,<2.0.0", optional = true}
60+
dbt-fabricspark = {version = ">=1.8,<2.0.0", optional = true}
61+
dbt-sqlserver = {version = ">=1.8,<2.0.0", optional = true}
62+
dbt-vertica = {version = ">=1.8,<2.0.0", optional = true}
6363
[tool.poetry.extras]
6464
snowflake = ["dbt-snowflake"]
6565
bigquery = ["dbt-bigquery"]
@@ -76,7 +76,7 @@ fabric = ["dbt-fabric"]
7676
fabricspark = ["dbt-fabricspark"]
7777
sqlserver = ["dbt-sqlserver"]
7878
vertica = ["dbt-vertica"]
79-
all = ["dbt-snowflake", "dbt-bigquery", "dbt-redshift", "dbt-postgres", "dbt-databricks", "dbt-spark", "dbt-clickhouse", "dbt-athena-community", "dbt-trino", "dbt-duckdb", "dbt-dremio", "dbt-fabric", "dbt-fabricspark", "dbt-sqlserver", "dbt-vertica"]
79+
all = ["dbt-snowflake", "dbt-bigquery", "dbt-redshift", "dbt-postgres", "dbt-databricks", "dbt-spark", "dbt-clickhouse", "dbt-athena-community", "dbt-trino", "dbt-duckdb", "dbt-dremio", "dbt-fabric", "dbt-sqlserver", "dbt-vertica"]
8080

8181
[build-system]
8282
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)