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

Update minimum required BoM Analytics Services version #670

Merged
merged 2 commits into from
Dec 16, 2024
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
1 change: 1 addition & 0 deletions doc/changelog.d/670.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update minimum required BoM Analytics Services version
5 changes: 3 additions & 2 deletions src/ansys/grantami/bomanalytics/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
MI_AUTH_PATH = "/Health/v2.svc"
GRANTA_APPLICATION_NAME_HEADER = "PyGranta BoM Analytics"

MINIMUM_GRANTA_MI_VERSION = (24, 1)
MINIMUM_BAS_VERSION = (24, 2)

if TYPE_CHECKING:
from ._item_results import Licensing
Expand Down Expand Up @@ -215,7 +215,8 @@ def _test_connection(client: "BomAnalyticsClient") -> None:
raise ConnectionError(
"Cannot find the BoM Analytics service in Granta MI Service Layer. Ensure a compatible version of "
"the Restricted Substances And Sustainability Reports are available on the server and try again."
f"The minimum required version is {'.'.join([str(e) for e in MINIMUM_GRANTA_MI_VERSION])}."
"The minimum required Restricted Substances And Sustainability Reports version is "
f"{'.'.join([str(e) for e in MINIMUM_BAS_VERSION])}."
)
else:
raise ConnectionError(
Expand Down
Loading