Skip to content

Commit ebf1605

Browse files
authored
feat/add deprecation warning to all embed code (#3614)
### Description Related PR to move the code over: Unstructured-IO/unstructured-ingest#92 Also removed the console script that exposes ingest.
1 parent e9690b2 commit ebf1605

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
## 0.15.11
2+
3+
### Enhancements
4+
5+
* **Add deprecation warning to embed code**
6+
* **Remove ingest console script**
7+
18
## 0.15.10
29

310
### Enhancements
411

512
* **Enhance `pdfminer` element cleanup** Expand removal of `pdfminer` elements to include those inside all `non-pdfminer` elements, not just `tables`.
613
* **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.
714
* **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.
15+
* **Add deprecation warning to embed code**
816

917
### Features
1018

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List
102102
license="Apache-2.0",
103103
packages=find_packages(),
104104
version=__version__,
105-
entry_points={
106-
"console_scripts": ["unstructured-ingest=unstructured.ingest.main:main"],
107-
},
108105
install_requires=load_requirements(),
109106
extras_require={
110107
# Document specific extra requirements

test_unstructured_ingest/test-ingest-src.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ python_version=$(python --version 2>&1)
9797
tests_to_ignore=(
9898
'notion.sh'
9999
'local-embed-mixedbreadai.sh'
100+
'hubspot.sh'
100101
)
101102

102103
for test in "${all_tests[@]}"; do

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.15.10" # pragma: no cover
1+
__version__ = "0.15.11" # pragma: no cover

unstructured/embed/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Embed
2+
![Project unmaintained](https://img.shields.io/badge/project-unmaintained-red.svg)
3+
4+
Project has been moved to: [Unstructured Ingest](https://github.com/Unstructured-IO/unstructured-ingest)
5+
6+
This python module will be removed from this repo in the near future.

unstructured/embed/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import warnings
2+
13
from unstructured.embed.bedrock import BedrockEmbeddingEncoder
24
from unstructured.embed.huggingface import HuggingFaceEmbeddingEncoder
35
from unstructured.embed.mixedbreadai import MixedbreadAIEmbeddingEncoder
@@ -15,3 +17,11 @@
1517
"mixedbread-ai": MixedbreadAIEmbeddingEncoder,
1618
"octoai": OctoAIEmbeddingEncoder,
1719
}
20+
21+
22+
warnings.warn(
23+
"unstructured.ingest will be removed in a future version. "
24+
"Functionality moved to the unstructured-ingest project.",
25+
DeprecationWarning,
26+
stacklevel=2,
27+
)

0 commit comments

Comments
 (0)