Skip to content

Commit 7142a20

Browse files
committed
Fix pdfminer-six dependencies.
See pdfminer/pdfminer.six#1081
1 parent 3697b6f commit 7142a20

File tree

8 files changed

+50
-42
lines changed

8 files changed

+50
-42
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
with:
9898
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
9999
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
100-
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
100+
aws-region: ${{ secrets.AWS_REGION }}
101101
- name: Test
102102
env:
103103
UNSTRUCTURED_HF_TOKEN: ${{ secrets.HF_TOKEN }}

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 0.8.11-dev0
22

3-
* fix: fix dependencies for python 3.9
3+
* fix: dependencies of pdfminer-six and python 3.9
44

55
## 0.8.10
66

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PACKAGE_NAME := unstructured_inference
2-
PIP_VERSION := 23.2.1
2+
PIP_VERSION := 25.0.1
33
CURRENT_DIR := $(shell pwd)
44

55

@@ -14,7 +14,7 @@ help: Makefile
1414

1515
## install-base: installs core requirements needed for text processing bricks
1616
.PHONY: install-base
17-
install-base: install-base-pip-packages
17+
install-base: install-base-pip-packages requirements/base.in
1818
python3 -m pip install -r requirements/base.txt
1919

2020
## install: installs all test, dev, and experimental requirements
@@ -29,16 +29,16 @@ install-base-pip-packages:
2929
python3 -m pip install pip==${PIP_VERSION}
3030

3131
.PHONY: install-test
32-
install-test: install-base
32+
install-test: install-base requirements/test.txt
3333
python3 -m pip install -r requirements/test.txt
3434

3535
.PHONY: install-dev
36-
install-dev: install-test
36+
install-dev: install-test requirements/dev.txt
3737
python3 -m pip install -r requirements/dev.txt
3838

3939
## pip-compile: compiles all base/dev/test requirements
4040
.PHONY: pip-compile
41-
pip-compile:
41+
pip-compile: requirements/base.txt requirements/test.txt requirements/dev.txt
4242
pip-compile --upgrade requirements/base.in
4343
pip-compile --upgrade requirements/test.in
4444
pip-compile --upgrade requirements/dev.in

requirements/base.in

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
-c constraints.in
22
python-multipart
33
huggingface-hub
4-
numpy==2.0.2
4+
numpy<2.1 ; python_version <= '3.9'
5+
numpy ; python_version > '3.10'
56
opencv-python!=4.7.0.68
67
onnx
7-
onnxruntime==1.19.2
8-
# contourpy >3.9 is for python 3.10
9-
matplotlib==3.9.4
8+
onnxruntime<1.20 ; python_version <= '3.9'
9+
onnxruntime ; python_version >= '3.10'
10+
matplotlib<3.10 ; python_version <= '3.9'
11+
matplotlib ; python_version >= '3.10'
1012
torch
1113
timm
1214
# NOTE(alan): Pinned because this is when the most recent module we import appeared
13-
transformers>=4.25.1
15+
#transformers>=4.25.1
16+
transformers>=4.25.1,<4.51
1417
rapidfuzz
1518
pandas
16-
scipy==1.13.1
19+
scipy<1.14 ; python_version <= '3.9'
20+
scipy ; python_version >= '3.10'
1721
pypdfium2
1822
pdfminer-six>=20250327
19-
# contourpy >1.3.0 is for python 3.10
20-
contourpy==1.3.0
21-
# kiwisolver >1.4.7 is for python 3.10
22-
kiwisolver==1.4.7
23-
# networkx >3.2.1 is for python 3.10
24-
networkx==3.2.1
23+
contourpy<1.4.0 ; python_version <= '3.9'
24+
contourpy ; python_version >= '3.10'
25+
kiwisolver<1.5 ; python_version <= '3.9'
26+
kiwisolver ; python_version >= '3.10'
27+
networkx==3.2.1 ; python_version <= '3.9'
28+
networkx ; python_version >= '3.10'

requirements/base.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ charset-normalizer==3.4.1
1414
# requests
1515
coloredlogs==15.0.1
1616
# via onnxruntime
17-
contourpy==1.3.0
17+
contourpy==1.3.1 ; python_version >= "3.10"
1818
# via
1919
# -r requirements/base.in
2020
# matplotlib
@@ -35,7 +35,7 @@ fsspec==2025.3.2
3535
# via
3636
# huggingface-hub
3737
# torch
38-
huggingface-hub==0.30.1
38+
huggingface-hub==0.30.2
3939
# via
4040
# -r requirements/base.in
4141
# timm
@@ -47,21 +47,21 @@ idna==3.10
4747
# via requests
4848
jinja2==3.1.6
4949
# via torch
50-
kiwisolver==1.4.7
50+
kiwisolver==1.4.8 ; python_version >= "3.10"
5151
# via
5252
# -r requirements/base.in
5353
# matplotlib
5454
markupsafe==3.0.2
5555
# via jinja2
56-
matplotlib==3.9.4
56+
matplotlib==3.10.1 ; python_version >= "3.10"
5757
# via -r requirements/base.in
5858
mpmath==1.3.0
5959
# via sympy
60-
networkx==3.2.1
60+
networkx==3.4.2 ; python_version >= "3.10"
6161
# via
6262
# -r requirements/base.in
6363
# torch
64-
numpy==2.0.2
64+
numpy==2.2.4 ; python_version > "3.10"
6565
# via
6666
# -r requirements/base.in
6767
# contourpy
@@ -109,7 +109,7 @@ nvidia-nvtx-cu12==12.4.127
109109
# via torch
110110
onnx==1.17.0
111111
# via -r requirements/base.in
112-
onnxruntime==1.19.2
112+
onnxruntime==1.21.0 ; python_version >= "3.10"
113113
# via -r requirements/base.in
114114
opencv-python==4.11.0.86
115115
# via -r requirements/base.in
@@ -150,7 +150,7 @@ pyyaml==6.0.2
150150
# huggingface-hub
151151
# timm
152152
# transformers
153-
rapidfuzz==3.12.2
153+
rapidfuzz==3.13.0
154154
# via -r requirements/base.in
155155
regex==2024.11.6
156156
# via transformers
@@ -162,7 +162,7 @@ safetensors==0.5.3
162162
# via
163163
# timm
164164
# transformers
165-
scipy==1.13.1
165+
scipy==1.15.2 ; python_version >= "3.10"
166166
# via -r requirements/base.in
167167
six==1.17.0
168168
# via python-dateutil
@@ -189,7 +189,7 @@ transformers==4.50.3
189189
# via -r requirements/base.in
190190
triton==3.2.0
191191
# via torch
192-
typing-extensions==4.13.0
192+
typing-extensions==4.13.1
193193
# via
194194
# huggingface-hub
195195
# torch

requirements/dev.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-c base.txt
33
-c test.txt
44
jupyter
5-
ipython==8.18.1
5+
ipython<=8.19; python_version <= '3.9'
6+
ipython; python_version >= '3.10'
67
pip-tools
78
matplotlib

requirements/dev.txt

+11-8
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ comm==0.2.2
5555
# via
5656
# ipykernel
5757
# ipywidgets
58-
contourpy==1.3.0
58+
contourpy==1.3.1 ; python_version >= "3.10"
5959
# via
6060
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
6161
# matplotlib
@@ -104,12 +104,14 @@ ipykernel==6.29.5
104104
# jupyter
105105
# jupyter-console
106106
# jupyterlab
107-
ipython==8.18.1
107+
ipython==9.1.0 ; python_version >= "3.10"
108108
# via
109109
# -r requirements/dev.in
110110
# ipykernel
111111
# ipywidgets
112112
# jupyter-console
113+
ipython-pygments-lexers==1.1.1
114+
# via ipython
113115
ipywidgets==8.1.5
114116
# via jupyter
115117
isoduration==20.11.0
@@ -123,7 +125,7 @@ jinja2==3.1.6
123125
# jupyterlab
124126
# jupyterlab-server
125127
# nbconvert
126-
json5==0.11.0
128+
json5==0.12.0
127129
# via jupyterlab-server
128130
jsonpointer==3.0.0
129131
# via jsonschema
@@ -179,7 +181,7 @@ jupyterlab-server==2.27.3
179181
# notebook
180182
jupyterlab-widgets==3.0.13
181183
# via ipywidgets
182-
kiwisolver==1.4.7
184+
kiwisolver==1.4.8 ; python_version >= "3.10"
183185
# via
184186
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
185187
# matplotlib
@@ -188,7 +190,7 @@ markupsafe==3.0.2
188190
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
189191
# jinja2
190192
# nbconvert
191-
matplotlib==3.9.4
193+
matplotlib==3.10.1 ; python_version >= "3.10"
192194
# via
193195
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
194196
# -r requirements/dev.in
@@ -217,7 +219,7 @@ notebook-shim==0.2.4
217219
# via
218220
# jupyterlab
219221
# notebook
220-
numpy==2.0.2
222+
numpy==2.2.4 ; python_version > "3.10"
221223
# via
222224
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
223225
# contourpy
@@ -274,6 +276,7 @@ pycparser==2.22
274276
pygments==2.19.1
275277
# via
276278
# ipython
279+
# ipython-pygments-lexers
277280
# jupyter-console
278281
# nbconvert
279282
pyparsing==3.2.3
@@ -297,7 +300,7 @@ pyyaml==6.0.2
297300
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
298301
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/test.txt
299302
# jupyter-events
300-
pyzmq==26.3.0
303+
pyzmq==26.4.0
301304
# via
302305
# ipykernel
303306
# jupyter-client
@@ -372,7 +375,7 @@ traitlets==5.14.3
372375
# nbformat
373376
types-python-dateutil==2.9.0.20241206
374377
# via arrow
375-
typing-extensions==4.13.0
378+
typing-extensions==4.13.1
376379
# via
377380
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
378381
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/test.txt

requirements/test.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ httpcore==1.0.7
4646
# via httpx
4747
httpx==0.28.1
4848
# via -r requirements/test.in
49-
huggingface-hub==0.30.1
49+
huggingface-hub==0.30.2
5050
# via
5151
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
5252
# -r requirements/test.in
@@ -94,7 +94,7 @@ pytest==8.3.5
9494
# via
9595
# pytest-cov
9696
# pytest-mock
97-
pytest-cov==6.1.0
97+
pytest-cov==6.1.1
9898
# via -r requirements/test.in
9999
pytest-mock==3.14.0
100100
# via -r requirements/test.in
@@ -106,7 +106,7 @@ requests==2.32.3
106106
# via
107107
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
108108
# huggingface-hub
109-
ruff==0.11.2
109+
ruff==0.11.4
110110
# via -r requirements/test.in
111111
sniffio==1.3.1
112112
# via anyio
@@ -118,7 +118,7 @@ tqdm==4.67.1
118118
# huggingface-hub
119119
types-pyyaml==6.0.12.20250402
120120
# via -r requirements/test.in
121-
typing-extensions==4.13.0
121+
typing-extensions==4.13.1
122122
# via
123123
# -c /home/pprados/workspace.bda/unstructured-inference/requirements/base.txt
124124
# anyio

0 commit comments

Comments
 (0)