From df9ee44d425229322bdbf816861b6df4c665f9fd Mon Sep 17 00:00:00 2001 From: Mark Jan van Kampen Date: Wed, 30 Oct 2024 10:03:22 +0100 Subject: [PATCH 1/2] build: make requirements more flexible According to #102 the requirements specified are minimum version. Currently they are defined as fixed versions in requirements.txt and setup.py leading to projects consuming this package are limited to using exactly these requirements instead of a more flexible range. This PR addresses this. --- requirements.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/requirements.txt b/requirements.txt index 01aafc91..ee772636 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ -aiosqlite==0.20.0 -html2text==2024.2.26 -lxml==5.3.0 -litellm==1.48.0 -numpy>=1.26.0,<2.1.1 -pillow==10.4.0 -playwright==1.47.0 -python-dotenv==1.0.1 -requests>=2.26.0,<2.32.3 -beautifulsoup4==4.12.3 -playwright_stealth==1.0.6 \ No newline at end of file +aiosqlite~=0.20 +html2text~=2024.2 +lxml~=5.3 +litellm~=1.48 +numpy>=1.26.0,<3 +pillow~=10.4 +playwright~=1.47 +python-dotenv~=1.0 +requests~=2.26 +beautifulsoup4~=4.12 +playwright_stealth~=1.0 From 605a82793bb24e8f2e6fa45d618a19bf38b9c2f4 Mon Sep 17 00:00:00 2001 From: Mark Jan van Kampen Date: Wed, 30 Oct 2024 10:41:37 +0100 Subject: [PATCH 2/2] fix dev requirements and lock playwright due to failing tests --- requirements-dev.txt | 5 ++++- requirements.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index f2578c6a..7bc121a4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,2 +1,5 @@ -r requirements.txt -pytest \ No newline at end of file +pytest +pytest-asyncio +selenium +setuptools diff --git a/requirements.txt b/requirements.txt index ee772636..9a942958 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ lxml~=5.3 litellm~=1.48 numpy>=1.26.0,<3 pillow~=10.4 -playwright~=1.47 +playwright>=1.47,<1.48 python-dotenv~=1.0 requests~=2.26 beautifulsoup4~=4.12