From 59f972d7397f5bfd99a596364a64947d4eee3f87 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Wed, 18 Jan 2023 11:36:23 -0500 Subject: [PATCH] build(deps): add `requests` as a base dependency (#162) * build(deps): add `requests` as a base dependency * linting, linting, linting * changelog typo --- CHANGELOG.md | 3 ++- requirements/base.txt | 11 ++++++++++- requirements/huggingface.txt | 1 + setup.py | 1 + unstructured/__version__.py | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db22e7e551..727e61cd36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -## 0.4.3-dev2 +## 0.4.3 +* Adds `requests` as a base dependency * Fix in `exceeds_cap_ratio` so the function doesn't break with empty text * Fix bug in `_parse_received_data`. * Update `detect_filetype` to properly handle `.doc`, `.xls`, and `.ppt`. diff --git a/requirements/base.txt b/requirements/base.txt index 48511716c7..5dd621be22 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -11,7 +11,10 @@ backoff==2.2.1 certifi==2022.12.7 # via # httpx + # requests # unstructured (setup.py) +charset-normalizer==3.0.1 + # via requests click==8.1.3 # via nltk deprecated==1.2.13 @@ -25,7 +28,9 @@ httpcore==0.11.1 httpx==0.15.5 # via argilla idna==3.4 - # via rfc3986 + # via + # requests + # rfc3986 joblib==1.2.0 # via nltk lxml==4.9.2 @@ -67,6 +72,8 @@ pytz==2022.7 # via pandas regex==2022.10.31 # via nltk +requests==2.28.2 + # via unstructured (setup.py) rfc3986[idna2008]==1.5.0 # via httpx six==1.16.0 @@ -81,6 +88,8 @@ tqdm==4.64.1 # nltk typing-extensions==4.4.0 # via pydantic +urllib3==1.26.14 + # via requests wrapt==1.13.3 # via # argilla diff --git a/requirements/huggingface.txt b/requirements/huggingface.txt index 7d60b984d6..23eeea6ece 100644 --- a/requirements/huggingface.txt +++ b/requirements/huggingface.txt @@ -99,6 +99,7 @@ requests==2.28.2 # via # huggingface-hub # transformers + # unstructured (setup.py) rfc3986[idna2008]==1.5.0 # via httpx sacremoses==0.0.53 diff --git a/setup.py b/setup.py index bace9da196..f8b5bfa93d 100644 --- a/setup.py +++ b/setup.py @@ -57,6 +57,7 @@ "python-docx", "python-pptx", "python-magic", + "requests", # NOTE(robinson) - The following dependencies are pinned # to address security scans "certifi>=2022.12.07", diff --git a/unstructured/__version__.py b/unstructured/__version__.py index c5b74f907b..222e8965c7 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.4.3-dev2" # pragma: no cover +__version__ = "0.4.3" # pragma: no cover