Skip to content

Commit 672bd29

Browse files
authored
Merge pull request #244 from f-aguzzi/main
chore(package manager)!: move from poetry to rye
2 parents 78d1940 + 8fc2510 commit 672bd29

File tree

7 files changed

+659
-3395
lines changed

7 files changed

+659
-3395
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ jobs:
1414
run: |
1515
sudo apt update
1616
sudo apt install -y git
17-
- name: Install Python Env and Poetry
18-
uses: actions/setup-python@v5
19-
with:
20-
python-version: '3.9'
21-
- run: pip install poetry
17+
- name: Install the latest version of rye
18+
uses: eifinger/setup-rye@v3
2219
- name: Install Node Env
2320
uses: actions/setup-node@v4
2421
with:
@@ -30,8 +27,8 @@ jobs:
3027
persist-credentials: false
3128
- name: Build app
3229
run: |
33-
poetry install
34-
poetry build
30+
rye sync --no-lock
31+
rye build
3532
id: build_cache
3633
if: success()
3734
- name: Cache build

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9.19

manual deployment/deploy_on_pip.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
#!/bin/bash
22
cd ..
33

4-
poetry update
4+
rye self update
55
# Install dependencies using Poetry
6-
poetry install
7-
8-
# Check for any potential issues in the project
9-
poetry check
6+
rye sync
107

118
# Build the project
12-
poetry build
9+
rye build
1310

1411
# Publish the project to PyPI
15-
poetry publish
12+
rye publish

poetry.lock

Lines changed: 0 additions & 3347 deletions
This file was deleted.

pyproject.toml

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,37 @@
1-
[tool.poetry]
1+
[project]
22
name = "scrapegraphai"
33

44
version = "0.11.1"
55

66
description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."
77
authors = [
8-
"Marco Vinciguerra <[email protected]>",
9-
"Marco Perini <[email protected]>",
10-
"Lorenzo Padoan <[email protected]>",
8+
{ name = "Marco Vinciguerra", email = "[email protected]" },
9+
{ name = "Marco Perini", email = "[email protected]" },
10+
{ name = "Lorenzo Padoan", email = "[email protected]" }
1111
]
12+
dependencies = [
13+
# python = ">=3.9, <3.12"
14+
"langchain==0.1.15",
15+
"langchain-openai==0.1.6",
16+
"langchain-google-genai==1.0.3",
17+
"langchain-groq==0.1.3",
18+
"langchain-aws==0.1.3",
19+
"langchain-anthropic==0.1.11",
20+
"html2text==2024.2.26",
21+
"faiss-cpu==1.8.0",
22+
"beautifulsoup4==4.12.3",
23+
"pandas==2.2.2",
24+
"python-dotenv==1.0.1",
25+
"tiktoken==0.6.0",
26+
"tqdm==4.66.4",
27+
"graphviz==0.20.3",
28+
"minify-html==0.15.0",
29+
"free-proxy==1.1.1",
30+
"playwright==1.43.0",
31+
"google==3.0.0",
32+
"yahoo-search-py==0.3",
33+
]
34+
1235
license = "MIT"
1336
readme = "README.md"
1437
homepage = "https://scrapegraph-ai.readthedocs.io/"
@@ -39,40 +62,22 @@ classifiers = [
3962
"Programming Language :: Python :: 3",
4063
"Operating System :: OS Independent",
4164
]
65+
requires-python = ">= 3.9"
4266

43-
[tool.poetry.dependencies]
44-
python = ">=3.9, <3.12"
45-
langchain = "0.1.15"
46-
langchain-openai = "0.1.6"
47-
langchain-google-genai = "1.0.3"
48-
langchain-groq = "0.1.3"
49-
langchain-aws = "0.1.3"
50-
langchain-anthropic = "0.1.11"
51-
html2text = "2024.2.26"
52-
faiss-cpu = "1.8.0"
53-
beautifulsoup4 = "4.12.3"
54-
pandas = "2.2.2"
55-
python-dotenv = "1.0.1"
56-
tiktoken = "0.6.0"
57-
tqdm = "4.66.4"
58-
graphviz = "0.20.3"
59-
minify-html = "0.15.0"
60-
free-proxy = "1.1.1"
61-
playwright = "1.43.0"
62-
google = "3.0.0"
63-
yahoo-search-py = "0.3"
67+
[build-system]
68+
requires = ["hatchling"]
69+
build-backend = "hatchling.build"
6470

65-
[tool.poetry.dev-dependencies]
66-
pytest = "8.0.0"
67-
pytest-mock = "3.14.0"
71+
[tool.rye]
72+
managed = true
73+
dev-dependencies = [
74+
"pytest==8.0.0",
75+
"pytest-mock==3.14.0"
76+
]
6877

69-
[tool.poetry.group.docs]
78+
[tool.rye.group.docs]
7079
optional = true
7180

72-
[tool.poetry.group.docs.dependencies]
81+
[tool.rye.group.docs.dependencies]
7382
sphinx = "7.1.2"
7483
sphinx-rtd-theme = "2.0.0"
75-
76-
[build-system]
77-
requires = ["poetry-core>=1.0.0"]
78-
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)