Skip to content

Commit cb1e17e

Browse files
committed
adjusting spacy pin to 3.8.x series as a test
1 parent f46c400 commit cb1e17e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ WORKDIR /app
2626

2727
# Optimize pip and Python installations; install spaCy version matching requirements.txt
2828
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
29-
SPACY_VERSION=$(grep -E '^[sS]pacy==' requirements.txt | head -1 | cut -d'=' -f3) && \
29+
SPACY_VERSION=$(grep -E '^[sS]pacy(==|>=)' requirements.txt | head -1 | sed -E 's/^[sS]pacy(==|>=)//') \
3030
if [ -n "$SPACY_VERSION" ]; then \
3131
echo "Found spaCy version $SPACY_VERSION in requirements.txt"; \
3232
pip install --no-cache-dir --only-binary :all: spacy==$SPACY_VERSION || \

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pyyaml
1010
whitenoise
1111
daphne
1212
textblob
13-
spacy
13+
spacy>=3.8.2
1414
natsort
1515
django-environ
1616
statistics

0 commit comments

Comments
 (0)