Skip to content

Commit 74d142e

Browse files
committed
chore: upgrade dependencies and scripts
1 parent 09f983b commit 74d142e

File tree

6 files changed

+113
-120
lines changed

6 files changed

+113
-120
lines changed

manual deployment/autorequirements.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import toml
2+
3+
# Load the TOML file
4+
data = toml.load('pyproject.toml')
5+
6+
# Get the dependencies
7+
dependencies = data['project']['dependencies']
8+
9+
# Write the dependencies to a requirements.txt file
10+
with open('requirements.txt', 'w') as f:
11+
for dependency in dependencies:
12+
f.write(dependency + '\n')
13+
14+
# Get the dev dependencies
15+
dev_dependencies = data['tool']['rye']['dev-dependencies']
16+
17+
# Expand the optional dependencies
18+
optional_dependencies = data['project']['optional-dependencies']
19+
expanded_dev_dependencies = []
20+
for dependency in dev_dependencies:
21+
if dependency.startswith('-e file:.'):
22+
optional_dependency_name = dependency.split('.')[1][1:-1]
23+
expanded_dev_dependencies.extend(optional_dependencies[optional_dependency_name])
24+
else:
25+
expanded_dev_dependencies.append(dependency)
26+
27+
# Write the expanded dev dependencies to a requirements-dev.txt file
28+
with open('requirements-dev.txt', 'w') as f:
29+
for dependency in expanded_dev_dependencies:
30+
f.write(dependency + '\n')

pyproject.toml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,29 @@ authors = [
1313
{ name = "Lorenzo Padoan", email = "[email protected]" }
1414
]
1515
dependencies = [
16-
"langchain",
17-
"langchain-google-genai",
16+
"langchain>=0.2.10",
17+
"langchain-google-genai>=1.0.7",
1818
"langchain-google-vertexai",
19-
"langchain-openai",
20-
"langchain-groq==0.1.3",
21-
"langchain-aws==0.1.3",
22-
"langchain-anthropic==0.1.11",
23-
"html2text==2024.2.26",
24-
"faiss-cpu==1.8.0",
25-
"beautifulsoup4==4.12.3",
26-
"pandas==2.2.2",
27-
"python-dotenv==1.0.1",
28-
"tiktoken==0.7",
29-
"tqdm==4.66.4",
30-
"graphviz==0.20.3",
31-
"minify-html==0.15.0",
32-
"free-proxy==1.1.1",
33-
"playwright==1.43.0",
34-
"google==3.0.0",
35-
"undetected-playwright==0.3.0",
36-
"semchunk==1.0.1",
37-
"html2text==2024.2.26",
38-
"langchain-fireworks==0.1.3"
19+
"langchain-openai>=0.1.17",
20+
"langchain-groq>=0.1.3",
21+
"langchain-aws>=0.1.3",
22+
"langchain-anthropic>=0.1.11",
23+
"html2text>=2024.2.26",
24+
"faiss-cpu>=1.8.0",
25+
"beautifulsoup4>=4.12.3",
26+
"pandas>=2.2.2",
27+
"python-dotenv>=1.0.1",
28+
"tiktoken>=0.7",
29+
"tqdm>=4.66.4",
30+
"graphviz>=0.20.3",
31+
"minify-html>=0.15.0",
32+
"free-proxy>=1.1.1",
33+
"playwright>=1.43.0",
34+
"google>=3.0.0",
35+
"undetected-playwright>=0.3.0",
36+
"semchunk>=1.0.1",
37+
"html2text>=2024.2.26",
38+
"langchain-fireworks>=0.1.3",
3939
]
4040

4141
license = "MIT"
@@ -91,3 +91,4 @@ dev-dependencies = [
9191
[tool.rye.scripts]
9292
pylint-local = "pylint scrapegraphai/**/*.py"
9393
pylint-ci = "pylint --disable=C0114,C0115,C0116 --exit-zero scrapegraphai/**/*.py"
94+
update-requirements = "python 'manual deployment/autorequirements.py'"

requirements-dev.lock

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ aiofiles==23.2.1
1212
# via burr
1313
aiohttp==3.9.5
1414
# via langchain
15-
# via langchain-community
1615
# via langchain-fireworks
1716
aiosignal==1.3.1
1817
# via aiohttp
@@ -22,7 +21,7 @@ altair==5.3.0
2221
# via streamlit
2322
annotated-types==0.7.0
2423
# via pydantic
25-
anthropic==0.26.1
24+
anthropic==0.31.2
2625
# via langchain-anthropic
2726
anyio==4.3.0
2827
# via anthropic
@@ -48,9 +47,9 @@ beautifulsoup4==4.12.3
4847
# via scrapegraphai
4948
blinker==1.8.2
5049
# via streamlit
51-
boto3==1.34.113
50+
boto3==1.34.145
5251
# via langchain-aws
53-
botocore==1.34.113
52+
botocore==1.34.145
5453
# via boto3
5554
# via s3transfer
5655
burr==0.22.1
@@ -73,9 +72,6 @@ contourpy==1.2.1
7372
# via matplotlib
7473
cycler==0.12.1
7574
# via matplotlib
76-
dataclasses-json==0.6.6
77-
# via langchain
78-
# via langchain-community
7975
defusedxml==0.7.1
8076
# via langchain-anthropic
8177
dill==0.3.8
@@ -125,7 +121,7 @@ gitpython==3.1.43
125121
# via streamlit
126122
google==3.0.0
127123
# via scrapegraphai
128-
google-ai-generativelanguage==0.6.4
124+
google-ai-generativelanguage==0.6.6
129125
# via google-generativeai
130126
google-api-core==2.19.0
131127
# via google-ai-generativelanguage
@@ -166,7 +162,7 @@ google-cloud-storage==2.17.0
166162
google-crc32c==1.5.0
167163
# via google-cloud-storage
168164
# via google-resumable-media
169-
google-generativeai==0.5.4
165+
google-generativeai==0.7.2
170166
# via langchain-google-genai
171167
google-resumable-media==2.7.1
172168
# via google-cloud-bigquery
@@ -180,6 +176,7 @@ graphviz==0.20.3
180176
# via scrapegraphai
181177
greenlet==3.0.3
182178
# via playwright
179+
# via sqlalchemy
183180
groq==0.8.0
184181
# via langchain-groq
185182
grpc-google-iam-v1==0.13.1
@@ -241,7 +238,6 @@ jmespath==1.0.1
241238
# via boto3
242239
# via botocore
243240
jsonpatch==1.33
244-
# via langchain
245241
# via langchain-core
246242
jsonpointer==2.4
247243
# via jsonpatch
@@ -251,19 +247,16 @@ jsonschema-specifications==2023.12.1
251247
# via jsonschema
252248
kiwisolver==1.4.5
253249
# via matplotlib
254-
langchain==0.1.15
250+
langchain==0.2.10
255251
# via scrapegraphai
256-
langchain-anthropic==0.1.11
252+
langchain-anthropic==0.1.20
257253
# via scrapegraphai
258-
langchain-aws==0.1.3
254+
langchain-aws==0.1.11
259255
# via scrapegraphai
260-
langchain-community==0.0.38
261-
# via langchain
262-
langchain-core==0.1.52
256+
langchain-core==0.2.22
263257
# via langchain
264258
# via langchain-anthropic
265259
# via langchain-aws
266-
# via langchain-community
267260
# via langchain-fireworks
268261
# via langchain-google-genai
269262
# via langchain-google-vertexai
@@ -272,19 +265,18 @@ langchain-core==0.1.52
272265
# via langchain-text-splitters
273266
langchain-fireworks==0.1.3
274267
# via scrapegraphai
275-
langchain-google-genai==1.0.3
268+
langchain-google-genai==1.0.7
276269
# via scrapegraphai
277270
langchain-google-vertexai==1.0.4
278271
# via scrapegraphai
279-
langchain-groq==0.1.3
272+
langchain-groq==0.1.6
280273
# via scrapegraphai
281-
langchain-openai==0.1.6
274+
langchain-openai==0.1.17
282275
# via scrapegraphai
283-
langchain-text-splitters==0.0.2
276+
langchain-text-splitters==0.2.2
284277
# via langchain
285-
langsmith==0.1.63
278+
langsmith==0.1.93
286279
# via langchain
287-
# via langchain-community
288280
# via langchain-core
289281
loguru==0.7.2
290282
# via burr
@@ -294,8 +286,6 @@ markdown-it-py==3.0.0
294286
# via rich
295287
markupsafe==2.1.5
296288
# via jinja2
297-
marshmallow==3.21.2
298-
# via dataclasses-json
299289
matplotlib==3.9.0
300290
# via burr
301291
mccabe==0.7.0
@@ -315,15 +305,14 @@ numpy==1.26.4
315305
# via faiss-cpu
316306
# via langchain
317307
# via langchain-aws
318-
# via langchain-community
319308
# via matplotlib
320309
# via pandas
321310
# via pyarrow
322311
# via pydeck
323312
# via sf-hamilton
324313
# via shapely
325314
# via streamlit
326-
openai==1.30.3
315+
openai==1.37.0
327316
# via burr
328317
# via langchain-fireworks
329318
# via langchain-openai
@@ -336,7 +325,6 @@ packaging==23.2
336325
# via google-cloud-bigquery
337326
# via huggingface-hub
338327
# via langchain-core
339-
# via marshmallow
340328
# via matplotlib
341329
# via pytest
342330
# via sphinx
@@ -425,7 +413,6 @@ pytz==2024.1
425413
pyyaml==6.0.1
426414
# via huggingface-hub
427415
# via langchain
428-
# via langchain-community
429416
# via langchain-core
430417
# via uvicorn
431418
referencing==0.35.1
@@ -441,7 +428,6 @@ requests==2.32.2
441428
# via google-cloud-storage
442429
# via huggingface-hub
443430
# via langchain
444-
# via langchain-community
445431
# via langchain-fireworks
446432
# via langsmith
447433
# via sphinx
@@ -499,14 +485,12 @@ sphinxcontrib-serializinghtml==1.1.10
499485
# via sphinx
500486
sqlalchemy==2.0.30
501487
# via langchain
502-
# via langchain-community
503488
starlette==0.37.2
504489
# via fastapi
505490
streamlit==1.35.0
506491
# via burr
507492
tenacity==8.3.0
508493
# via langchain
509-
# via langchain-community
510494
# via langchain-core
511495
# via streamlit
512496
tiktoken==0.7.0
@@ -556,7 +540,6 @@ typing-extensions==4.12.0
556540
# via typing-inspect
557541
# via uvicorn
558542
typing-inspect==0.9.0
559-
# via dataclasses-json
560543
# via sf-hamilton
561544
tzdata==2024.1
562545
# via pandas

requirements-dev.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
sphinx==7.1.2
2-
furo==2024.5.6
31
pytest==8.0.0
4-
burr[start]==0.22.1
2+
pytest-mock==3.14.0
3+
burr[start]==0.22.1
4+
sphinx==6.0
5+
furo==2024.5.6
6+
pylint>=3.2.5

0 commit comments

Comments
 (0)