Skip to content

Commit 80b931a

Browse files
committed
[dist] Pin OpenCV to < 4.13 due to test failures #257
1 parent 3153bca commit 80b931a

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ jobs:
5050
version: "0.5.11"
5151
python-version: ${{ matrix.python-version }}
5252

53+
# TODO(#257): Unpin OpenCV versions once we figure out why frame numbers are mismatching in tests.
5354
- name: Install Dependencies
5455
run: |
5556
uv pip install --upgrade build wheel virtualenv
56-
uv pip install opencv-python-headless opencv-contrib-python-headless --only-binary :all:
57+
uv pip install opencv-python-headless\<4.13 opencv-contrib-python-headless\<4.13 --only-binary :all:
5758
uv pip install -r requirements_headless.txt -r docs/requirements.txt
5859
5960
- name: Setup FFmpeg

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# DVR-Scan Python Requirements
33
#
44
numpy
5-
opencv-python
6-
opencv-contrib-python
5+
# TODO(#257): Unpin OpenCV versions once we figure out why frame numbers are mismatching in tests.
6+
opencv-python<4.13
7+
opencv-contrib-python<4.13
78
pillow
89
platformdirs
910
pytest

requirements_headless.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# DVR-Scan Python Requirements
33
#
44
numpy
5-
opencv-python-headless
6-
opencv-contrib-python-headless
5+
# TODO(#257): Unpin OpenCV versions once we figure out why frame numbers are mismatching in tests.
6+
opencv-python-headless<4.13
7+
opencv-contrib-python-headless<4.13
78
pillow
89
platformdirs
910
pytest

setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ install_requires =
4949
scenedetect
5050
screeninfo
5151
tqdm
52-
opencv-python
53-
opencv-contrib-python
52+
# TODO(#257): Unpin OpenCV versions once we figure out why frame numbers are mismatching in tests.
53+
opencv-python<4.13
54+
opencv-contrib-python<4.13
5455
pillow
5556
packages =
5657
# Main application

0 commit comments

Comments
 (0)