Skip to content

Commit da8e5f2

Browse files
committed
fix: Keep lakehouse pinned to 3.13 due to dbt dependencies
1 parent a6e4641 commit da8e5f2

File tree

6 files changed

+551
-649
lines changed

6 files changed

+551
-649
lines changed

dg_projects/lakehouse/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Based on: https://github.com/astral-sh/uv-docker-example/blob/main/multistage.Dockerfile
22

33
# First, build the application in the `/app` directory.
4-
FROM ghcr.io/astral-sh/uv:python3.14-bookworm-slim AS builder
4+
# Using Python 3.13 due to dbt-core 1.11 mashumaro constraint incompatibility with Python 3.14
5+
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim AS builder
56
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
67

78
# Disable Python downloads, because we want to use the system interpreter
@@ -42,7 +43,8 @@ RUN /app/dg_projects/lakehouse/.venv/bin/dbt deps && \
4243
/app/dg_projects/lakehouse/.venv/bin/dbt compile --target dev
4344

4445
# Then, use a final image without uv
45-
FROM python:3.14-slim-bookworm
46+
# Using Python 3.13 to match builder image
47+
FROM python:3.13-slim-bookworm
4648
# It is important to use the image that matches the builder, as the path to the
4749
# Python executable must be the same.
4850

dg_projects/lakehouse/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[project]
22
name = "lakehouse"
3-
requires-python = ">=3.14,<3.15"
3+
requires-python = ">=3.13,<3.14"
44
version = "0.1.0"
55
dependencies = [
66
"dagster>=1.12.10",
77
"dagster-airbyte ~=0.28.0",
88
"dagster-dbt ~=0.28.0",
99
"dagster-k8s>=0.27.15",
1010
"dagster-postgres>=0.27.13",
11-
"dbt-duckdb ~=1.10.0",
12-
"dbt-trino ~=1.10.0",
11+
"dbt-duckdb >=1.10.0",
12+
"dbt-trino >=1.10.0",
1313
"httpx ~= 0.28.0",
1414
"ol-orchestrate-lib",
1515
"pygithub>=2.8.1",

0 commit comments

Comments
 (0)