From ab05aeb4264fc78dde5aeb0dc4449dc3947aae3e Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 6 Jul 2025 10:55:30 -0600 Subject: [PATCH 1/3] Depend on frictionless[json] instead of importing jsonlines --- requirements.txt | 3 +-- tests/test_optional_flags_wacz.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6125201..b722f38 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,9 @@ -frictionless>=3.23.4 +frictionless[json]>=3.23.4 shortuuid>=1.0.1 cdxj-indexer>=1.4.4 boilerpy3>=1.0.2 pytest-cov>=2.10.1 PyYAML>=5.3.1 black>=20.8b1 -jsonlines>=3.0.0 click>=8.0.0 typer==0.11.1 diff --git a/tests/test_optional_flags_wacz.py b/tests/test_optional_flags_wacz.py index 5ecc714..56540ec 100644 --- a/tests/test_optional_flags_wacz.py +++ b/tests/test_optional_flags_wacz.py @@ -5,7 +5,6 @@ from wacz.main import main, now from wacz.util import hash_file from unittest.mock import patch -import jsonlines TEST_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "fixtures") PAGES_DIR = os.path.join(TEST_DIR, "pages") From b0aa26a2598344194ea622e2bf959b825d644017 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 6 Jul 2025 10:55:30 -0600 Subject: [PATCH 2/3] Separate out dev/test dependencies Those are not needed during runtime. --- requirements.txt | 2 -- setup.py | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index b722f38..1852502 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,8 +2,6 @@ frictionless[json]>=3.23.4 shortuuid>=1.0.1 cdxj-indexer>=1.4.4 boilerpy3>=1.0.2 -pytest-cov>=2.10.1 PyYAML>=5.3.1 -black>=20.8b1 click>=8.0.0 typer==0.11.1 diff --git a/setup.py b/setup.py index 14ad5ac..98d6126 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,11 @@ def long_description(): long_description=long_description(), long_description_content_type="text/markdown", install_requires=load_requirements("requirements.txt"), - extras_require={"signing": ["authsign>=0.5.1", "requests"]}, + extras_require={ + "signing": ["authsign>=0.5.1", "requests"], + "dev": ["black"], + "test": ["pytest", "pytest-cov>=2.10.1"], + }, zip_safe=True, setup_requires=["pytest-runner"], entry_points=""" From 9d3ad60f125247b8a4354511d9123b85ce6a23c5 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 6 Jul 2025 10:55:32 -0600 Subject: [PATCH 3/3] Do not pin transitive dependencies --- requirements.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1852502..0b076c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,3 @@ shortuuid>=1.0.1 cdxj-indexer>=1.4.4 boilerpy3>=1.0.2 PyYAML>=5.3.1 -click>=8.0.0 -typer==0.11.1