Skip to content
Merged
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
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 <janssen@mpie.de>
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",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are currently discussed in a pull request up-stream MIC-DKFZ/batchgenerators#130 beyond other things.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add that link and comment in the recipe? It will be easier to find them there than in this PR when we need it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocefpaf Sure - done

"threadpoolctl"
],
keywords=['data augmentation', 'deep learning', 'image segmentation', 'image classification',