Skip to content

Commit b6db205

Browse files
committed
chore: fix semantic release, migrate to uv
1 parent 731a11a commit b6db205

File tree

7 files changed

+768
-156
lines changed

7 files changed

+768
-156
lines changed

.github/workflows/pylint.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ 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: |
2020
cd scrapegraph-py
21-
pylint_score=$(rye run pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
21+
pylint_score=$(uv run poe pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
2222
if (( $(echo "$pylint_score < 8" | bc -l) )); then
2323
echo "Pylint score is below 8. Blocking commit."
2424
exit 1

.github/workflows/release.yml

+7-11
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:
@@ -28,8 +28,8 @@ jobs:
2828
- name: Build app
2929
run: |
3030
cd scrapegraph-py
31-
rye sync --no-lock
32-
rye build
31+
uv sync --frozen
32+
uv build
3333
id: build_cache
3434
if: success()
3535
- name: Cache build
@@ -60,16 +60,12 @@ jobs:
6060
with:
6161
fetch-depth: 0
6262
persist-credentials: false
63-
- name: Go to scrapegraph-py folder
64-
run: |
65-
ls
66-
cd ./scrapegraph-py
67-
- name: Install the latest version of rye
68-
uses: eifinger/setup-rye@v3
63+
- name: Install uv
64+
uses: astral-sh/setup-uv@v3
6965
- name: Setup Python environment
7066
run: |
7167
cd ./scrapegraph-py
72-
rye sync
68+
uv sync
7369
- name: Restore build artifacts
7470
uses: actions/cache@v2
7571
with:
File renamed without changes.

scrapegraph-py/pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ docs = ["sphinx==6.0", "furo==2024.5.6"]
4949
requires = ["hatchling"]
5050
build-backend = "hatchling.build"
5151

52-
[tool.rye]
52+
[tool.uv]
5353
managed = true
5454
dev-dependencies = [
5555
"pytest==8.0.0",
5656
"pytest-mock==3.14.0",
57-
"-e file:.[docs]",
5857
"pylint>=3.2.5",
5958
]

scrapegraph-py/requirements-dev.lock

-107
This file was deleted.

scrapegraph-py/requirements.lock

-31
This file was deleted.

0 commit comments

Comments
 (0)