Skip to content

Commit 5843ae2

Browse files
authored
build: update opencv python newer ffmpeg (#457)
With the [latest release](https://github.com/opencv/opencv-python/releases/tag/90), OpenCV Python is now using a newer version of ffmpeg without CVE-2023-6605. This PR pulls that version in. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Release 1.1.7** addressing dependency updates and lockfile generation. > > - Upgrade `opencv-python` to `4.13.0.90` to include ffmpeg fix for CVE-2023-6605 > - Switch Makefile `pip-compile` steps to `uv pip compile`; regenerate `requirements/base.txt`, `requirements/test.txt`, and `requirements/dev.txt` with updated pins > - Bump package version to `1.1.7` and update `CHANGELOG.md` > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit d66dba2. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 8a9a2de commit 5843ae2

File tree

7 files changed

+89
-90
lines changed

7 files changed

+89
-90
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.7
2+
3+
- Update OpenCV-Python to 4.13.0.90 to squash ffmpeg vulnerability CVE-2023-6605
4+
15
## 1.1.6
26

37
- Use inference_config to set default rendering DPI

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ install-dev: install-test
3939
## pip-compile: compiles all base/dev/test requirements
4040
.PHONY: pip-compile
4141
pip-compile:
42-
pip-compile --upgrade requirements/base.in
43-
pip-compile --upgrade requirements/test.in
44-
pip-compile --upgrade requirements/dev.in
42+
uv pip compile --python-version 3.10 requirements/base.in -o requirements/base.txt --no-emit-package pip --no-emit-package setuptools
43+
uv pip compile --python-version 3.10 requirements/test.in -o requirements/test.txt --no-emit-package pip --no-emit-package setuptools
44+
uv pip compile --python-version 3.10 requirements/dev.in -o requirements/dev.txt --no-emit-package pip --no-emit-package setuptools
4545

4646
#################
4747
# Test and Lint #

requirements/base.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
python-multipart
33
huggingface-hub
44
numpy
5-
opencv-python>=4.12
5+
opencv-python>=4.13.0.90
66
onnx
77
onnxruntime>=1.18.0
88
matplotlib

requirements/base.txt

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile --python-version 3.10 requirements/base.in -o requirements/base.txt --no-emit-package pip --no-emit-package setuptools
3-
accelerate==1.12.0
3+
accelerate==1.10.1
44
# via -r requirements/base.in
5-
certifi==2025.11.12
5+
certifi==2026.1.4
66
# via requests
77
cffi==2.0.0
88
# via cryptography
@@ -12,20 +12,20 @@ charset-normalizer==3.4.4
1212
# requests
1313
coloredlogs==15.0.1
1414
# via onnxruntime
15-
contourpy==1.3.2
15+
contourpy==1.3.0
1616
# via matplotlib
1717
cryptography==46.0.3
1818
# via pdfminer-six
1919
cycler==0.12.1
2020
# via matplotlib
21-
filelock==3.20.0
21+
filelock==3.19.1
2222
# via
2323
# huggingface-hub
2424
# torch
2525
# transformers
26-
flatbuffers==25.9.23
26+
flatbuffers==25.12.19
2727
# via onnxruntime
28-
fonttools==4.61.0
28+
fonttools==4.60.2
2929
# via
3030
# -c requirements/constraints.in
3131
# matplotlib
@@ -48,19 +48,19 @@ idna==3.11
4848
# via requests
4949
jinja2==3.1.6
5050
# via torch
51-
kiwisolver==1.4.9
51+
kiwisolver==1.4.7
5252
# via matplotlib
5353
markupsafe==3.0.3
5454
# via jinja2
55-
matplotlib==3.10.7
55+
matplotlib==3.9.4
5656
# via -r requirements/base.in
5757
ml-dtypes==0.5.4
5858
# via onnx
5959
mpmath==1.3.0
6060
# via sympy
61-
networkx==3.4.2
61+
networkx==3.2.1
6262
# via torch
63-
numpy==2.2.6
63+
numpy==2.0.2
6464
# via
6565
# -r requirements/base.in
6666
# accelerate
@@ -76,9 +76,9 @@ numpy==2.2.6
7676
# transformers
7777
onnx==1.19.1
7878
# via -r requirements/base.in
79-
onnxruntime==1.23.2
79+
onnxruntime==1.19.2
8080
# via -r requirements/base.in
81-
opencv-python==4.12.0.88
81+
opencv-python==4.13.0.90
8282
# via -r requirements/base.in
8383
packaging==25.0
8484
# via
@@ -91,21 +91,21 @@ pandas==2.3.3
9191
# via -r requirements/base.in
9292
pdfminer-six==20251107
9393
# via -r requirements/base.in
94-
pillow==12.0.0
94+
pillow==11.3.0
9595
# via
9696
# matplotlib
9797
# torchvision
98-
protobuf==6.33.1
98+
protobuf==6.33.4
9999
# via
100100
# onnx
101101
# onnxruntime
102-
psutil==7.1.3
102+
psutil==7.2.1
103103
# via accelerate
104104
pycparser==2.23
105105
# via cffi
106-
pyparsing==3.2.5
106+
pyparsing==3.3.1
107107
# via matplotlib
108-
pypdfium2==5.0.0
108+
pypdfium2==5.3.0
109109
# via -r requirements/base.in
110110
python-dateutil==2.9.0.post0
111111
# via
@@ -121,9 +121,9 @@ pyyaml==6.0.3
121121
# huggingface-hub
122122
# timm
123123
# transformers
124-
rapidfuzz==3.14.3
124+
rapidfuzz==3.13.0
125125
# via -r requirements/base.in
126-
regex==2025.11.3
126+
regex==2026.1.15
127127
# via transformers
128128
requests==2.32.5
129129
# via
@@ -134,41 +134,41 @@ safetensors==0.7.0
134134
# accelerate
135135
# timm
136136
# transformers
137-
scipy==1.15.3
137+
scipy==1.13.1
138138
# via -r requirements/base.in
139139
six==1.17.0
140140
# via python-dateutil
141141
sympy==1.14.0
142142
# via
143143
# onnxruntime
144144
# torch
145-
timm==1.0.22
145+
timm==1.0.24
146146
# via -r requirements/base.in
147-
tokenizers==0.22.1
147+
tokenizers==0.22.2
148148
# via transformers
149-
torch==2.9.1
149+
torch==2.8.0
150150
# via
151151
# -r requirements/base.in
152152
# accelerate
153153
# timm
154154
# torchvision
155-
torchvision==0.24.1
155+
torchvision==0.23.0
156156
# via timm
157157
tqdm==4.67.1
158158
# via
159159
# huggingface-hub
160160
# transformers
161-
transformers==4.57.1
161+
transformers==4.57.6
162162
# via -r requirements/base.in
163163
typing-extensions==4.15.0
164164
# via
165165
# cryptography
166166
# huggingface-hub
167167
# onnx
168168
# torch
169-
tzdata==2025.2
169+
tzdata==2025.3
170170
# via pandas
171-
urllib3==2.6.2
171+
urllib3==2.6.3
172172
# via
173173
# -c requirements/constraints.in
174174
# requests

0 commit comments

Comments
 (0)