Skip to content

Commit ecf56e8

Browse files
authored
[stable31] fix: narrow down pip's package search and other ci fixes (#238)
Backport of PR #236 - fix: narrow down pip's package search - chore: bump runner ubuntu to 24.04 - fix(ci): use the cpu version of torch to not run out of space - fix(ci): fix langchain package versions - fix(ci): use the cpu version of torch in static analysis
2 parents d40ccf7 + a358fda commit ecf56e8

File tree

3 files changed

+44
-36
lines changed

3 files changed

+44
-36
lines changed

.github/workflows/integration-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- '.github/workflows/integration-test.yml'
5353
5454
integration:
55-
runs-on: ubuntu-22.04
55+
runs-on: ubuntu-24.04
5656

5757
needs: changes
5858
if: needs.changes.outputs.src != 'false'
@@ -179,6 +179,9 @@ jobs:
179179
run: |
180180
cd context_chat_backend
181181
pip install --upgrade pip setuptools wheel
182+
# use the cpu version of torch to not run out of space
183+
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
184+
sed -i '/torch(vision)?/d' requirements.txt
182185
pip install -r requirements.txt
183186
cp example.env .env
184187
echo "NEXTCLOUD_URL=http://localhost:8080" >> .env

.github/workflows/static-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ jobs:
7272
- name: Install dependencies
7373
run: |
7474
pip install --upgrade pip setuptools wheel
75+
# use the cpu version of torch to not run out of space
76+
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
77+
sed -i '/torch(vision)?/d' requirements.txt
7578
pip install -r requirements_dev.txt
7679
7780
- name: Static analysis with pyright

requirements.txt

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
1-
apscheduler
2-
chromadb
3-
cryptography
4-
ctransformers
5-
epub2txt
6-
fastapi
7-
httpx
8-
langchain
9-
langchain-community
10-
langchain-postgres
11-
langchain-unstructured
12-
llama_cpp_python
13-
msg-parser
1+
apscheduler>=3.11.1
2+
chromadb>=1.3.5
3+
cryptography>=46.0.3
4+
ctransformers>=0.2.27
5+
docx2txt>=0.9
6+
epub2txt>=0.1.6
7+
fastapi>=0.122.0
8+
httpx>=0.28.1
9+
# fix the langchain package versions to avoid long computation in pip dep resolution
10+
# langchain is stuck at <1.0.0 due to langhchain-unstructured not being updated yet
11+
langchain==0.3.27
12+
langchain-community==0.3.21
13+
langchain-postgres==0.0.16
14+
langchain-unstructured==0.1.6
15+
llama_cpp_python>=0.3.16
16+
msg-parser>=1.2.0
1417
# fix it to the version before niquests
1518
nc_py_api==0.20.2
16-
odfdo
17-
odfpy
18-
openpyxl
19-
pandas
20-
psutil
21-
pypdf
22-
docx2txt
23-
protobuf==3.20.0
24-
python-dotenv
25-
python-multipart
26-
python-pptx
27-
ruamel.yaml
28-
sentence-transformers
29-
setuptools
30-
sse_starlette
31-
starlette_context
32-
striprtf
33-
torch
34-
torchvision
35-
transformers
19+
odfdo>=3.17.6
20+
odfpy>=1.4.1
21+
openpyxl>=3.1.5
22+
pandas>=2.3.3
23+
psutil>=7.1.3
24+
pypdf>=6.4.0
25+
protobuf>=6.33.1
26+
python-dotenv>=1.2.1
27+
python-multipart>=0.0.20
28+
python-pptx>=1.0.2
29+
ruamel.yaml>=0.18.16
30+
sentence-transformers>=5.1.2
31+
setuptools>=80.9.0
32+
sse_starlette>=3.0.3
33+
starlette_context>=0.4.0
34+
striprtf>=0.0.29
35+
torch>=2.9.1
36+
torchvision>=0.24.1
37+
transformers>=4.57.3
3638
unstructured @ git+https://github.com/kyteinsky/unstructured@68394f64e8fcf800945327eb246369ab31d95eca
37-
wheel
38-
xlrd
39+
wheel>=0.45.1
40+
xlrd>=2.0.2

0 commit comments

Comments
 (0)