Skip to content

Commit 72ff20d

Browse files
committed
Merge branch 'pre/beta' into 479-using-nemotron-from-nvidia
2 parents eb4c898 + 72f18d1 commit 72ff20d

File tree

8 files changed

+261
-209
lines changed

8 files changed

+261
-209
lines changed

.github/update-requirements.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update requirements
2+
on:
3+
push:
4+
paths:
5+
- 'pyproject.toml'
6+
- '.github/workflows/update-requirements.yml'
7+
8+
jobs:
9+
update:
10+
name: Update requirements
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Install the latest version of rye
14+
uses: eifinger/setup-rye@v3
15+
- name: Build app
16+
run: rye run update-requirements
17+
commit:
18+
name: Commit changes
19+
run: |
20+
git config --global user.name 'github-actions'
21+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
22+
git add .
23+
git commit -m "ci: update requirements.txt [skip ci]"
24+
git push
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## [1.10.0-beta.6](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.10.0-beta.5...v1.10.0-beta.6) (2024-07-22)
2+
3+
4+
### Features
5+
6+
* add new toml ([fcb3220](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/fcb3220868e7ef1127a7a47f40d0379be282e6eb))
7+
8+
9+
### chore
10+
11+
* **pyproject:** upgrade dependencies ([0425124](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/0425124c570f765b98fcf67ba6649f4f9fe76b15))
12+
13+
14+
### Docs
15+
16+
* **gpt-4o-mini:** added new gpt, fixed chromium lazy loading, ([99dc849](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/99dc8497d85289759286a973e4aecc3f924d3ada))
17+
118
## [1.10.0-beta.5](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.10.0-beta.4...v1.10.0-beta.5) (2024-07-20)
219

320

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: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "scrapegraphai"
33

44

5-
version = "1.10.0b5"
5+
version = "1.10.0b6"
66

77

88

@@ -13,30 +13,30 @@ 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",
19+
"langchain-openai>=0.1.17",
20+
"langchain-groq>=0.1.3",
21+
"langchain-aws>=0.1.3",
22+
"langchain-anthropic>=0.1.11",
2323
"langchain-nvidia-ai-endpoints==0.1.6",
24-
"html2text==2024.2.26",
25-
"faiss-cpu==1.8.0",
26-
"beautifulsoup4==4.12.3",
27-
"pandas==2.2.2",
28-
"python-dotenv==1.0.1",
29-
"tiktoken==0.7",
30-
"tqdm==4.66.4",
31-
"graphviz==0.20.3",
32-
"minify-html==0.15.0",
33-
"free-proxy==1.1.1",
34-
"playwright==1.43.0",
35-
"google==3.0.0",
36-
"undetected-playwright==0.3.0",
37-
"semchunk==1.0.1",
38-
"html2text==2024.2.26",
39-
"langchain-fireworks==0.1.3"
24+
"html2text>=2024.2.26",
25+
"faiss-cpu>=1.8.0",
26+
"beautifulsoup4>=4.12.3",
27+
"pandas>=2.2.2",
28+
"python-dotenv>=1.0.1",
29+
"tiktoken>=0.7",
30+
"tqdm>=4.66.4",
31+
"graphviz>=0.20.3",
32+
"minify-html>=0.15.0",
33+
"free-proxy>=1.1.1",
34+
"playwright>=1.43.0",
35+
"google>=3.0.0",
36+
"undetected-playwright>=0.3.0",
37+
"semchunk>=1.0.1",
38+
"html2text>=2024.2.26",
39+
"langchain-fireworks>=0.1.3",
4040
]
4141

4242
license = "MIT"
@@ -91,4 +91,5 @@ dev-dependencies = [
9191

9292
[tool.rye.scripts]
9393
pylint-local = "pylint scrapegraphai/**/*.py"
94-
pylint-ci = "pylint --disable=C0114,C0115,C0116 --exit-zero scrapegraphai/**/*.py"
94+
pylint-ci = "pylint --disable=C0114,C0115,C0116 --exit-zero scrapegraphai/**/*.py"
95+
update-requirements = "python 'manual deployment/autorequirements.py'"

0 commit comments

Comments
 (0)