Skip to content

Commit 2cec343

Browse files
authored
Merge pull request #464 from bioimage-io/dev
release 0.9.0
2 parents c29da13 + 161d939 commit 2cec343

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ may be controlled with the `LOGURU_LEVEL` environment variable.
364364

365365
## Changelog
366366

367-
### 0.9.0 (coming soon)
367+
### 0.9.0
368368

369369
- update to [bioimageio.spec 0.5.4.3](https://github.com/bioimage-io/spec-bioimage-io/blob/main/changelog.md#bioimageiospec-0543)
370370

bioimageio/core/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "0.8.0"
2+
"version": "0.9.0"
33
}

bioimageio/core/_resource_tests.py

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,16 +372,38 @@ def _test_in_env(
372372
raise RuntimeError("Conda not available") from e
373373

374374
working_dir.mkdir(parents=True, exist_ok=True)
375+
summary_path = working_dir / "summary.json"
375376
try:
376377
run_command(["conda", "activate", env_name])
377378
except Exception:
378379
path = working_dir / "env.yaml"
379-
_ = path.write_bytes(encoded_env)
380-
logger.debug("written conda env to {}", path)
381-
run_command(["conda", "env", "create", f"--file={path}", f"--name={env_name}"])
382-
run_command(["conda", "activate", env_name])
380+
try:
381+
_ = path.write_bytes(encoded_env)
382+
logger.debug("written conda env to {}", path)
383+
run_command(
384+
["conda", "env", "create", f"--file={path}", f"--name={env_name}"]
385+
)
386+
run_command(["conda", "activate", env_name])
387+
except Exception as e:
388+
summary = descr.validation_summary
389+
summary.add_detail(
390+
ValidationDetail(
391+
name="Conda environment creation",
392+
status="failed",
393+
loc=("weights", weight_format),
394+
recommended_env=conda_env,
395+
errors=[
396+
ErrorEntry(
397+
loc=("weights", weight_format),
398+
msg=str(e),
399+
type="conda",
400+
with_traceback=True,
401+
)
402+
],
403+
)
404+
)
405+
return summary
383406

384-
summary_path = working_dir / "summary.json"
385407
run_command(
386408
[
387409
"conda",

0 commit comments

Comments
 (0)