Skip to content

Commit 099cc73

Browse files
authored
Merge pull request #361 from bioimage-io/fix_spec_pinning
pin bioimageio.spec again to 0.4.9.*
2 parents 225a7d2 + b586b86 commit 099cc73

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

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.5.10"
2+
"version": "0.5.11"
33
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
],
2727
packages=find_namespace_packages(exclude=["tests"]), # Required
2828
install_requires=[
29-
"bioimageio.spec==0.4.9",
29+
"bioimageio.spec==0.4.9.*",
3030
"imageio>=2.5",
3131
"numpy",
3232
"ruamel.yaml",

tests/test_bioimageio_spec_version.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ def test_bioimageio_spec_version():
2929
print(req)
3030
assert req.startswith("bioimageio.spec ==")
3131
spec_ver = req[len("bioimageio.spec ==") :]
32-
assert spec_ver.count(".") == 2
33-
pmaj, pmin, ppatchand_and_post = spec_ver.split(".")
34-
assert (ppatchand_and_post.isdigit() or ppatchand_and_post[:-1].isdigit()) and (
35-
ppatchand_and_post[-1] == "*" or ppatchand_and_post[-1].isdigit()
36-
), "bioimageio.spec version should be pinned down to patch, e.g. '0.4.9*'"
32+
assert spec_ver.count(".") == 3
33+
pmaj, pmin, ppatch, post = spec_ver.split(".")
34+
assert (
35+
pmaj.isdigit() and pmin.isdigit() and ppatch.isdigit() and post == "*"
36+
), "bioimageio.spec version should be pinned down to patch, e.g. '0.4.9.*'"
3737

38-
ppatch = ppatchand_and_post[:-1] if ppatchand_and_post[-1] == "*" else ppatchand_and_post
3938
pinned = Version(f"{pmaj}.{pmin}.{ppatch}")
40-
41-
assert pinned >= released, "bioimageio.spec pinned to an old version!"
39+
assert pinned == released, "bioimageio.spec not pinned to the latest version"

0 commit comments

Comments
 (0)