Skip to content

Commit 7764fb6

Browse files
authored
build: drop remaining Python 3.9 refs (#4049)
Dropped variables that said we support Python 3.9 in `setup.py`, as well as any remaining references to Python 3.9. I also checked the pins and removed several that don't seem necessary any more.
1 parent 92965fb commit 7764fb6

21 files changed

+162
-215
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
## 0.18.5-dev0
1+
## 0.18.5-dev1
22

33
### Enhancements
44

5+
- **Bump dependencies and remove lingering Python 3.9 artifacts** Cleaned up some references to 3.9 that were left When we dropped Python 3.9 support.
6+
57
### Features
68

79
### Fixes

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ unstructured/nlp/patterns\.py
2222

2323
[tool.pyright]
2424
pythonPlatform = "Linux"
25-
pythonVersion = "3.9"
25+
pythonVersion = "3.10"
2626
reportUnnecessaryCast = true
2727
reportUnnecessaryTypeIgnoreComment = true
2828
stubPath = "./typings"
@@ -31,7 +31,7 @@ verboseOutput = true
3131

3232
[tool.ruff]
3333
line-length = 100
34-
target-version = "py39"
34+
target-version = "py310"
3535

3636
[tool.ruff.lint]
3737
ignore = [

requirements/base.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ backoff==2.2.1
1010
# via -r ./base.in
1111
beautifulsoup4==4.13.4
1212
# via -r ./base.in
13-
certifi==2025.6.15
13+
certifi==2025.7.9
1414
# via
1515
# httpcore
1616
# httpx
@@ -28,7 +28,7 @@ click==8.2.1
2828
# via
2929
# nltk
3030
# python-oxmsg
31-
cryptography==45.0.4
31+
cryptography==45.0.5
3232
# via unstructured-client
3333
dataclasses-json==0.6.7
3434
# via
@@ -62,7 +62,7 @@ jsonpath-python==1.0.6
6262
# via unstructured-client
6363
langdetect==1.0.9
6464
# via -r ./base.in
65-
lxml==5.4.0
65+
lxml==6.0.0
6666
# via -r ./base.in
6767
marshmallow==3.26.1
6868
# via
@@ -90,7 +90,7 @@ psutil==7.0.0
9090
# via -r ./base.in
9191
pycparser==2.22
9292
# via cffi
93-
pypdf==5.6.0
93+
pypdf==5.7.0
9494
# via unstructured-client
9595
python-dateutil==2.9.0.post0
9696
# via unstructured-client
@@ -125,7 +125,7 @@ tqdm==4.67.1
125125
# via
126126
# -r ./base.in
127127
# nltk
128-
typing-extensions==4.14.0
128+
typing-extensions==4.14.1
129129
# via
130130
# -r ./base.in
131131
# anyio
@@ -143,7 +143,7 @@ unstructured-client==0.25.9
143143
# via
144144
# -c requirements/deps/constraints.txt
145145
# -r ./base.in
146-
urllib3==2.4.0
146+
urllib3==2.5.0
147147
# via
148148
# -c requirements/deps/constraints.txt
149149
# requests

requirements/deps/constraints.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,10 @@
55
####################################################################################################
66
# we are using v3 client https://weaviate.io/developers/weaviate/client-libraries/python/python_v3
77
weaviate-client>=3.26.7,<4.0.0
8-
# TODO: Constriant due to multiple versions being installed during pip-compile
9-
protobuf>=6.30.0
10-
# TODO: Constriant due to multiple versions being installed during pip-compile
11-
grpcio>=1.65.5
128
# TODO: Pinned in transformers package, remove when that gets updated (https://github.com/huggingface/transformers/blob/main/setup.py)
139
tokenizers>=0.21,<0.22
14-
# TODO: Constaint due to boto, with python before 3.10 not requiring openssl 1.1.1, remove when that gets
15-
# updated or we drop support for 3.9
10+
# NOTE(alan): Okay to drop pin once this version exists and we verify compatibility.
1611
urllib3<3.0.0
17-
# TODO: Constriant due to aiobotocore, remove when that gets updates:
18-
botocore<1.34.132
19-
# TODO: Constriant due to both 8.5.0 and 8.4.0 being installed during pip-compile
20-
importlib-metadata>=8.5.0
2112
# (austin): Versions below this have a different interface for passing parameters
2213
unstructured-client>=0.23.0,<0.26.0
2314
# paddle constrains protobuf; maybe we should put paddle here since its version is pinned in .in file

requirements/extra-csv.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ numpy==2.2.6
88
# via
99
# -c requirements/base.txt
1010
# pandas
11-
pandas==2.3.0
11+
pandas==2.3.1
1212
# via -r ./extra-csv.in
1313
python-dateutil==2.9.0.post0
1414
# via

requirements/extra-docx.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
#
55
# pip-compile ./extra-docx.in
66
#
7-
lxml==5.4.0
7+
lxml==6.0.0
88
# via
99
# -c requirements/base.txt
1010
# python-docx
1111
python-docx==1.2.0
1212
# via -r ./extra-docx.in
13-
typing-extensions==4.14.0
13+
typing-extensions==4.14.1
1414
# via
1515
# -c requirements/base.txt
1616
# python-docx

requirements/extra-markdown.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
#
55
# pip-compile ./extra-markdown.in
66
#
7-
markdown==3.8
7+
markdown==3.8.2
88
# via -r ./extra-markdown.in

requirements/extra-odt.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
#
55
# pip-compile ./extra-odt.in
66
#
7-
lxml==5.4.0
7+
lxml==6.0.0
88
# via
99
# -c requirements/base.txt
1010
# python-docx
1111
pypandoc==1.15
1212
# via -r ./extra-odt.in
1313
python-docx==1.2.0
1414
# via -r ./extra-odt.in
15-
typing-extensions==4.14.0
15+
typing-extensions==4.14.1
1616
# via
1717
# -c requirements/base.txt
1818
# python-docx

requirements/extra-paddleocr.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ anyio==4.9.0
1616
# via
1717
# -c requirements/base.txt
1818
# httpx
19-
astor==0.8.1
20-
# via paddlepaddle
2119
beautifulsoup4==4.13.4
2220
# via
2321
# -c requirements/base.txt
2422
# unstructured-paddleocr
25-
certifi==2025.6.15
23+
certifi==2025.7.9
2624
# via
2725
# -c requirements/base.txt
2826
# httpcore
@@ -42,7 +40,7 @@ exceptiongroup==1.3.0
4240
# anyio
4341
fire==0.7.0
4442
# via unstructured-paddleocr
45-
fonttools==4.58.4
43+
fonttools==4.58.5
4644
# via unstructured-paddleocr
4745
h11==0.16.0
4846
# via
@@ -66,7 +64,7 @@ imageio==2.37.0
6664
# via scikit-image
6765
lazy-loader==0.4
6866
# via scikit-image
69-
lxml==5.4.0
67+
lxml==6.0.0
7068
# via
7169
# -c requirements/base.txt
7270
# python-docx
@@ -90,11 +88,11 @@ numpy==2.2.6
9088
# shapely
9189
# tifffile
9290
# unstructured-paddleocr
93-
opencv-contrib-python==4.11.0.86
91+
opencv-contrib-python==4.12.0.88
9492
# via unstructured-paddleocr
95-
opencv-python==4.11.0.86
93+
opencv-python==4.12.0.88
9694
# via unstructured-paddleocr
97-
opencv-python-headless==4.11.0.86
95+
opencv-python-headless==4.12.0.88
9896
# via
9997
# albucore
10098
# albumentations
@@ -105,7 +103,7 @@ packaging==25.0
105103
# -c requirements/base.txt
106104
# lazy-loader
107105
# scikit-image
108-
paddlepaddle==3.0.0
106+
paddlepaddle==3.1.0
109107
# via -r ./extra-paddleocr.in
110108
pillow==11.3.0
111109
# via
@@ -145,7 +143,7 @@ scipy==1.15.3
145143
# scikit-image
146144
shapely==2.1.1
147145
# via unstructured-paddleocr
148-
simsimd==6.4.9
146+
simsimd==6.5.0
149147
# via albucore
150148
sniffio==1.3.1
151149
# via
@@ -165,7 +163,7 @@ tqdm==4.67.1
165163
# via
166164
# -c requirements/base.txt
167165
# unstructured-paddleocr
168-
typing-extensions==4.14.0
166+
typing-extensions==4.14.1
169167
# via
170168
# -c requirements/base.txt
171169
# anyio
@@ -180,7 +178,7 @@ typing-inspection==0.4.1
180178
# via pydantic
181179
unstructured-paddleocr==2.10.0
182180
# via -r ./extra-paddleocr.in
183-
urllib3==2.4.0
181+
urllib3==2.5.0
184182
# via
185183
# -c requirements/base.txt
186184
# -c requirements/deps/constraints.txt

requirements/extra-pdf-image.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
#
55
# pip-compile ./extra-pdf-image.in
66
#
7-
accelerate==1.7.0
7+
accelerate==1.8.1
88
# via unstructured-inference
99
antlr4-python3-runtime==4.9.3
1010
# via omegaconf
1111
cachetools==5.5.2
1212
# via google-auth
13-
certifi==2025.6.15
13+
certifi==2025.7.9
1414
# via
1515
# -c requirements/base.txt
1616
# requests
@@ -27,7 +27,7 @@ coloredlogs==15.0.1
2727
# via onnxruntime
2828
contourpy==1.3.2
2929
# via matplotlib
30-
cryptography==45.0.4
30+
cryptography==45.0.5
3131
# via
3232
# -c requirements/base.txt
3333
# pdfminer-six
@@ -44,7 +44,7 @@ filelock==3.18.0
4444
# transformers
4545
flatbuffers==25.2.10
4646
# via onnxruntime
47-
fonttools==4.58.4
47+
fonttools==4.58.5
4848
# via matplotlib
4949
fsspec==2025.5.1
5050
# via
@@ -62,16 +62,16 @@ googleapis-common-protos==1.70.0
6262
# via
6363
# google-api-core
6464
# grpcio-status
65-
grpcio==1.73.0
65+
grpcio==1.73.1
6666
# via
6767
# -c requirements/deps/constraints.txt
6868
# google-api-core
6969
# grpcio-status
70-
grpcio-status==1.73.0
70+
grpcio-status==1.73.1
7171
# via google-api-core
72-
hf-xet==1.1.4
72+
hf-xet==1.1.5
7373
# via huggingface-hub
74-
huggingface-hub==0.33.0
74+
huggingface-hub==0.33.2
7575
# via
7676
# accelerate
7777
# timm
@@ -88,7 +88,7 @@ jinja2==3.1.6
8888
# via torch
8989
kiwisolver==1.4.8
9090
# via matplotlib
91-
lxml==5.4.0
91+
lxml==6.0.0
9292
# via
9393
# -c requirements/base.txt
9494
# pikepdf
@@ -125,7 +125,7 @@ onnxruntime==1.22.0
125125
# via
126126
# -r ./extra-pdf-image.in
127127
# unstructured-inference
128-
opencv-python==4.11.0.86
128+
opencv-python==4.12.0.88
129129
# via unstructured-inference
130130
packaging==25.0
131131
# via
@@ -137,7 +137,7 @@ packaging==25.0
137137
# pikepdf
138138
# transformers
139139
# unstructured-pytesseract
140-
pandas==2.3.0
140+
pandas==2.3.1
141141
# via unstructured-inference
142142
pdf2image==1.17.0
143143
# via -r ./extra-pdf-image.in
@@ -146,9 +146,9 @@ pdfminer-six==20250327
146146
# -c requirements/deps/constraints.txt
147147
# -r ./extra-pdf-image.in
148148
# unstructured-inference
149-
pi-heif==0.22.0
149+
pi-heif==1.0.0
150150
# via -r ./extra-pdf-image.in
151-
pikepdf==9.8.1
151+
pikepdf==9.9.0
152152
# via -r ./extra-pdf-image.in
153153
pillow==11.3.0
154154
# via
@@ -190,7 +190,7 @@ pycparser==2.22
190190
# cffi
191191
pyparsing==3.2.3
192192
# via matplotlib
193-
pypdf==5.6.0
193+
pypdf==5.7.0
194194
# via
195195
# -c requirements/base.txt
196196
# -r ./extra-pdf-image.in
@@ -243,11 +243,11 @@ sympy==1.14.0
243243
# via
244244
# onnxruntime
245245
# torch
246-
timm==1.0.15
246+
timm==1.0.16
247247
# via
248248
# effdet
249249
# unstructured-inference
250-
tokenizers==0.21.1
250+
tokenizers==0.21.2
251251
# via
252252
# -c requirements/deps/constraints.txt
253253
# transformers
@@ -267,9 +267,9 @@ tqdm==4.67.1
267267
# -c requirements/base.txt
268268
# huggingface-hub
269269
# transformers
270-
transformers==4.52.4
270+
transformers==4.53.1
271271
# via unstructured-inference
272-
typing-extensions==4.14.0
272+
typing-extensions==4.14.1
273273
# via
274274
# -c requirements/base.txt
275275
# huggingface-hub
@@ -282,7 +282,7 @@ unstructured-inference==1.0.5
282282
# via -r ./extra-pdf-image.in
283283
unstructured-pytesseract==0.3.15
284284
# via -r ./extra-pdf-image.in
285-
urllib3==2.4.0
285+
urllib3==2.5.0
286286
# via
287287
# -c requirements/base.txt
288288
# -c requirements/deps/constraints.txt

0 commit comments

Comments
 (0)