fix(deps): pin greenlet<3.4.0 — missing arm64 wheels in 3.4.0
This commit is contained in:
parent
e82bc56580
commit
c5091d29cd
3 changed files with 1 additions and 6 deletions
|
|
@ -44,20 +44,17 @@ RUN apt-get update && apt-get install -y \
|
||||||
# Copy dependency files and README (required by pyproject.toml)
|
# Copy dependency files and README (required by pyproject.toml)
|
||||||
COPY hindsight-api-slim/pyproject.toml ./api/
|
COPY hindsight-api-slim/pyproject.toml ./api/
|
||||||
COPY hindsight-api-slim/README.md ./api/
|
COPY hindsight-api-slim/README.md ./api/
|
||||||
COPY docker/standalone/constraints.txt /tmp/constraints.txt
|
|
||||||
|
|
||||||
WORKDIR /app/api
|
WORKDIR /app/api
|
||||||
|
|
||||||
# Sync dependencies using appropriate extras based on INCLUDE_LOCAL_MODELS
|
# Sync dependencies using appropriate extras based on INCLUDE_LOCAL_MODELS
|
||||||
# local-ml: torch, sentence-transformers, transformers, einops, flashrank, mlx (optional)
|
# local-ml: torch, sentence-transformers, transformers, einops, flashrank, mlx (optional)
|
||||||
# embedded-db: pg0-embedded (always included for embedded PostgreSQL support)
|
# embedded-db: pg0-embedded (always included for embedded PostgreSQL support)
|
||||||
ENV UV_CONSTRAINT=/tmp/constraints.txt
|
|
||||||
RUN if [ "$INCLUDE_LOCAL_MODELS" = "true" ]; then \
|
RUN if [ "$INCLUDE_LOCAL_MODELS" = "true" ]; then \
|
||||||
uv sync --extra local-ml --extra embedded-db; \
|
uv sync --extra local-ml --extra embedded-db; \
|
||||||
else \
|
else \
|
||||||
uv sync --extra embedded-db; \
|
uv sync --extra embedded-db; \
|
||||||
fi
|
fi
|
||||||
ENV UV_CONSTRAINT=
|
|
||||||
|
|
||||||
# Copy source code (alembic migrations are inside hindsight_api/)
|
# Copy source code (alembic migrations are inside hindsight_api/)
|
||||||
COPY hindsight-api-slim/hindsight_api ./hindsight_api
|
COPY hindsight-api-slim/hindsight_api ./hindsight_api
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -21,7 +21,7 @@ dependencies = [
|
||||||
"sqlalchemy>=2.0.44",
|
"sqlalchemy>=2.0.44",
|
||||||
"alembic>=1.17.1",
|
"alembic>=1.17.1",
|
||||||
"pgvector>=0.4.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",
|
"psycopg2-binary>=2.9.11",
|
||||||
"tiktoken>=0.12.0",
|
"tiktoken>=0.12.0",
|
||||||
"httpx>=0.27.0",
|
"httpx>=0.27.0",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue