Skip to content

Commit 7c05dec

Browse files
ajjimenobadGarnet
andauthored
Support python version 3.10+ (#426)
Support python version 3.10+, versions below 3.10 are not supported. --------- Co-authored-by: Yao You <[email protected]>
1 parent 418cdf4 commit 7c05dec

File tree

9 files changed

+114
-150
lines changed

9 files changed

+114
-150
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
setup:
1111
strategy:
1212
matrix:
13-
python-version: ["3.9","3.10","3.11", "3.12"]
13+
python-version: ["3.10","3.11", "3.12"]
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
@@ -39,7 +39,7 @@ jobs:
3939
lint:
4040
strategy:
4141
matrix:
42-
python-version: ["3.9","3.10","3.11", "3.12"]
42+
python-version: ["3.10","3.11", "3.12"]
4343
runs-on: ubuntu-latest
4444
needs: setup
4545
steps:
@@ -71,7 +71,7 @@ jobs:
7171
test:
7272
strategy:
7373
matrix:
74-
python-version: ["3.9","3.10","3.11", "3.12"]
74+
python-version: ["3.10","3.11", "3.12"]
7575
runs-on: ubuntu-latest
7676
needs: [setup, lint]
7777
steps:
@@ -166,4 +166,4 @@ jobs:
166166
- 'unstructured_inference/**'
167167
168168
- if: steps.changes.outputs.src == 'true' && github.ref != 'refs/heads/main'
169-
uses: dangoslen/changelog-enforcer@v3
169+
uses: dangoslen/changelog-enforcer@v3

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.0
2+
3+
* feat: support for Python 3.10+; drop support for Python 3.9
4+
15
## 0.8.11
26

37
* feat: remove `donut` model

requirements/base.txt

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile requirements/base.in
66
#
7-
certifi==2025.1.31
7+
certifi==2025.4.26
88
# via requests
99
cffi==1.17.1
1010
# via cryptography
11-
charset-normalizer==3.4.1
11+
charset-normalizer==3.4.2
1212
# via
1313
# pdfminer-six
1414
# requests
1515
coloredlogs==15.0.1
1616
# via onnxruntime
17-
contourpy==1.3.0
17+
contourpy==1.3.2
1818
# via matplotlib
19-
cryptography==44.0.2
19+
cryptography==44.0.3
2020
# via pdfminer-six
2121
cycler==0.12.1
2222
# via matplotlib
23-
filelock==3.17.0
23+
filelock==3.18.0
2424
# via
2525
# huggingface-hub
2626
# torch
2727
# transformers
2828
flatbuffers==25.2.10
2929
# via onnxruntime
30-
fonttools==4.56.0
30+
fonttools==4.58.0
3131
# via matplotlib
32-
fsspec==2025.3.0
32+
fsspec==2025.3.2
3333
# via
3434
# huggingface-hub
3535
# torch
36-
huggingface-hub==0.29.3
36+
huggingface-hub==0.31.2
3737
# via
3838
# -r requirements/base.in
3939
# timm
@@ -43,21 +43,19 @@ humanfriendly==10.0
4343
# via coloredlogs
4444
idna==3.10
4545
# via requests
46-
importlib-resources==6.5.2
47-
# via matplotlib
4846
jinja2==3.1.6
4947
# via torch
50-
kiwisolver==1.4.7
48+
kiwisolver==1.4.8
5149
# via matplotlib
5250
markupsafe==3.0.2
5351
# via jinja2
54-
matplotlib==3.9.4
52+
matplotlib==3.10.3
5553
# via -r requirements/base.in
5654
mpmath==1.3.0
5755
# via sympy
58-
networkx==3.2.1
56+
networkx==3.4.2
5957
# via torch
60-
numpy==2.0.2
58+
numpy==2.2.5
6159
# via
6260
# -r requirements/base.in
6361
# contourpy
@@ -69,33 +67,33 @@ numpy==2.0.2
6967
# scipy
7068
# torchvision
7169
# transformers
72-
onnx==1.17.0
70+
onnx==1.18.0
7371
# via -r requirements/base.in
74-
onnxruntime==1.19.2
72+
onnxruntime==1.22.0
7573
# via -r requirements/base.in
7674
opencv-python==4.11.0.86
7775
# via -r requirements/base.in
78-
packaging==24.2
76+
packaging==25.0
7977
# via
8078
# huggingface-hub
8179
# matplotlib
8280
# onnxruntime
8381
# transformers
8482
pandas==2.2.3
8583
# via -r requirements/base.in
86-
pdfminer-six==20240706
84+
pdfminer-six==20250506
8785
# via -r requirements/base.in
88-
pillow==11.1.0
86+
pillow==11.2.1
8987
# via
9088
# matplotlib
9189
# torchvision
92-
protobuf==6.30.0
90+
protobuf==6.31.0
9391
# via
9492
# onnx
9593
# onnxruntime
9694
pycparser==2.22
9795
# via cffi
98-
pyparsing==3.2.1
96+
pyparsing==3.2.3
9997
# via matplotlib
10098
pypdfium2==4.30.1
10199
# via -r requirements/base.in
@@ -105,14 +103,14 @@ python-dateutil==2.9.0.post0
105103
# pandas
106104
python-multipart==0.0.20
107105
# via -r requirements/base.in
108-
pytz==2025.1
106+
pytz==2025.2
109107
# via pandas
110108
pyyaml==6.0.2
111109
# via
112110
# huggingface-hub
113111
# timm
114112
# transformers
115-
rapidfuzz==3.12.2
113+
rapidfuzz==3.13.0
116114
# via -r requirements/base.in
117115
regex==2024.11.6
118116
# via transformers
@@ -124,38 +122,40 @@ safetensors==0.5.3
124122
# via
125123
# timm
126124
# transformers
127-
scipy==1.13.1
125+
scipy==1.15.3
128126
# via -r requirements/base.in
129127
six==1.17.0
130128
# via python-dateutil
131-
sympy==1.13.1
129+
sympy==1.14.0
132130
# via
133131
# onnxruntime
134132
# torch
135133
timm==1.0.15
136134
# via -r requirements/base.in
137135
tokenizers==0.21.1
138136
# via transformers
139-
torch==2.6.0
137+
torch==2.7.0
140138
# via
141139
# -r requirements/base.in
142140
# timm
143141
# torchvision
144-
torchvision==0.21.0
142+
torchvision==0.22.0
145143
# via timm
146144
tqdm==4.67.1
147145
# via
148146
# huggingface-hub
149147
# transformers
150-
transformers==4.49.0
148+
transformers==4.51.3
151149
# via -r requirements/base.in
152-
typing-extensions==4.12.2
150+
typing-extensions==4.13.2
153151
# via
154152
# huggingface-hub
153+
# onnx
155154
# torch
156-
tzdata==2025.1
155+
tzdata==2025.2
157156
# via pandas
158-
urllib3==2.3.0
157+
urllib3==2.4.0
159158
# via requests
160-
zipp==3.21.0
161-
# via importlib-resources
159+
160+
# The following packages are considered to be unsafe in a requirements file:
161+
# setuptools

0 commit comments

Comments
 (0)