Skip to content

Commit

Permalink
Merge pull request #553 from bioimage-io/fix_conda_build
Browse files Browse the repository at this point in the history
Attempt to fix conda build
  • Loading branch information
FynnBe authored Mar 12, 2024
2 parents e89bf57 + 80af518 commit c3e56f3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ Made with [contrib.rocks](https://contrib.rocks).

### bioimageio.spec Python package

#### bioimageio.spec 0.5.0post1

* fix `_internal.io_utils.identify_bioimageio_yaml_file()`

#### bioimageio.spec 0.5.0

* new description formats: [generic 0.3, application 0.3, collection 0.3, dataset 0.3, notebook 0.3](generic-030--application-030--collection-030--dataset-030--notebook-030) and [model 0.5](model-050).
Expand Down
2 changes: 1 addition & 1 deletion bioimageio/spec/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.5.0"
"version": "0.5.0post1"
}
7 changes: 4 additions & 3 deletions bioimageio/spec/_internal/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from typing_extensions import Unpack

from .io import (
ALL_BIOIMAGEIO_YAML_NAMES,
BIOIMAGEIO_YAML,
BioimageioYamlContent,
FileDescr,
Expand Down Expand Up @@ -92,15 +93,15 @@ def open_bioimageio_yaml(

def identify_bioimageio_yaml_file(file_names: Iterable[FileName]) -> FileName:
file_names = sorted(file_names)
for bioimageio_name in (BIOIMAGEIO_YAML,) + ALTERNATIVE_BIOIMAGEIO_YAML_NAMES:
for bioimageio_name in ALL_BIOIMAGEIO_YAML_NAMES:
for fname in file_names:
if fname == bioimageio_name or fname.endswith(f".{fname}"):
if fname == bioimageio_name or fname.endswith(f".{bioimageio_name}"):
return fname

raise ValueError(
f"No {BIOIMAGEIO_YAML} found in {file_names}. (Looking for '{BIOIMAGEIO_YAML}'"
+ " or or any of the alterntive file names:"
+ f" {ALTERNATIVE_BIOIMAGEIO_YAML_NAMES},of any file with an extension of"
+ f" {ALTERNATIVE_BIOIMAGEIO_YAML_NAMES}, or any file with an extension of"
+ f" those, e.g. 'anything.{BIOIMAGEIO_YAML}')."
)

Expand Down
1 change: 0 additions & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ test:
{% for dep in setup_py_data['extras_require']['dev'] %}
- {{ dep.replace('torch', 'pytorch').lower() }}
{% endfor %}
- pytest-xdist[psutil] # somehow not installed from setup_py_data
commands:
- pytest -n auto --capture=no

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"packaging>=17.0",
"pooch",
"pydantic-settings",
"pydantic[email]>=2.6.3",
"pydantic>=2.6.3",
"python-dateutil",
"ruyaml",
"tqdm",
Expand All @@ -53,8 +53,9 @@
"lxml",
"pdoc",
"pre-commit",
"psutil", # parallel pytest with '-n auto'
"pyright",
"pytest-xdist[psutil]", # parallel pytest with 'pytest -n auto'
"pytest-xdist", # parallel pytest
"pytest",
"ruff", # check line length in cases black cannot fix it
]
Expand Down

0 comments on commit c3e56f3

Please sign in to comment.