Skip to content

Commit 7724d59

Browse files
committed
update conda recipe
1 parent 45cb94e commit 7724d59

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

conda-recipe/meta.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ build:
1616
noarch: python
1717
number: 0
1818
entry_points:
19-
{% for ep in setup_py_data['entry_points']['console_scripts'] %}
20-
- {{ ep }}
21-
{% endfor %}
19+
bioimageio = {{ pyproject['project']['scripts']['bioimageio'] }}
2220
script: python -m pip install --no-deps --ignore-installed .
2321

2422
requirements:
@@ -28,42 +26,43 @@ requirements:
2826
- {{ dep.lower() }}
2927
{% endfor %}
3028
run:
31-
- python >=3.9,<3.13
32-
{% for dep in setup_py_data['install_requires'] %}
29+
- python {{ pyproject['project']['requires-python'] }}
30+
{% for dep in pyproject['project']['dependencies'] %}
3331
- {{ dep.lower() }}
3432
{% endfor %}
3533
run_constrained:
3634
- cudatoolkit>=10.1
37-
{% for dep in setup_py_data['extras_require']['pytorch'] %}
35+
{% for dep in pyproject['project']['optional-dependencies']['pytorch']%}
3836
{% if dep.startswith('torch>=') %} # pip: torch -> conda: pytorch
3937
- py{{ dep.lower() }}
4038
{% else %}
4139
- {{ dep.lower() }}
4240
{% endif %}
4341
{% endfor %}
44-
{% for dep in setup_py_data['extras_require']['onnx'] %}
42+
{% for dep in pyproject['project']['optional-dependencies']['onnx'] %}
4543
- {{ dep.lower() }}
4644
{% endfor %}
47-
{% for dep in setup_py_data['extras_require']['tensorflow'] %}
45+
{% for dep in pyproject['project']['optional-dependencies']['tensorflow'] %}
4846
- {{ dep.lower() }}
4947
{% endfor %}
5048

5149

5250
test:
5351
imports:
54-
- bioimageio.core
52+
- {{ pyproject['project']['name'] }}
5553
source_files:
5654
- tests
5755
requires:
58-
{% for dep in setup_py_data['extras_require']['dev'] %}
56+
{% for dep in pyproject['project']['optional-dependencies']['dev'] %}
57+
- {{ dep.replace('torch', 'pytorch').lower().replace('_', '-') }}
5958
{% if dep.startswith('torch>=') %} # pip: torch -> conda: pytorch
6059
- py{{ dep.lower() }}
6160
{% else %}
62-
- {{ dep.lower() }}
61+
- {{ dep.lower().replace('_', '-') }}
6362
{% endif %}
6463
{% endfor %}
6564
commands:
66-
- pytest
65+
- pytest --capture=no
6766

6867

6968
about:

0 commit comments

Comments
 (0)