Skip to content

Commit 7abeadc

Browse files
authored
Chore: bump unstructured library to 0.9.0 (#174)
* pip compile * chnagelog * change field to drop last_modified
1 parent b019c6f commit 7abeadc

File tree

5 files changed

+29
-31
lines changed

5 files changed

+29
-31
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## 0.0.34-dev1
1+
## 0.0.34
22

3+
* Bump unstructured library to 0.9.0
34
* Add table support for image with parameter `skip_infer_table_types`
45
* Add support for gzipped files
56

pipeline-notebooks/pipeline-general.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -886,10 +886,8 @@
886886
" if not show_coordinates and element.metadata.coordinates:\n",
887887
" elements[i].metadata.coordinates = None\n",
888888
" \n",
889-
" # Note(yuming): currently removing date from metadata\n",
890-
" # since it should be fixed in the core library\n",
891-
" if element.metadata.date:\n",
892-
" elements[i].metadata.date = None\n",
889+
" if element.metadata.last_modified:\n",
890+
" elements[i].metadata.last_modified = None\n",
893891
" \n",
894892
" if response_type == \"text/csv\":\n",
895893
" df = convert_to_dataframe(elements)\n",

prepline_general/api/general.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,8 @@ def pipeline_api(
364364
if not show_coordinates and element.metadata.coordinates:
365365
elements[i].metadata.coordinates = None
366366

367-
# Note(yuming): currently removing date from metadata
368-
# since it should be fixed in the core library
369-
if element.metadata.date:
370-
elements[i].metadata.date = None
367+
if element.metadata.last_modified:
368+
elements[i].metadata.last_modified = None
371369

372370
if response_type == "text/csv":
373371
df = convert_to_dataframe(elements)

requirements/base.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ certifi==2023.7.22
2424
# via requests
2525
cffi==1.15.1
2626
# via cryptography
27-
chardet==5.1.0
27+
chardet==5.2.0
2828
# via unstructured
2929
charset-normalizer==3.2.0
3030
# via
@@ -40,7 +40,7 @@ coloredlogs==15.0.1
4040
# via onnxruntime
4141
contourpy==1.1.0
4242
# via matplotlib
43-
cryptography==41.0.2
43+
cryptography==41.0.3
4444
# via pdfminer-six
4545
cycler==0.11.0
4646
# via matplotlib
@@ -65,7 +65,7 @@ filetype==1.2.0
6565
# via unstructured
6666
flatbuffers==23.5.26
6767
# via onnxruntime
68-
fonttools==4.41.1
68+
fonttools==4.42.0
6969
# via matplotlib
7070
fsspec==2023.6.0
7171
# via huggingface-hub
@@ -103,7 +103,7 @@ jinja2==3.1.2
103103
# unstructured-api-tools
104104
joblib==1.3.1
105105
# via nltk
106-
jsonschema==4.18.4
106+
jsonschema==4.18.6
107107
# via nbformat
108108
jsonschema-specifications==2023.7.1
109109
# via jsonschema
@@ -205,7 +205,7 @@ pdfminer-six==20221105
205205
# unstructured
206206
pdfplumber==0.10.2
207207
# via layoutparser
208-
pillow==10.0.0
208+
pillow==9.5.0
209209
# via
210210
# layoutparser
211211
# matplotlib
@@ -278,7 +278,7 @@ pyzmq==25.1.0
278278
# via jupyter-client
279279
ratelimit==2.2.1
280280
# via -r requirements/base.in
281-
referencing==0.30.0
281+
referencing==0.30.1
282282
# via
283283
# jsonschema
284284
# jsonschema-specifications
@@ -319,7 +319,7 @@ sympy==1.12
319319
# torch
320320
tabulate==0.9.0
321321
# via unstructured
322-
timm==0.9.2
322+
timm==0.9.5
323323
# via effdet
324324
tinycss2==1.2.1
325325
# via nbconvert
@@ -378,7 +378,7 @@ typing-extensions==4.7.1
378378
# uvicorn
379379
tzdata==2023.3
380380
# via pandas
381-
unstructured[local-inference]==0.8.7
381+
unstructured[local-inference]==0.9.0
382382
# via -r requirements/base.in
383383
unstructured-api-tools==0.10.10
384384
# via -r requirements/base.in

requirements/test.txt

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ cffi==1.15.1
6767
# -r requirements/base.txt
6868
# argon2-cffi-bindings
6969
# cryptography
70-
chardet==5.1.0
70+
chardet==5.2.0
7171
# via
7272
# -r requirements/base.txt
7373
# unstructured
@@ -88,15 +88,17 @@ coloredlogs==15.0.1
8888
# via
8989
# -r requirements/base.txt
9090
# onnxruntime
91-
comm==0.1.3
92-
# via ipykernel
91+
comm==0.1.4
92+
# via
93+
# ipykernel
94+
# ipywidgets
9395
contourpy==1.1.0
9496
# via
9597
# -r requirements/base.txt
9698
# matplotlib
9799
coverage[toml]==7.2.7
98100
# via pytest-cov
99-
cryptography==41.0.2
101+
cryptography==41.0.3
100102
# via
101103
# -r requirements/base.txt
102104
# pdfminer-six
@@ -158,7 +160,7 @@ flatbuffers==23.5.26
158160
# via
159161
# -r requirements/base.txt
160162
# onnxruntime
161-
fonttools==4.41.1
163+
fonttools==4.42.0
162164
# via
163165
# -r requirements/base.txt
164166
# matplotlib
@@ -225,7 +227,6 @@ iopath==0.1.10
225227
# layoutparser
226228
ipykernel==6.25.0
227229
# via
228-
# ipywidgets
229230
# jupyter
230231
# jupyter-console
231232
# jupyterlab
@@ -238,7 +239,7 @@ ipython==8.12.2
238239
# jupyter-console
239240
ipython-genutils==0.2.0
240241
# via qtconsole
241-
ipywidgets==8.0.7
242+
ipywidgets==8.1.0
242243
# via jupyter
243244
isoduration==20.11.0
244245
# via jsonschema
@@ -261,7 +262,7 @@ json5==0.9.14
261262
# via jupyterlab-server
262263
jsonpointer==2.4
263264
# via jsonschema
264-
jsonschema[format-nongpl]==4.18.4
265+
jsonschema[format-nongpl]==4.18.6
265266
# via
266267
# -r requirements/base.txt
267268
# jupyter-events
@@ -308,7 +309,7 @@ jupyter-server==2.7.0
308309
# notebook-shim
309310
jupyter-server-terminals==0.4.4
310311
# via jupyter-server
311-
jupyterlab==4.0.3
312+
jupyterlab==4.0.4
312313
# via notebook
313314
jupyterlab-pygments==0.2.2
314315
# via
@@ -403,7 +404,7 @@ nltk==3.8.1
403404
# via
404405
# -r requirements/base.txt
405406
# unstructured
406-
notebook==7.0.1
407+
notebook==7.0.2
407408
# via jupyter
408409
notebook-shim==0.2.3
409410
# via
@@ -496,7 +497,7 @@ pexpect==4.8.0
496497
# via ipython
497498
pickleshare==0.7.5
498499
# via ipython
499-
pillow==10.0.0
500+
pillow==9.5.0
500501
# via
501502
# -r requirements/base.txt
502503
# layoutparser
@@ -654,7 +655,7 @@ qtpy==2.3.1
654655
# via qtconsole
655656
ratelimit==2.2.1
656657
# via -r requirements/base.txt
657-
referencing==0.30.0
658+
referencing==0.30.1
658659
# via
659660
# -r requirements/base.txt
660661
# jsonschema
@@ -734,7 +735,7 @@ terminado==0.17.1
734735
# via
735736
# jupyter-server
736737
# jupyter-server-terminals
737-
timm==0.9.2
738+
timm==0.9.5
738739
# via
739740
# -r requirements/base.txt
740741
# effdet
@@ -837,7 +838,7 @@ tzdata==2023.3
837838
# via
838839
# -r requirements/base.txt
839840
# pandas
840-
unstructured[local-inference]==0.8.7
841+
unstructured[local-inference]==0.9.0
841842
# via -r requirements/base.txt
842843
unstructured-api-tools==0.10.10
843844
# via -r requirements/base.txt

0 commit comments

Comments
 (0)