Skip to content
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
3 changes: 2 additions & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ Use the following compatibility table to determine which client version to use.

| AICA Core version | API protocol version | Matching Python client version |
|-------------------|----------------------|--------------------------------|
| `>= 5.0` | `v3` | `>= 4.0.0` |
| `>= 5.1` | `v3` | `>= 4.0.2` |
| `>= 5.0, < 5.1` | `v3` | Unsupported |
| `>= 4.3, < 5.0` | `v2` | `>= 3.1.0` |
| `>= 4.0, < 4.3` | `v2` | `>= 3.0.0` |
| `3.x` | `v2` | `>= 2.0.0` |
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ artifacts = [

[project]
name = "aica_api"
version = "4.0.1"
version = "4.0.2"
authors = [{ name = "Enrico Eberhard", email = "enrico@aica.tech" }]
description = "A client utility for the AICA API"
readme = "README.md"
Expand Down
10 changes: 9 additions & 1 deletion python/src/aica_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,15 @@ def check(self) -> bool:
version_info = semver.parse_version_info(self._core_version)

if version_info.major == 5:
return True
if version_info.minor >= 1:
return True
else:
self._logger.error(
f'The detected AICA Core version v{self._core_version} is older than the minimum AICA '
f'Core version supported by this client (v{self.client_version()}). Please upgrade the '
f'AICA Core instance to a newer version.'
)
return False
elif version_info.major > 5:
self._logger.error(
f'The detected AICA Core version v{self._core_version} is newer than the maximum AICA '
Expand Down
4 changes: 3 additions & 1 deletion python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.