Skip to content

Commit 6c01cb9

Browse files
authored
Chore: bump version to 0.0.59 and release (#312)
bump unst version to `0.11.0` also revert the workaround in `0.0.58`
1 parent 4179947 commit 6c01cb9

File tree

8 files changed

+60
-57
lines changed

8 files changed

+60
-57
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.59
2+
3+
* Bump unstructured to 0.11.0
4+
15
## 0.0.58
26

37
* Bump unstructured to 0.10.30

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,9 @@ RUN python3.10 -m pip install pip==${PIP_VERSION} \
3232
USER ${NB_USER}
3333

3434
FROM python-deps as model-deps
35-
# Note(yuming): quick workaround for ingest import error
36-
# should import initialize within unstructured but out of ingest dir
37-
COPY --chown=${NB_USER}:${NB_USER} scripts/hi_res_model_initialize.py hi_res_model_initialize.py
3835
RUN python3.10 -c "import nltk; nltk.download('punkt')" && \
3936
python3.10 -c "import nltk; nltk.download('averaged_perceptron_tagger')" && \
40-
python3.10 -c "from hi_res_model_initialize import initialize; initialize()"
37+
python3.10 -c "from unstructured.partition.model_init import initialize; initialize()"
4138

4239
FROM model-deps as code
4340
COPY --chown=${NB_USER}:${NB_USER} CHANGELOG.md CHANGELOG.md

prepline_general/api/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
app = FastAPI(
1212
title="Unstructured Pipeline API",
1313
description="""""",
14-
version="0.0.58",
14+
version="0.0.59",
1515
docs_url="/general/docs",
1616
openapi_url="/general/openapi.json",
1717
)

prepline_general/api/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def return_content_type(filename):
636636

637637

638638
@router.post("/general/v0/general")
639-
@router.post("/general/v0.0.58/general")
639+
@router.post("/general/v0.0.59/general")
640640
def pipeline_1(
641641
request: Request,
642642
gz_uncompressed_content_type: Optional[str] = Form(default=None),

preprocessing-pipeline-family.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name: general
2-
version: 0.0.58
2+
version: 0.0.59

requirements/base.txt

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
55
# pip-compile requirements/base.in
@@ -16,7 +16,7 @@ backoff==2.2.1
1616
# unstructured
1717
beautifulsoup4==4.12.2
1818
# via unstructured
19-
certifi==2023.7.22
19+
certifi==2023.11.17
2020
# via requests
2121
cffi==1.16.0
2222
# via cryptography
@@ -47,6 +47,8 @@ emoji==2.8.0
4747
# via unstructured
4848
et-xmlfile==1.1.0
4949
# via openpyxl
50+
exceptiongroup==1.1.3
51+
# via anyio
5052
fastapi==0.104.1
5153
# via -r requirements/base.in
5254
filelock==3.13.1
@@ -58,15 +60,15 @@ filetype==1.2.0
5860
# via unstructured
5961
flatbuffers==23.5.26
6062
# via onnxruntime
61-
fonttools==4.44.3
63+
fonttools==4.45.0
6264
# via matplotlib
6365
fsspec==2023.10.0
6466
# via
6567
# huggingface-hub
6668
# torch
6769
h11==0.14.0
6870
# via uvicorn
69-
huggingface-hub==0.19.3
71+
huggingface-hub==0.19.4
7072
# via
7173
# timm
7274
# tokenizers
@@ -101,7 +103,7 @@ markupsafe==2.1.3
101103
# via jinja2
102104
marshmallow==3.20.1
103105
# via dataclasses-json
104-
matplotlib==3.8.1
106+
matplotlib==3.8.2
105107
# via pycocotools
106108
mpmath==1.3.0
107109
# via sympy
@@ -180,7 +182,7 @@ pillow==10.1.0
180182
# unstructured-pytesseract
181183
portalocker==2.8.2
182184
# via iopath
183-
protobuf==4.25.0
185+
protobuf==4.25.1
184186
# via
185187
# onnx
186188
# onnxruntime
@@ -251,7 +253,7 @@ safetensors==0.3.2
251253
# -c requirements/constraints.in
252254
# timm
253255
# transformers
254-
scipy==1.11.3
256+
scipy==1.11.4
255257
# via layoutparser
256258
six==1.16.0
257259
# via
@@ -303,22 +305,23 @@ typing-extensions==4.8.0
303305
# torch
304306
# typing-inspect
305307
# unstructured
308+
# uvicorn
306309
typing-inspect==0.9.0
307310
# via dataclasses-json
308311
tzdata==2023.3
309312
# via pandas
310-
unstructured[local-inference]==0.10.30
311-
# via
312-
# -r requirements/base.in
313-
# unstructured
314-
unstructured-inference==0.7.11
313+
unstructured[local-inference]==0.11.0
314+
# via -r requirements/base.in
315+
unstructured-inference==0.7.15
315316
# via unstructured
316317
unstructured-pytesseract==0.3.12
317318
# via unstructured
318319
urllib3==2.1.0
319320
# via requests
320321
uvicorn==0.24.0.post1
321322
# via -r requirements/base.in
323+
wrapt==1.16.0
324+
# via unstructured
322325
xlrd==2.0.1
323326
# via unstructured
324327
xlsxwriter==3.1.9

requirements/test.txt

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
55
# pip-compile --output-file=requirements/test.txt requirements/base.txt requirements/test.in
@@ -52,7 +52,7 @@ black==23.11.0
5252
# via -r requirements/test.in
5353
bleach==6.1.0
5454
# via nbconvert
55-
certifi==2023.7.22
55+
certifi==2023.11.17
5656
# via
5757
# -r requirements/base.txt
5858
# httpcore
@@ -90,9 +90,7 @@ contourpy==1.2.0
9090
# -r requirements/base.txt
9191
# matplotlib
9292
coverage[toml]==7.3.2
93-
# via
94-
# coverage
95-
# pytest-cov
93+
# via pytest-cov
9694
cryptography==41.0.5
9795
# via
9896
# -r requirements/base.txt
@@ -123,6 +121,12 @@ et-xmlfile==1.1.0
123121
# via
124122
# -r requirements/base.txt
125123
# openpyxl
124+
exceptiongroup==1.1.3
125+
# via
126+
# -r requirements/base.txt
127+
# anyio
128+
# ipython
129+
# pytest
126130
execnb==0.1.5
127131
# via nbdev
128132
executing==2.0.1
@@ -152,7 +156,7 @@ flatbuffers==23.5.26
152156
# via
153157
# -r requirements/base.txt
154158
# onnxruntime
155-
fonttools==4.44.3
159+
fonttools==4.45.0
156160
# via
157161
# -r requirements/base.txt
158162
# matplotlib
@@ -174,7 +178,7 @@ httpcore==1.0.2
174178
# via httpx
175179
httpx==0.25.1
176180
# via -r requirements/test.in
177-
huggingface-hub==0.19.3
181+
huggingface-hub==0.19.4
178182
# via
179183
# -r requirements/base.txt
180184
# timm
@@ -235,7 +239,7 @@ json5==0.9.14
235239
# via jupyterlab-server
236240
jsonpointer==2.4
237241
# via jsonschema
238-
jsonschema[format-nongpl]==4.19.2
242+
jsonschema[format-nongpl]==4.20.0
239243
# via
240244
# jupyter-events
241245
# jupyterlab-server
@@ -277,11 +281,11 @@ jupyter-server==2.10.1
277281
# notebook-shim
278282
jupyter-server-terminals==0.4.4
279283
# via jupyter-server
280-
jupyterlab==4.0.8
284+
jupyterlab==4.0.9
281285
# via notebook
282286
jupyterlab-pygments==0.2.2
283287
# via nbconvert
284-
jupyterlab-server==2.25.1
288+
jupyterlab-server==2.25.2
285289
# via
286290
# jupyterlab
287291
# notebook
@@ -298,7 +302,6 @@ langdetect==1.0.9
298302
layoutparser[layoutmodels,tesseract]==0.3.4
299303
# via
300304
# -r requirements/base.txt
301-
# layoutparser
302305
# unstructured-inference
303306
lxml==4.9.3
304307
# via
@@ -319,7 +322,7 @@ marshmallow==3.20.1
319322
# via
320323
# -r requirements/base.txt
321324
# dataclasses-json
322-
matplotlib==3.8.1
325+
matplotlib==3.8.2
323326
# via
324327
# -r requirements/base.txt
325328
# pycocotools
@@ -495,7 +498,7 @@ prompt-toolkit==3.0.41
495498
# via
496499
# ipython
497500
# jupyter-console
498-
protobuf==4.25.0
501+
protobuf==4.25.1
499502
# via
500503
# -r requirements/base.txt
501504
# onnx
@@ -528,7 +531,7 @@ pydantic==1.10.13
528531
# fastapi
529532
pyflakes==3.1.0
530533
# via flake8
531-
pygments==2.16.1
534+
pygments==2.17.1
532535
# via
533536
# ipython
534537
# jupyter-console
@@ -610,7 +613,7 @@ pyzmq==25.1.1
610613
# jupyter-console
611614
# jupyter-server
612615
# qtconsole
613-
qtconsole==5.5.0
616+
qtconsole==5.5.1
614617
# via jupyter
615618
qtpy==2.4.1
616619
# via qtconsole
@@ -647,7 +650,7 @@ rfc3986-validator==0.1.1
647650
# via
648651
# jsonschema
649652
# jupyter-events
650-
rpds-py==0.12.0
653+
rpds-py==0.13.1
651654
# via
652655
# jsonschema
653656
# referencing
@@ -657,7 +660,7 @@ safetensors==0.3.2
657660
# -r requirements/base.txt
658661
# timm
659662
# transformers
660-
scipy==1.11.3
663+
scipy==1.11.4
661664
# via
662665
# -r requirements/base.txt
663666
# layoutparser
@@ -710,6 +713,13 @@ tokenizers==0.15.0
710713
# via
711714
# -r requirements/base.txt
712715
# transformers
716+
tomli==2.0.1
717+
# via
718+
# black
719+
# coverage
720+
# jupyterlab
721+
# mypy
722+
# pytest
713723
torch==2.1.1
714724
# via
715725
# -r requirements/base.txt
@@ -764,6 +774,8 @@ types-python-dateutil==2.8.19.14
764774
typing-extensions==4.8.0
765775
# via
766776
# -r requirements/base.txt
777+
# async-lru
778+
# black
767779
# fastapi
768780
# huggingface-hub
769781
# iopath
@@ -773,6 +785,7 @@ typing-extensions==4.8.0
773785
# torch
774786
# typing-inspect
775787
# unstructured
788+
# uvicorn
776789
typing-inspect==0.9.0
777790
# via
778791
# -r requirements/base.txt
@@ -781,11 +794,9 @@ tzdata==2023.3
781794
# via
782795
# -r requirements/base.txt
783796
# pandas
784-
unstructured[local-inference]==0.10.30
785-
# via
786-
# -r requirements/base.txt
787-
# unstructured
788-
unstructured-inference==0.7.11
797+
unstructured[local-inference]==0.11.0
798+
# via -r requirements/base.txt
799+
unstructured-inference==0.7.15
789800
# via
790801
# -r requirements/base.txt
791802
# unstructured
@@ -817,6 +828,10 @@ wheel==0.41.3
817828
# via astunparse
818829
widgetsnbextension==4.0.9
819830
# via ipywidgets
831+
wrapt==1.16.0
832+
# via
833+
# -r requirements/base.txt
834+
# unstructured
820835
xlrd==2.0.1
821836
# via
822837
# -r requirements/base.txt

scripts/hi_res_model_initialize.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)