Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added post_install in setup.py file #3883

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## 0.16.15
## 0.16.16-dev0
### Enhancements

### Features

### Fixes
- **Add auto-download for NLTK for Python Enviroment** When user install python library without image. It will automatic download nltk data. Added `entry_points` in `setup` in `setup.py`

## 0.16.15
### Enhancements

### Features
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ langdetect==1.0.9
# via -r ./base.in
lxml==5.3.0
# via -r ./base.in
marshmallow==3.25.1
marshmallow==3.26.0
# via
# dataclasses-json
# unstructured-client
Expand Down
2 changes: 1 addition & 1 deletion requirements/extra-paddleocr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exceptiongroup==1.2.2
# via
# -c ./base.txt
# anyio
fonttools==4.55.4
fonttools==4.55.5
# via matplotlib
h11==0.14.0
# via
Expand Down
4 changes: 2 additions & 2 deletions requirements/extra-pdf-image.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ filelock==3.17.0
# transformers
flatbuffers==25.1.21
# via onnxruntime
fonttools==4.55.4
fonttools==4.55.5
# via matplotlib
fsspec==2024.12.0
# via
# huggingface-hub
# torch
google-api-core[grpc]==2.24.0
# via google-cloud-vision
google-auth==2.37.0
google-auth==2.38.0
# via
# google-api-core
# google-cloud-vision
Expand Down
2 changes: 1 addition & 1 deletion requirements/extra-pptx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ python-pptx==1.0.2
# via -r ./extra-pptx.in
typing-extensions==4.12.2
# via python-pptx
xlsxwriter==3.2.0
xlsxwriter==3.2.1
# via python-pptx
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exceptiongroup==1.2.2
# -c ./base.txt
# anyio
# pytest
faker==34.0.0
faker==35.0.0
# via jsf
flake8==7.1.1
# via
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,9 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List
},
package_dir={"unstructured": "unstructured"},
package_data={"unstructured": ["nlp/*.txt", "py.typed"]},
entry_points={
"console_scripts": [
"post_install_unstructured=unstructured.nlp.tokenize:download_nltk_packages"
christinestraub marked this conversation as resolved.
Show resolved Hide resolved
],
},
)
2 changes: 1 addition & 1 deletion unstructured/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.16.15" # pragma: no cover
__version__ = "0.16.16-dev0" # pragma: no cover
Loading