diff --git a/CHANGELOG.md b/CHANGELOG.md index 3574566486..e039005556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.15.11 + +### Enhancements + +* **Add deprecation warning to embed code** +* **Remove ingest console script** + ## 0.15.10 ### Enhancements @@ -5,6 +12,7 @@ * **Enhance `pdfminer` element cleanup** Expand removal of `pdfminer` elements to include those inside all `non-pdfminer` elements, not just `tables`. * **Modified analysis drawing tools to dump to files and draw from dumps** If the parameter `analysis` of the `partition_pdf` function is set to `True`, the layout for Object Detection, Pdfminer Extraction, OCR and final layouts will be dumped as json files. The drawers now accept dict (dump) objects instead of internal classes instances. * **Vectorize pdfminer elements deduplication computation**. Use `numpy` operations to compute IOU and sub-region membership instead of using simply loop. This improves the speed of deduplicating elements for pages with a lot of elements. +* **Add deprecation warning to embed code** ### Features diff --git a/setup.py b/setup.py index b0145704e4..89813f7c17 100644 --- a/setup.py +++ b/setup.py @@ -102,9 +102,6 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List license="Apache-2.0", packages=find_packages(), version=__version__, - entry_points={ - "console_scripts": ["unstructured-ingest=unstructured.ingest.main:main"], - }, install_requires=load_requirements(), extras_require={ # Document specific extra requirements diff --git a/test_unstructured_ingest/test-ingest-src.sh b/test_unstructured_ingest/test-ingest-src.sh index 9346eaf5f4..0b2ccce17f 100755 --- a/test_unstructured_ingest/test-ingest-src.sh +++ b/test_unstructured_ingest/test-ingest-src.sh @@ -97,6 +97,7 @@ python_version=$(python --version 2>&1) tests_to_ignore=( 'notion.sh' 'local-embed-mixedbreadai.sh' + 'hubspot.sh' ) for test in "${all_tests[@]}"; do diff --git a/unstructured/__version__.py b/unstructured/__version__.py index 82a8205bda..4ae9c868c4 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.15.10" # pragma: no cover +__version__ = "0.15.11" # pragma: no cover diff --git a/unstructured/embed/README.md b/unstructured/embed/README.md new file mode 100644 index 0000000000..560fbee354 --- /dev/null +++ b/unstructured/embed/README.md @@ -0,0 +1,6 @@ +# Embed +![Project unmaintained](https://img.shields.io/badge/project-unmaintained-red.svg) + +Project has been moved to: [Unstructured Ingest](https://github.com/Unstructured-IO/unstructured-ingest) + +This python module will be removed from this repo in the near future. diff --git a/unstructured/embed/__init__.py b/unstructured/embed/__init__.py index 58f951e305..7b5a49e98c 100644 --- a/unstructured/embed/__init__.py +++ b/unstructured/embed/__init__.py @@ -1,3 +1,5 @@ +import warnings + from unstructured.embed.bedrock import BedrockEmbeddingEncoder from unstructured.embed.huggingface import HuggingFaceEmbeddingEncoder from unstructured.embed.mixedbreadai import MixedbreadAIEmbeddingEncoder @@ -15,3 +17,11 @@ "mixedbread-ai": MixedbreadAIEmbeddingEncoder, "octoai": OctoAIEmbeddingEncoder, } + + +warnings.warn( + "unstructured.ingest will be removed in a future version. " + "Functionality moved to the unstructured-ingest project.", + DeprecationWarning, + stacklevel=2, +)