boulder-opal
Advanced tools
@@ -14,3 +14,3 @@ # Copyright 2025 Q-CTRL. All rights reserved. | ||
| __version__ = "2.3.0" | ||
| __version__ = "4.0.0" | ||
@@ -17,0 +17,0 @@ from qctrlworkflowclient.utils import check_package_version as _check_package_version |
@@ -41,4 +41,2 @@ # Copyright 2025 Q-CTRL. All rights reserved. | ||
| BOULDER_OPAL_CONFIGURATION_NAME, | ||
| BOULDER_OPAL_USER_ROLE, | ||
| INVALID_SUBSCRIPTION_ERROR, | ||
| PACKAGE_INFO, | ||
@@ -59,7 +57,5 @@ ) | ||
| client = get_authenticated_client_for_product( | ||
| product_access_required=BOULDER_OPAL_USER_ROLE, | ||
| package_name=PACKAGE_INFO.install_name, | ||
| api_url=get_default_api_url(), | ||
| auth=auth, | ||
| invalid_access_error_message=INVALID_SUBSCRIPTION_ERROR, | ||
| ) | ||
@@ -83,6 +79,5 @@ settings = get_configuration() | ||
| # Check the API key. | ||
| # Fetching user roles requires exchanging the API key for an access token. | ||
| # We can thus infer that the API key is invalid if roles cannot be fetched. | ||
| # We can infer that the API key is invalid if the access token cannot be fetched. | ||
| try: | ||
| auth.user_roles() | ||
| auth.access_token | ||
| except GraphQLQueryError as error: | ||
@@ -89,0 +84,0 @@ raise RuntimeError( |
@@ -16,13 +16,2 @@ # Copyright 2025 Q-CTRL. All rights reserved. | ||
| INVALID_SUBSCRIPTION_ERROR = """ | ||
| --------------------------------------------------------------------- | ||
| Your authentication succeeded, but your subscription is invalid for | ||
| this product. | ||
| Please access `https://boulder.q-ctrl.com` for more details. | ||
| --------------------------------------------------------------------- | ||
| """ | ||
| BOULDER_OPAL_USER_ROLE = "boulder-opal-cli-access" | ||
| API_KEY_NAME = "QCTRL_API_KEY" | ||
@@ -29,0 +18,0 @@ |
@@ -29,4 +29,2 @@ # Copyright 2025 Q-CTRL. All rights reserved. | ||
| API_KEY_NAME, | ||
| BOULDER_OPAL_USER_ROLE, | ||
| INVALID_SUBSCRIPTION_ERROR, | ||
| PACKAGE_INFO, | ||
@@ -60,7 +58,5 @@ ) | ||
| client = get_authenticated_client_for_product( | ||
| product_access_required=BOULDER_OPAL_USER_ROLE, | ||
| package_name=PACKAGE_INFO.install_name, | ||
| api_url=get_default_api_url(), | ||
| auth=get_default_api_key_auth(api_key), | ||
| invalid_access_error_message=INVALID_SUBSCRIPTION_ERROR, | ||
| ) | ||
@@ -67,0 +63,0 @@ |
@@ -40,7 +40,3 @@ # Copyright 2025 Q-CTRL. All rights reserved. | ||
| ) | ||
| from boulderopal._constants import ( | ||
| BOULDER_OPAL_USER_ROLE, | ||
| INVALID_SUBSCRIPTION_ERROR, | ||
| PACKAGE_INFO, | ||
| ) | ||
| from boulderopal._constants import PACKAGE_INFO | ||
| from boulderopal._core.formatter import ( | ||
@@ -242,7 +238,5 @@ async_result_formatter, | ||
| client = get_authenticated_client_for_product( | ||
| product_access_required=BOULDER_OPAL_USER_ROLE, | ||
| package_name=PACKAGE_INFO.install_name, | ||
| api_url=api_url, | ||
| auth=oidc_url, | ||
| invalid_access_error_message=INVALID_SUBSCRIPTION_ERROR, | ||
| ) | ||
@@ -249,0 +243,0 @@ settings = get_configuration() |
+2
-2
| Metadata-Version: 2.3 | ||
| Name: boulder-opal | ||
| Version: 3.0.0 | ||
| Version: 4.0.0 | ||
| Summary: Boulder Opal Client | ||
@@ -33,3 +33,3 @@ License: https://q-ctrl.com/terms | ||
| Requires-Dist: qctrl-commons (>=25.0.0,<26.0.0) | ||
| Requires-Dist: qctrl-workflow-client (>=5.6.0,<6.0.0) | ||
| Requires-Dist: qctrl-workflow-client (>=6.0.0,<7.0.0) | ||
| Requires-Dist: rich (>=13.6.0,<14.0.0) | ||
@@ -36,0 +36,0 @@ Requires-Dist: typing-extensions (>=4.8.0,<5.0.0) |
+3
-3
| [tool.poetry] | ||
| name = "boulder-opal" | ||
| version = "3.0.0" | ||
| version = "4.0.0" | ||
| description = "Boulder Opal Client" | ||
@@ -86,3 +86,3 @@ license = "https://q-ctrl.com/terms" | ||
| qctrl-commons = { version = "^25.0.0", source = "PyPI" } | ||
| qctrl-workflow-client = { version = "^5.6.0", source = "PyPI" } | ||
| qctrl-workflow-client = { version = "^6.0.0", source = "PyPI" } | ||
@@ -106,3 +106,3 @@ [tool.poetry.group.dev.dependencies] | ||
| qctrl-core-workflow-manager = "^4.0.0" | ||
| qctrl-client = "^10.0.0" | ||
| qctrl-client = "^12.0.0" | ||
| sphinx-markdown-builder = "^0.6.7" | ||
@@ -109,0 +109,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
891577
-0.11%19107
-0.12%