From 975bd2a3482d9db67cc2aaa510fb7a69177a6cac Mon Sep 17 00:00:00 2001 From: Max Dallabetta Date: Fri, 2 Feb 2024 16:25:45 +0100 Subject: [PATCH] loosens version restriction for dependencies --- pyproject.toml | 40 +++++++++++++++++++------------------- scripts/generate_tables.py | 4 ++-- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ab484ac03..eb47ff248 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,22 +23,22 @@ classifiers = [ keywords = ["web scraping, web crawling"] license = { text = "MIT" } dependencies = [ - "python-dateutil~=2.8.2", - "lxml~=4.9.1", - "more-itertools~=9.1.0", - "cssselect~=1.1.0", - "feedparser~=6.0.10", - "colorama~=0.4.4", - "typing-extensions >= 4.0, < 5.0", - "langdetect~=1.0.9", - "aiohttp~=3.8.4", - "aioitertools~=0.11.0", - "validators~=0.20.0", - "requests~=2.28.2", - "tqdm~=4.66.1", - "fastwarc~=0.14.5", - "chardet~=5.2.0", - "dill~=0.3.7" + "python-dateutil>=2.8, <3", + "lxml>=4.9, <5", + "more-itertools>=9.1, <10", + "cssselect>=1.1, <2", + "feedparser>=6.0, <7", + "colorama>=0.4, <1", + "typing-extensions>=4.0, <5", + "langdetect>=1.0, <2", + "aiohttp>=3.8, <4", + "aioitertools>=0.11, <1", + "validators>=0.20, <1", + "requests>=2.28, <3", + "tqdm>=4.66, <5", + "fastwarc>=0.14, <1", + "chardet>=5.2, <6", + "dill>=0.3, <1" ] [project.urls] @@ -51,10 +51,10 @@ dev = [ "isort==5.12.0", "black==23.1.0", # type stubs - "types-lxml~=2023.2.11", - "types-python-dateutil~=2.8.19.10", - "types-requests~=2.28.11.15", - "types-colorama~=0.4.15.8", + "types-lxml", + "types-python-dateutil>=2.8, <3", + "types-requests>=2.28, <3", + "types-colorama>=0.4, <1", ] [tool.mypy] diff --git a/scripts/generate_tables.py b/scripts/generate_tables.py index f5294baf7..5b7a747a1 100644 --- a/scripts/generate_tables.py +++ b/scripts/generate_tables.py @@ -30,10 +30,10 @@ def __call__(self, spec: PublisherEnum) -> lxml.html.HtmlElement: attributes := set(attribute_annotations_mapping.keys()) - set(spec.parser.latest_version.attributes().validated.names) ) - else cast(lxml.html.HtmlElement, lxml.html.fromstring(" ")), + else lxml.html.fromstring(" "), "Additional Attributes": lambda spec: TD(*[CODE(a) for a in sorted(attributes)]) if (attributes := spec.parser.latest_version.attributes().unvalidated.names) - else cast(lxml.html.HtmlElement, lxml.html.fromstring(" ")), + else lxml.html.fromstring(" "), }