qctrl-workflow-client 2.2.0__tar.gz → 2.2.2__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.1
2
2
  Name: qctrl-workflow-client
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Q-CTRL Client
5
5
  Home-page: https://q-ctrl.com
6
6
  License: https://q-ctrl.com/terms
@@ -32,7 +32,7 @@ Requires-Dist: gql (>=3.4.0,<4.0.0)
32
32
  Requires-Dist: importlib-metadata (>=6.8.0,<7.0.0)
33
33
  Requires-Dist: packaging (>=23.1.0,<24.0.0)
34
34
  Requires-Dist: qctrl-client (>=9.1.0,<10.0.0)
35
- Requires-Dist: qctrl-commons (>=21.0.0,<22.0.0)
35
+ Requires-Dist: qctrl-commons (>=21.2.4,<22.0.0)
36
36
  Requires-Dist: requests (>=2.31.0,<3.0.0)
37
37
  Requires-Dist: tenacity (>=8.1.0,<9.0.0)
38
38
  Requires-Dist: tomli (>=2.0.1,<3.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "qctrl-workflow-client"
3
- version = "2.2.0"
3
+ version = "2.2.2"
4
4
  description = "Q-CTRL Client"
5
5
  license = "https://q-ctrl.com/terms"
6
6
  authors = ["Q-CTRL <support@q-ctrl.com>"]
@@ -81,7 +81,7 @@ gql = "^3.4.0"
81
81
  tenacity = "^8.1.0"
82
82
  requests = "^2.31.0"
83
83
  packaging = "^23.1.0"
84
- qctrl-commons = { version = "^21.0.0", source = "PyPI" }
84
+ qctrl-commons = { version = "^21.2.4", source = "PyPI" }
85
85
  qctrl-client = { version = "^9.1.0", source = "PyPI" }
86
86
 
87
87
  [tool.poetry.group.dev.dependencies]
@@ -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__ = "2.2.0"
14
+ __version__ = "2.2.2"
15
15
 
16
16
  from .defaults import (
17
17
  get_authenticated_client_for_product,
@@ -43,6 +43,14 @@ def global_value(key: str) -> Callable:
43
43
  return decorator
44
44
 
45
45
 
46
+ def update_global_value(key, value: Any):
47
+ """Update global registry value."""
48
+ if key in _REGISTRY:
49
+ _REGISTRY[key] = value
50
+ else:
51
+ raise KeyError(f"Key not found in the registry: {key}")
52
+
53
+
46
54
  def invalidate_global_value(*keys: str):
47
55
  """
48
56
  Remove the globally registered values, if they exist.