Skip to content

Commit

Permalink
Merge pull request #350 from flairNLP/loosen-version-restrivtions
Browse files Browse the repository at this point in the history
Loosens version restrictions for dependencies
  • Loading branch information
dobbersc authored Feb 2, 2024
2 parents 5f5ad7e + 975bd2a commit 999a43d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
40 changes: 20 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<td>&nbsp;</td>")),
else lxml.html.fromstring("<td>&nbsp;</td>"),
"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("<td>&nbsp;</td>")),
else lxml.html.fromstring("<td>&nbsp;</td>"),
}


Expand Down

0 comments on commit 999a43d

Please sign in to comment.