Skip to content

Commit

Permalink
Merge pull request #28390 from jan-janssen/batchgenerators
Browse files Browse the repository at this point in the history
Add Batchgenerators
  • Loading branch information
ocefpaf authored Nov 28, 2024
2 parents 87af773 + cab3b85 commit 102c617
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
53 changes: 53 additions & 0 deletions recipes/batchgenerators/meta.yaml
Original file line number Diff line number Diff line change
@@ -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 # Based on https://github.com/MIC-DKFZ/batchgenerators/pull/130

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
21 changes: 21 additions & 0 deletions recipes/batchgenerators/python3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From d02c1f641b672f23cdddda014bc66ed22874ef13 Mon Sep 17 00:00:00 2001
From: Jan Janssen <[email protected]>
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',

0 comments on commit 102c617

Please sign in to comment.