Skip to content

Commit 58ca0f5

Browse files
authored
Merge pull request #833 from ScrapeGraphAI/776-migrate-to-uv
chore: migrate from rye to uv
2 parents 0769fce + 5fe528a commit 58ca0f5

File tree

6 files changed

+5082
-975
lines changed

6 files changed

+5082
-975
lines changed

.github/workflows/pylint.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- name: Install the latest version of rye
13-
uses: eifinger/setup-rye@v3
12+
- name: Install uv
13+
uses: astral-sh/setup-uv@v3
1414
- name: Install dependencies
15-
run: rye sync --no-lock
15+
run: uv sync --frozen
1616
- name: Analysing the code with pylint
17-
run: rye run pylint-ci
17+
run: uv run poe pylint-ci
1818
- name: Check Pylint score
1919
run: |
20-
pylint_score=$(rye run pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
20+
pylint_score=$(uv run poe pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
2121
if (( $(echo "$pylint_score < 8" | bc -l) )); then
2222
echo "Pylint score is below 8. Blocking commit."
2323
exit 1

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
run: |
1515
sudo apt update
1616
sudo apt install -y git
17-
- name: Install the latest version of rye
18-
uses: eifinger/setup-rye@v3
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v3
1919
- name: Install Node Env
2020
uses: actions/setup-node@v4
2121
with:
@@ -27,8 +27,8 @@ jobs:
2727
persist-credentials: false
2828
- name: Build app
2929
run: |
30-
rye sync --no-lock
31-
rye build
30+
uv sync --frozen
31+
uv build
3232
id: build_cache
3333
if: success()
3434
- name: Cache build

pyproject.toml

+12-8
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ other-language-models = [
9191
"langchain-anthropic>=0.1.11",
9292
"langchain-huggingface>=0.0.3",
9393
"langchain-nvidia-ai-endpoints>=0.1.6",
94-
"langchain_together>=1.2.9"
94+
"langchain_together>=0.2.0"
9595
]
9696

9797
# Group 2: More Semantic Options
@@ -116,17 +116,21 @@ screenshot_scraper = [
116116
requires = ["hatchling"]
117117
build-backend = "hatchling.build"
118118

119-
[tool.rye]
120-
managed = true
119+
[dependency-groups]
120+
dev = [
121+
"burr[start]==0.22.1",
122+
"sphinx==6.0",
123+
"furo==2024.5.6",
124+
]
125+
126+
[tool.uv]
121127
dev-dependencies = [
128+
"poethepoet>=0.31.1",
122129
"pytest==8.0.0",
123130
"pytest-mock==3.14.0",
124-
"-e file:.[burr]",
125-
"-e file:.[docs]",
126131
"pylint>=3.2.5",
127132
]
128133

129-
[tool.rye.scripts]
130-
pylint-local = "pylint scrapegraphai/**/*.py"
134+
[tool.poe.tasks]
135+
pylint-local = "pylint scraperaphai/**/*.py"
131136
pylint-ci = "pylint --disable=C0114,C0115,C0116 --exit-zero scrapegraphai/**/*.py"
132-
update-requirements = "python 'manual deployment/autorequirements.py'"

0 commit comments

Comments
 (0)