Skip to content

Commit 92cbf24

Browse files
authored
Merge pull request #5 from ScrapeGraphAI/main
allignment
2 parents c253363 + bd64d46 commit 92cbf24

File tree

7 files changed

+897
-22
lines changed

7 files changed

+897
-22
lines changed

.github/workflows/pylint.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- name: Install the latest version of rye
13-
uses: eifinger/setup-rye@v3
11+
- uses: actions/checkout@v4
12+
- name: Install uv
13+
uses: astral-sh/setup-uv@v3
1414
- name: Install dependencies
15-
run: rye sync --no-lock
15+
run: |
16+
cd scrapegraph-py
17+
uv sync --frozen
1618
- name: Analysing the code with pylint
17-
run: rye run pylint-ci
19+
run: |
20+
cd scrapegraph-py
21+
uv run poe pylint-ci
1822
- name: Check Pylint score
1923
run: |
2024
cd scrapegraph-py
21-
pylint_score=$(rye run pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
25+
pylint_score=$(uv run poe pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
2226
if (( $(echo "$pylint_score < 8" | bc -l) )); then
2327
echo "Pylint score is below 8. Blocking commit."
2428
exit 1

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Set up Python
1818
uses: actions/setup-python@v5
1919
with:

.github/workflows/release.yml

Lines changed: 9 additions & 13 deletions
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,12 +28,12 @@ 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
36-
uses: actions/cache@v2
36+
uses: actions/cache@v4
3737
with:
3838
path: scrapegraph-py/dist
3939
key: ${{ runner.os }}-build-${{ hashFiles('scrapegraph-py/dist/**') }}
@@ -60,18 +60,14 @@ 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
74-
uses: actions/cache@v2
70+
uses: actions/cache@v4
7571
with:
7672
path: ./scrapegraph-py/dist
7773
key: ${{ runner.os }}-build-${{ hashFiles('./scrapegraph-py/dist/**') }}
File renamed without changes.

scrapegraph-py/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## [1.1.0](https://github.com/ScrapeGraphAI/scrapegraph-sdk/compare/v1.0.0...v1.1.0) (2024-11-28)
2+
3+
4+
### Features
5+
6+
* check ([9871ff8](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/9871ff81acfb42031ee9db526a7dba9e29d3c55b))
7+
* final release maybe semantic? ([8ce3ccd](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/8ce3ccd3509d0487da212f541e039ee7009dd8f3))
8+
* fix ([d81ab09](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/d81ab091aa1ff08927ed7765055764b9e51083ee))
9+
* maybe final release? ([595c3c6](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/595c3c6b6ca0e8eaacd5959422ab9018516f3fa8))
10+
* semantic relaase ([30ff13a](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/30ff13a219df982e07df7b5366f09dedc0892de5))
11+
* semantic release ([6df4b18](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/6df4b1833c8c418766b1649f80f9d6cd1fa8a201))
12+
* semantic release ([edd23d9](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/edd23d93375ef33fa97a0b409045fdbd18090d10))
13+
* semantic release ([e5e4908](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/e5e49080bc6d3d1440d6b333f9cadfd493ff0449))
14+
* test ([3bb66c4](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/3bb66c4efe3eb5407f6eb88d31bda678ac3651b3))
15+
* test semantic release ([63d3a36](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/63d3a3623363c358e5761e1b7737f262c8238c82))
16+
* test semantic release ([19eda59](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/19eda59be7adbea80ed189fd0af85ab0c3c930bd))
17+
* test semantic release ([3e611f2](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/3e611f21248a46120fa8ff3d30392522f6d1419a))
18+
* test semantic release ([6320819](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/6320819e12cbd3e0fa3faa93179d2d26f1323bb4))
19+
* try semantic release ([d953723](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/d9537230ef978aaf42d72073dc95ba598db8db6c))
20+
21+
22+
### chore
23+
24+
* added dotenv pakage dependency ([2e9d93d](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/2e9d93d571c47c3b7aa789be811f53161387b08e))
25+
* fix semantic release, migrate to uv ([b6db205](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/b6db205ad5a90031bc658e65794e4dda2159fee2))
26+
27+
28+
### Refactor
29+
30+
* code refactoring ([164131a](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/164131a2abe899bd151113bd84efa113306327c2))
31+
* renamed functions ([d39f14e](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/d39f14e344ef59e3a8e4f501a080ccbe1151abee))
32+
* update readme ([0669f52](https://github.com/ScrapeGraphAI/scrapegraph-sdk/commit/0669f5219970079bbe7bde7502b4f55e5c3f5a45))

scrapegraph-py/pyproject.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,15 @@ disallow_untyped_calls = true
7777
ignore_missing_imports = true
7878

7979
[build-system]
80-
requires = ["poetry-core"]
81-
build-backend = "poetry.core.masonry.api"
80+
requires = ["hatchling"]
81+
build-backend = "hatchling.build"
82+
83+
[tool.uv]
84+
managed = true
85+
dev-dependencies = [
86+
"pytest==8.0.0",
87+
"pytest-mock==3.14.0",
88+
"pylint>=3.2.5",
89+
"poethepoet>=0.31.1",
90+
]
91+

0 commit comments

Comments
 (0)