Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
context:
version: 5.0.0
name: opencv
build_number: 3
build_number: 4

build:
number: ${{ build_number }}
Expand All @@ -17,7 +17,6 @@ outputs:
- ${{ compiler('cxx') }}
- cmake
- ninja
- python
- cross-python_emscripten-wasm32
host:
- zlib
Expand All @@ -39,6 +38,8 @@ outputs:
ignore_run_exports:
from_package:
- python
- numpy
- cross-python_emscripten-wasm32
source:
- url: https://github.com/opencv/opencv/archive/refs/tags/${{ version }}.tar.gz
sha256: b0528f5a1d379d59d4701cb28c36e22214cc51cf64594e5b56f2d3e6c0233095
Expand All @@ -52,6 +53,7 @@ outputs:
inherit: build-cache
build:
number: ${{ build_number }}
string: h${{ hash }}_${{ build_number }}
script: echo "Collecting C++ files from cache"
files:
include:
Expand Down Expand Up @@ -79,6 +81,8 @@ outputs:
- sqlitecpp
- jasper
- gdcm
run_exports:
- ${{ pin_subpackage('libopencv', exact=True) }}
tests:
- package_contents:
include:
Expand Down Expand Up @@ -122,7 +126,7 @@ outputs:
- tests/

- package:
name: opencv
name: py-opencv
version: ${{ version }}
inherit: build-cache
build:
Expand All @@ -139,11 +143,12 @@ outputs:
skip_pyc_compilation:
- '**/*.py'
requirements:
run:
host:
- python
- python_abi 3.13.* *_cp313
- numpy
run:
- libopencv =${{ version }}

tests:
- script: pytester
files:
Expand All @@ -155,6 +160,21 @@ outputs:
run:
- pytester-run

- package:
name: opencv
version: ${{ version }}
inherit: build-cache
build:
number: ${{ build_number }}
string: h${{ hash }}_${{ build_number }}
script: echo "OpenCV meta-package"
requirements:
run:
- ${{ pin_subpackage('libopencv', exact=True) }}
- ${{ pin_subpackage('py-opencv', exact=True) }}
tests:
- script: echo "OpenCV meta-package"

about:
homepage: https://opencv.org/
license: Apache-2.0
Expand Down