qctrl-workflow-client 8.0.1__tar.gz → 9.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: qctrl-workflow-client
3
- Version: 8.0.1
3
+ Version: 9.0.1
4
4
  Summary: Q-CTRL Workflow Client
5
5
  License: https://q-ctrl.com/terms
6
6
  Keywords: black opal,boulder opal,fire opal,ironstone opal,nisq,open controls,q control,q ctrl,q-control,q-ctrl,qcontrol,qctrl,quantum,quantum algorithms,quantum circuits,quantum coding,quantum coding software,quantum computing,quantum control,quantum control software,quantum control theory,quantum engineering,quantum error correction,quantum firmware,quantum fundamentals,quantum navigation,quantum sensing,qubit,qudit
@@ -30,7 +30,7 @@ Classifier: Topic :: System :: Distributed Computing
30
30
  Requires-Dist: gql (>=3.5.3,<4.0.0)
31
31
  Requires-Dist: importlib-metadata (>=8.7.0,<9.0.0)
32
32
  Requires-Dist: packaging (>=25.0,<26.0)
33
- Requires-Dist: qctrl-client (>=14.0.0,<15.0.0)
33
+ Requires-Dist: qctrl-client (>=16.0.3,<17.0.0)
34
34
  Requires-Dist: qctrl-commons (>=25.1.2,<26.0.0)
35
35
  Requires-Dist: requests (>=2.32.4,<3.0.0)
36
36
  Requires-Dist: tenacity (>=9.1.2,<10.0.0)
@@ -2,7 +2,7 @@
2
2
  name = "qctrl-workflow-client"
3
3
  description = "Q-CTRL Workflow Client"
4
4
  requires-python = ">=3.10, <3.14"
5
- version = "8.0.1"
5
+ version = "9.0.1"
6
6
  license = "https://q-ctrl.com/terms"
7
7
  authors = [
8
8
  { name = "Q-CTRL", email = "support@q-ctrl.com" },
@@ -101,16 +101,16 @@ tenacity = "^9.1.2"
101
101
  requests = "^2.32.4"
102
102
  packaging = "^25.0"
103
103
  qctrl-commons = { version = "^25.1.2", source = "PyPI" }
104
- qctrl-client = { version = "^14.0.0", source = "PyPI" }
104
+ qctrl-client = { version = "^16.0.3", source = "PyPI" }
105
105
 
106
106
  [tool.poetry.group.dev.dependencies]
107
107
  pre-commit = "^4.1.0"
108
- pytest = "^8.3.4"
108
+ pytest = "^9.0.2"
109
109
  pytest-cov = "^7.0.0"
110
110
  pytest-mock = "^3.10.0"
111
111
  pytest-xdist = "^3.2.1"
112
112
  qctrl-core-workflow-manager = "^6.0.0"
113
- ruff = "^0.6.0"
113
+ ruff = "^0.14.13"
114
114
 
115
115
  [tool.ruff]
116
116
  line-length = 100
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -11,7 +11,7 @@
11
11
  # distributed under the License is distributed on an "AS IS" BASIS. See the
12
12
  # License for the specific language.
13
13
 
14
- __version__ = "8.0.1"
14
+ __version__ = "9.0.1"
15
15
 
16
16
  from .defaults import get_authenticated_client_for_product
17
17
  from .functions import (
@@ -30,13 +30,13 @@ from .router import (
30
30
  from .settings import CoreClientSettings
31
31
 
32
32
  __all__ = [
33
- "get_authenticated_client_for_product",
34
- "core_workflow",
35
- "print_warnings",
36
- "Product",
37
- "ProductInfo",
38
33
  "ApiRouter",
39
34
  "BaseRouter",
40
- "LocalRouter",
41
35
  "CoreClientSettings",
36
+ "LocalRouter",
37
+ "Product",
38
+ "ProductInfo",
39
+ "core_workflow",
40
+ "get_authenticated_client_for_product",
41
+ "print_warnings",
42
42
  ]
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -15,11 +15,6 @@ from __future__ import annotations
15
15
 
16
16
  from typing import TYPE_CHECKING
17
17
 
18
- if TYPE_CHECKING:
19
- from qctrlclient.auth import BaseAuth
20
- else:
21
- from qctrlclient.auth import BaseAuth # noqa: TCH002
22
-
23
18
  from qctrlclient import (
24
19
  CliAuth,
25
20
  GraphQLClient,
@@ -32,6 +27,9 @@ from qctrlcommons.utils import generate_user_agent
32
27
 
33
28
  from .utils import get_installed_version
34
29
 
30
+ if TYPE_CHECKING:
31
+ from qctrlclient.auth import BaseAuth
32
+
35
33
 
36
34
  def get_authenticated_client_for_product(
37
35
  package_name: str,
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -22,11 +22,11 @@ from warnings import warn
22
22
 
23
23
  from qctrlcommons.exceptions import QctrlArgumentsValueError
24
24
 
25
+ from qctrlworkflowclient.router.api import ApiRouter
26
+
25
27
  if TYPE_CHECKING:
26
28
  from collections.abc import Callable
27
29
 
28
- from qctrlworkflowclient.router.api import ApiRouter
29
-
30
30
 
31
31
  def core_workflow(
32
32
  get_config: Callable,
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -24,18 +24,6 @@ from typing import (
24
24
  from warnings import warn
25
25
 
26
26
  import gql
27
-
28
- if TYPE_CHECKING:
29
- from collections.abc import Callable
30
-
31
- from qctrlclient import GraphQLClient
32
-
33
- from qctrlworkflowclient.settings import CoreClientSettings
34
- else:
35
- from qctrlclient import GraphQLClient # noqa: TCH002
36
-
37
- from qctrlworkflowclient.settings import CoreClientSettings # noqa: TCH001
38
-
39
27
  from qctrlclient.exceptions import GraphQLClientError
40
28
  from qctrlcommons.preconditions import check_argument
41
29
  from qctrlcommons.serializers import (
@@ -55,6 +43,13 @@ from qctrlworkflowclient.utils import get_installed_version
55
43
 
56
44
  from .base import BaseRouter
57
45
 
46
+ if TYPE_CHECKING:
47
+ from collections.abc import Callable
48
+
49
+ from qctrlclient import GraphQLClient
50
+
51
+ from qctrlworkflowclient.settings import CoreClientSettings
52
+
58
53
  # every 2s for the first 30s, then every 10s
59
54
  _POLL_WAIT_CHAIN = wait_chain(*[wait_fixed(2) for _ in range(15)] + [wait_fixed(10)])
60
55
 
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -14,12 +14,10 @@ from __future__ import annotations
14
14
 
15
15
  from typing import TYPE_CHECKING
16
16
 
17
+ from .base import BaseRouter
18
+
17
19
  if TYPE_CHECKING:
18
20
  from qctrlcoreworkflowmanager import CallableResolver
19
- else:
20
- from qctrlcoreworkflowmanager import CallableResolver # noqa: TCH002
21
-
22
- from .base import BaseRouter
23
21
 
24
22
 
25
23
  class LocalRouter(BaseRouter):
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Q-CTRL. All rights reserved.
1
+ # Copyright 2026 Q-CTRL. All rights reserved.
2
2
  #
3
3
  # Licensed under the Q-CTRL Terms of service (the "License"). Unauthorized
4
4
  # copying or use of this file, via any medium, is strictly prohibited.
@@ -21,14 +21,14 @@ from importlib.metadata import (
21
21
  from pathlib import Path
22
22
  from typing import TYPE_CHECKING
23
23
 
24
- if TYPE_CHECKING:
25
- from types import ModuleType
26
-
27
24
  import requests
28
25
  import tomli
29
26
  from importlib_metadata import packages_distributions
30
27
  from packaging.version import parse
31
28
 
29
+ if TYPE_CHECKING:
30
+ from types import ModuleType
31
+
32
32
 
33
33
  def get_installed_version(package: str) -> str | None:
34
34
  """