From c148f05c4ce7e14def3fef94e177822111be58a5 Mon Sep 17 00:00:00 2001 From: Yao You Date: Wed, 18 Oct 2023 12:51:11 -0500 Subject: [PATCH] treat bedrock as ingest --- requirements/{extra-bedrock.in => ingest-bedrock.in} | 0 requirements/{extra-bedrock.txt => ingest-bedrock.txt} | 0 setup.py | 4 +--- 3 files changed, 1 insertion(+), 3 deletions(-) rename requirements/{extra-bedrock.in => ingest-bedrock.in} (100%) rename requirements/{extra-bedrock.txt => ingest-bedrock.txt} (100%) diff --git a/requirements/extra-bedrock.in b/requirements/ingest-bedrock.in similarity index 100% rename from requirements/extra-bedrock.in rename to requirements/ingest-bedrock.in diff --git a/requirements/extra-bedrock.txt b/requirements/ingest-bedrock.txt similarity index 100% rename from requirements/extra-bedrock.txt rename to requirements/ingest-bedrock.txt diff --git a/setup.py b/setup.py index 525d41e27c..ad98eb693f 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,6 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List csv_reqs = load_requirements("requirements/extra-csv.in") -bedrock_reqs = load_requirements("requirements/extra-bedrock.in") doc_reqs = load_requirements("requirements/extra-docx.in") docx_reqs = load_requirements("requirements/extra-docx.in") epub_reqs = load_requirements("requirements/extra-epub.in") @@ -60,7 +59,6 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List all_doc_reqs = list( set( csv_reqs - + bedrock_reqs + docx_reqs + epub_reqs + image_reqs @@ -113,7 +111,6 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List # Document specific extra requirements "all-docs": all_doc_reqs, "csv": csv_reqs, - "bedrock": bedrock_reqs, "doc": doc_reqs, "docx": docx_reqs, "epub": epub_reqs, @@ -161,6 +158,7 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List "local-inference": all_doc_reqs, "paddleocr": load_requirements("requirements/extra-paddleocr.in"), "openai": load_requirements("requirements/ingest-openai.in"), + "bedrock": load_requirements("requirements/ingest-bedrock.in"), }, package_dir={"unstructured": "unstructured"}, package_data={"unstructured": ["nlp/*.txt"]},