From 21768c9423db0c55d29855aee7aab443d48a9f9d Mon Sep 17 00:00:00 2001 From: fynnbe Date: Wed, 15 Nov 2023 09:22:56 +0100 Subject: [PATCH 1/2] pin bioimageio.spec again to 0.4.9.* --- setup.py | 2 +- tests/test_bioimageio_spec_version.py | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index c85245c3..3fc27a76 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ ], packages=find_namespace_packages(exclude=["tests"]), # Required install_requires=[ - "bioimageio.spec==0.4.9", + "bioimageio.spec==0.4.9.*", "imageio>=2.5", "numpy", "ruamel.yaml", diff --git a/tests/test_bioimageio_spec_version.py b/tests/test_bioimageio_spec_version.py index 59cddd83..fcd95582 100644 --- a/tests/test_bioimageio_spec_version.py +++ b/tests/test_bioimageio_spec_version.py @@ -29,13 +29,11 @@ def test_bioimageio_spec_version(): print(req) assert req.startswith("bioimageio.spec ==") spec_ver = req[len("bioimageio.spec ==") :] - assert spec_ver.count(".") == 2 - pmaj, pmin, ppatchand_and_post = spec_ver.split(".") - assert (ppatchand_and_post.isdigit() or ppatchand_and_post[:-1].isdigit()) and ( - ppatchand_and_post[-1] == "*" or ppatchand_and_post[-1].isdigit() - ), "bioimageio.spec version should be pinned down to patch, e.g. '0.4.9*'" + assert spec_ver.count(".") == 3 + pmaj, pmin, ppatch, post = spec_ver.split(".") + assert ( + pmaj.isdigit() and pmin.isdigit() and ppatch.isdigit() and post == "*" + ), "bioimageio.spec version should be pinned down to patch, e.g. '0.4.9.*'" - ppatch = ppatchand_and_post[:-1] if ppatchand_and_post[-1] == "*" else ppatchand_and_post pinned = Version(f"{pmaj}.{pmin}.{ppatch}") - - assert pinned >= released, "bioimageio.spec pinned to an old version!" + assert pinned == released, "bioimageio.spec not pinned to the latest version" From b586b861e7b5eb8c21cb6380980aac12f74ea431 Mon Sep 17 00:00:00 2001 From: fynnbe Date: Wed, 15 Nov 2023 11:18:05 +0100 Subject: [PATCH 2/2] bump patch --- bioimageio/core/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bioimageio/core/VERSION b/bioimageio/core/VERSION index 835cc7ae..167d3d30 100644 --- a/bioimageio/core/VERSION +++ b/bioimageio/core/VERSION @@ -1,3 +1,3 @@ { - "version": "0.5.10" + "version": "0.5.11" }