Skip to content

Commit 7777111

Browse files
authored
Merge pull request #77 from petercorke/feat/opencv-dual-version-support
2 parents 2522d2f + 457d7cf commit 7777111

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, macos-15, windows-latest]
1717
python-version: ["3.10", "3.11", "3.12", "3.13"]
18+
opencv-version: ["4", "5"]
1819

1920
steps:
2021
- uses: actions/checkout@v7
@@ -30,6 +31,7 @@ jobs:
3031
- name: Install package
3132
run: |
3233
pip install .[dev,tool]
34+
pip install "opencv-python==${{ matrix.opencv-version }}.*" "opencv-contrib-python==${{ matrix.opencv-version }}.*"
3335
cd packages/mvtb-data && pip install .
3436
3537
- name: Run tests

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ dependencies = [
3939
"scipy",
4040
"matplotlib",
4141
"pillow",
42-
"opencv-python<5.0.0",
43-
"opencv-contrib-python<5.0.0",
42+
"opencv-python>=4.5,<6.0.0",
43+
"opencv-contrib-python>=4.5,<6.0.0",
4444
"spatialmath-python",
4545
"pgraph-python",
4646
"ansitable",

0 commit comments

Comments
 (0)