Skip to content

chore(package manager)!: move from poetry to rye #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:
run: |
sudo apt update
sudo apt install -y git
- name: Install Python Env and Poetry
uses: actions/setup-python@v5
with:
python-version: '3.9'
- run: pip install poetry
- name: Install the latest version of rye
uses: eifinger/setup-rye@v3
- name: Install Node Env
uses: actions/setup-node@v4
with:
Expand All @@ -30,8 +27,8 @@ jobs:
persist-credentials: false
- name: Build app
run: |
poetry install
poetry build
rye sync --no-lock
rye build
id: build_cache
if: success()
- name: Cache build
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.19
11 changes: 4 additions & 7 deletions manual deployment/deploy_on_pip.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#!/bin/bash
cd ..

poetry update
rye self update
# Install dependencies using Poetry
poetry install

# Check for any potential issues in the project
poetry check
rye sync

# Build the project
poetry build
rye build

# Publish the project to PyPI
poetry publish
rye publish
3,347 changes: 0 additions & 3,347 deletions poetry.lock

This file was deleted.

73 changes: 39 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
[tool.poetry]
[project]
name = "scrapegraphai"

version = "0.11.1"

description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."
authors = [
"Marco Vinciguerra <mvincig11@gmail.com>",
"Marco Perini <perinim.98@gmail.com>",
"Lorenzo Padoan <lorenzo.padoan977@gmail.com>",
{ name = "Marco Vinciguerra", email = "mvincig11@gmail.com" },
{ name = "Marco Perini", email = "perinim.98@gmail.com" },
{ name = "Lorenzo Padoan", email = "lorenzo.padoan977@gmail.com" }
]
dependencies = [
# python = ">=3.9, <3.12"
"langchain==0.1.15",
"langchain-openai==0.1.6",
"langchain-google-genai==1.0.3",
"langchain-groq==0.1.3",
"langchain-aws==0.1.3",
"langchain-anthropic==0.1.11",
"html2text==2024.2.26",
"faiss-cpu==1.8.0",
"beautifulsoup4==4.12.3",
"pandas==2.2.2",
"python-dotenv==1.0.1",
"tiktoken==0.6.0",
"tqdm==4.66.4",
"graphviz==0.20.3",
"minify-html==0.15.0",
"free-proxy==1.1.1",
"playwright==1.43.0",
"google==3.0.0",
"yahoo-search-py==0.3",
]

license = "MIT"
readme = "README.md"
homepage = "https://scrapegraph-ai.readthedocs.io/"
Expand Down Expand Up @@ -39,40 +62,22 @@ classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
requires-python = ">= 3.9"

[tool.poetry.dependencies]
python = ">=3.9, <3.12"
langchain = "0.1.15"
langchain-openai = "0.1.6"
langchain-google-genai = "1.0.3"
langchain-groq = "0.1.3"
langchain-aws = "0.1.3"
langchain-anthropic = "0.1.11"
html2text = "2024.2.26"
faiss-cpu = "1.8.0"
beautifulsoup4 = "4.12.3"
pandas = "2.2.2"
python-dotenv = "1.0.1"
tiktoken = "0.6.0"
tqdm = "4.66.4"
graphviz = "0.20.3"
minify-html = "0.15.0"
free-proxy = "1.1.1"
playwright = "1.43.0"
google = "3.0.0"
yahoo-search-py = "0.3"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.poetry.dev-dependencies]
pytest = "8.0.0"
pytest-mock = "3.14.0"
[tool.rye]
managed = true
dev-dependencies = [
"pytest==8.0.0",
"pytest-mock==3.14.0"
]

[tool.poetry.group.docs]
[tool.rye.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
[tool.rye.group.docs.dependencies]
sphinx = "7.1.2"
sphinx-rtd-theme = "2.0.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Loading
Loading