Skip to content

Commit 5bf5399

Browse files
committed
Downgrade spacy so no need to build wheels from scratch for arm64, that takes too long
1 parent 475c4e8 commit 5bf5399

File tree

4 files changed

+67
-39
lines changed

4 files changed

+67
-39
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM python:3.11-slim
22

3-
RUN apt-get update && apt-get install -y gcc g++ make
4-
53
RUN pip install poetry==1.8.2
64

75
WORKDIR /usr/src/app
86

7+
RUN pip install --target . awslambdaric
8+
99
COPY pyproject.toml poetry.lock poetry.toml .
1010
COPY langevals_core/ langevals_core/
1111
COPY evaluators/langevals evaluators/langevals

evaluators/presidio/poetry.lock

Lines changed: 32 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evaluators/presidio/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ python = "^3.11"
1010
langevals-core = { path = "../../langevals_core", develop = true }
1111
presidio-analyzer = "^2.2.355"
1212
presidio-anonymizer = "^2.2.355"
13+
spacy = "3.7.5"
1314

1415
[tool.poetry.group.test.dependencies]
1516
pytest = "^7.4.2"

poetry.lock

Lines changed: 32 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)