Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pin bioimageio.spec again to 0.4.9.* #361

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bioimageio/core/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.5.10"
"version": "0.5.11"
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 6 additions & 8 deletions tests/test_bioimageio_spec_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Loading