From c5091d29cd2aab0f7b02a3d2c9655dab0a827579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Wed, 8 Apr 2026 18:43:42 +0200 Subject: [PATCH] =?UTF-8?q?fix(deps):=20pin=20greenlet<3.4.0=20=E2=80=94?= =?UTF-8?q?=20missing=20arm64=20wheels=20in=203.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/standalone/Dockerfile | 3 --- docker/standalone/constraints.txt | 2 -- hindsight-api-slim/pyproject.toml | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 docker/standalone/constraints.txt diff --git a/docker/standalone/Dockerfile b/docker/standalone/Dockerfile index 362d8b72..71a27a4a 100644 --- a/docker/standalone/Dockerfile +++ b/docker/standalone/Dockerfile @@ -44,20 +44,17 @@ RUN apt-get update && apt-get install -y \ # Copy dependency files and README (required by pyproject.toml) COPY hindsight-api-slim/pyproject.toml ./api/ COPY hindsight-api-slim/README.md ./api/ -COPY docker/standalone/constraints.txt /tmp/constraints.txt WORKDIR /app/api # Sync dependencies using appropriate extras based on INCLUDE_LOCAL_MODELS # local-ml: torch, sentence-transformers, transformers, einops, flashrank, mlx (optional) # embedded-db: pg0-embedded (always included for embedded PostgreSQL support) -ENV UV_CONSTRAINT=/tmp/constraints.txt RUN if [ "$INCLUDE_LOCAL_MODELS" = "true" ]; then \ uv sync --extra local-ml --extra embedded-db; \ else \ uv sync --extra embedded-db; \ fi -ENV UV_CONSTRAINT= # Copy source code (alembic migrations are inside hindsight_api/) COPY hindsight-api-slim/hindsight_api ./hindsight_api diff --git a/docker/standalone/constraints.txt b/docker/standalone/constraints.txt deleted file mode 100644 index f34de675..00000000 --- a/docker/standalone/constraints.txt +++ /dev/null @@ -1,2 +0,0 @@ -# greenlet 3.4.0 lacks arm64 wheels for manylinux_2_41 — remove this cap once 3.4.1+ ships with them -greenlet<3.4.0 diff --git a/hindsight-api-slim/pyproject.toml b/hindsight-api-slim/pyproject.toml index 6dbfc639..c8890657 100644 --- a/hindsight-api-slim/pyproject.toml +++ b/hindsight-api-slim/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ "sqlalchemy>=2.0.44", "alembic>=1.17.1", "pgvector>=0.4.1", - "greenlet>=3.2.4", + "greenlet>=3.2.4,<3.4.0", # 3.4.0 lacks arm64 wheels for manylinux_2_41 "psycopg2-binary>=2.9.11", "tiktoken>=0.12.0", "httpx>=0.27.0",