From 0b8376d8e6748462e826cbaa6893695e661cc534 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 28 Nov 2024 11:56:46 +0100 Subject: [PATCH 1/3] Add batchgenerators --- recipes/batchgenerators/meta.yaml | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 recipes/batchgenerators/meta.yaml diff --git a/recipes/batchgenerators/meta.yaml b/recipes/batchgenerators/meta.yaml new file mode 100644 index 0000000000000..889221914da3a --- /dev/null +++ b/recipes/batchgenerators/meta.yaml @@ -0,0 +1,53 @@ +{% set name = "batchgenerators" %} +{% set version = "0.25.1" %} +{% set python_min = "3.9" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/batchgenerators-{{ version }}.tar.gz + sha256: 4663a7f393bf1681d7675648362ba3f11b2a9474fb17228a92aac5d1ad28bb39 + patches: + - python3.patch + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python {{ python_min }} + - pip + - setuptools + run: + - python >={{ python_min }} + - pillow >=7.1.2 + - numpy >=1.10.2 + - scipy + - scikit-image + - scikit-learn + - future + - pandas + - threadpoolctl + +test: + imports: + - batchgenerators + commands: + - pip check + requires: + - pip + - python {{ python_min }} + +about: + home: https://github.com/MIC-DKFZ/batchgenerators + summary: Data augmentation toolkit + license: Apache-2.0 + license_file: LICENSE + +extra: + recipe-maintainers: + - jan-janssen From 1a083dc1c0400dc64ea62a2fdd2d1fcf0713ef7d Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 28 Nov 2024 11:57:19 +0100 Subject: [PATCH 2/3] Create python3.patch --- recipes/batchgenerators/python3.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes/batchgenerators/python3.patch diff --git a/recipes/batchgenerators/python3.patch b/recipes/batchgenerators/python3.patch new file mode 100644 index 0000000000000..6bc1ec7b94a22 --- /dev/null +++ b/recipes/batchgenerators/python3.patch @@ -0,0 +1,21 @@ +From d02c1f641b672f23cdddda014bc66ed22874ef13 Mon Sep 17 00:00:00 2001 +From: Jan Janssen +Date: Thu, 28 Nov 2024 11:44:59 +0100 +Subject: [PATCH] remove unittest2 + +--- + setup.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 6c0a50e..6fbb14c 100755 +--- a/setup.py ++++ b/setup.py +@@ -17,7 +17,6 @@ + "scikit-learn", + "future", + "pandas", +- "unittest2", + "threadpoolctl" + ], + keywords=['data augmentation', 'deep learning', 'image segmentation', 'image classification', From cab3b85d8868a7d3d86487f0a7a44ead6931f05e Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 28 Nov 2024 18:00:09 +0100 Subject: [PATCH 3/3] Update meta.yaml --- recipes/batchgenerators/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/batchgenerators/meta.yaml b/recipes/batchgenerators/meta.yaml index 889221914da3a..d110f7e5ba231 100644 --- a/recipes/batchgenerators/meta.yaml +++ b/recipes/batchgenerators/meta.yaml @@ -10,7 +10,7 @@ source: url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/batchgenerators-{{ version }}.tar.gz sha256: 4663a7f393bf1681d7675648362ba3f11b2a9474fb17228a92aac5d1ad28bb39 patches: - - python3.patch + - python3.patch # Based on https://github.com/MIC-DKFZ/batchgenerators/pull/130 build: noarch: python