From 53845f4cac790db99648e7c2dea508d7e5ec5a83 Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:08:29 -0500 Subject: [PATCH 1/8] Create recipe.yaml --- recipes/max-cv/recipe.yaml | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 recipes/max-cv/recipe.yaml diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml new file mode 100644 index 0000000..f3f2ada --- /dev/null +++ b/recipes/max-cv/recipe.yaml @@ -0,0 +1,50 @@ +context: + version: "24.6.0" + +package: + name: "max-cv" + version: ${{ version }} + +source: + - git: https://github.com/BradLarson/max-cv.git + rev: 31f67369b33680ca0b13acfe6c8f87d79dd002a3 + +build: + number: 0 + script: + - mojo package max-cv -o ${{ PREFIX }}/lib/mojo/max-cv.mojopkg + +requirements: + host: + - max =24.6 + run: + - ${{ pin_compatible('max') }} + +tests: + - script: + - if: unix + then: + - mojo run tests/__init__.mojo + requirements: + run: + - max =24.6 + files: + recipe: + - tests/run_tests.mojo + - tests/common.py + - tests/conftest.py + - tests/test_color_correction.py + - tests/test_effects.py + - tests/test_io.py + - tests/test_pipeline.py + +about: + homepage: https://github.com/BradLarson/max-cv + license: Apache-2.0 + license_file: LICENSE + summary: An image processing framework built upon MAX + repository: https://github.com/BradLarson/max-cv + +extra: + maintainers: + - BradLarson From 34b903929aeeb7ee33704ae473059ff800f7ea99 Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:23:46 -0500 Subject: [PATCH 2/8] Update recipe.yaml --- recipes/max-cv/recipe.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml index f3f2ada..9c77bbe 100644 --- a/recipes/max-cv/recipe.yaml +++ b/recipes/max-cv/recipe.yaml @@ -24,13 +24,12 @@ tests: - script: - if: unix then: - - mojo run tests/__init__.mojo + - pytest tests/__init__.py requirements: run: - max =24.6 files: recipe: - - tests/run_tests.mojo - tests/common.py - tests/conftest.py - tests/test_color_correction.py From d2674e31c9b1df35214ad7d421254c10a3344c4f Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:29:41 -0500 Subject: [PATCH 3/8] Update recipe.yaml --- recipes/max-cv/recipe.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml index 9c77bbe..40c2719 100644 --- a/recipes/max-cv/recipe.yaml +++ b/recipes/max-cv/recipe.yaml @@ -11,14 +11,16 @@ source: build: number: 0 - script: - - mojo package max-cv -o ${{ PREFIX }}/lib/mojo/max-cv.mojopkg + noarch: python + # script: pip install . -v requirements: host: - max =24.6 + - python >=3.9,<3.13 run: - ${{ pin_compatible('max') }} + - python >=3.9,<3.13 tests: - script: From 2d35e4208d494bb4e0abf41b8b3a9dcc26d888d9 Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:34:44 -0500 Subject: [PATCH 4/8] Update recipe.yaml --- recipes/max-cv/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml index 40c2719..4cfd3cc 100644 --- a/recipes/max-cv/recipe.yaml +++ b/recipes/max-cv/recipe.yaml @@ -26,7 +26,7 @@ tests: - script: - if: unix then: - - pytest tests/__init__.py + - pytest tests/common.py requirements: run: - max =24.6 From b29c311b9aecd78409ed103633c4ee4a0d88b8a8 Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:39:43 -0500 Subject: [PATCH 5/8] add pytest to requirements --- recipes/max-cv/recipe.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml index 4cfd3cc..aa41b14 100644 --- a/recipes/max-cv/recipe.yaml +++ b/recipes/max-cv/recipe.yaml @@ -30,6 +30,8 @@ tests: requirements: run: - max =24.6 + - python >=3.9,<3.13 + - pytest files: recipe: - tests/common.py From 1acff538bf68fd912c4b9c373b5b007b856d7faf Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:43:28 -0500 Subject: [PATCH 6/8] Update recipe.yaml --- recipes/max-cv/recipe.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml index aa41b14..c3d2dbc 100644 --- a/recipes/max-cv/recipe.yaml +++ b/recipes/max-cv/recipe.yaml @@ -26,7 +26,7 @@ tests: - script: - if: unix then: - - pytest tests/common.py + - pytest tests/conftest.py requirements: run: - max =24.6 @@ -34,12 +34,7 @@ tests: - pytest files: recipe: - - tests/common.py - tests/conftest.py - - tests/test_color_correction.py - - tests/test_effects.py - - tests/test_io.py - - tests/test_pipeline.py about: homepage: https://github.com/BradLarson/max-cv From 0506a8eee877ace4c5331adaaef6553916cf9157 Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:21:37 -0500 Subject: [PATCH 7/8] change SHA for stable release version --- recipes/max-cv/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml index c3d2dbc..e8314ac 100644 --- a/recipes/max-cv/recipe.yaml +++ b/recipes/max-cv/recipe.yaml @@ -7,7 +7,7 @@ package: source: - git: https://github.com/BradLarson/max-cv.git - rev: 31f67369b33680ca0b13acfe6c8f87d79dd002a3 + rev: 21bbd57404548de3c471ec8492dfcc01b76ae457 build: number: 0 From f15291bf195154319807cab8f5732cb2d804503f Mon Sep 17 00:00:00 2001 From: Caroline Frasca <42614552+carolinefrasca@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:22:15 -0500 Subject: [PATCH 8/8] Update recipe.yaml --- recipes/max-cv/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/max-cv/recipe.yaml b/recipes/max-cv/recipe.yaml index e8314ac..ad64fdc 100644 --- a/recipes/max-cv/recipe.yaml +++ b/recipes/max-cv/recipe.yaml @@ -26,7 +26,7 @@ tests: - script: - if: unix then: - - pytest tests/conftest.py + - magic run test requirements: run: - max =24.6