bec-ipython-client 3.122.0__tar.gz → 3.122.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.
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/PKG-INFO +1 -1
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/pyproject.toml +3 -1
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_procedures_e2e.py +5 -15
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/.gitignore +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/__init__.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/beamline_mixin.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/bec_magics.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/bec_startup.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/__init__.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/device_progress.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/ipython_live_updates.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/live_table.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/move_device.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/utils.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/high_level_interfaces/__init__.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/high_level_interfaces/bec_hli.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/high_level_interfaces/spec_hli.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/main.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/SLS/__init__.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/SLS/sls_info.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/XTreme/__init__.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/XTreme/x-treme.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/__init__.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/flomni/flomni_config.yaml +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/prettytable.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/progressbar.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/signals.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/demo.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/conftest.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_beamline_mixins.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_bec_client.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_device_progress.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_ipython_live_updates.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_live_table.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_move_callback.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_pretty_table.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/conftest.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/_ensure_requirements_container.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_e2e.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_lib_e2e.py +0 -0
- {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_v4_lib_e2e.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "bec_ipython_client"
|
|
7
|
-
version = "3.122.
|
|
7
|
+
version = "3.122.2"
|
|
8
8
|
description = "BEC IPython client"
|
|
9
9
|
requires-python = ">=3.11"
|
|
10
10
|
classifiers = [
|
|
@@ -48,6 +48,8 @@ Homepage = "https://github.com/bec-project/bec"
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
+
|
|
52
|
+
|
|
51
53
|
[tool.hatch.build.targets.wheel]
|
|
52
54
|
include = ["*"]
|
|
53
55
|
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_procedures_e2e.py
RENAMED
|
@@ -14,8 +14,8 @@ from bec_lib.endpoints import MessageEndpoints
|
|
|
14
14
|
from bec_lib.logger import bec_logger
|
|
15
15
|
from bec_server.procedures.constants import _CONTAINER, _WORKER
|
|
16
16
|
from bec_server.procedures.container_utils import get_backend
|
|
17
|
-
from bec_server.procedures.container_worker import ContainerProcedureWorker
|
|
18
17
|
from bec_server.procedures.manager import ProcedureManager
|
|
18
|
+
from bec_server.procedures.subprocess_worker import SubProcessWorker
|
|
19
19
|
|
|
20
20
|
if TYPE_CHECKING:
|
|
21
21
|
from pytest_bec_e2e.plugin import LogTestTool
|
|
@@ -43,9 +43,7 @@ def client_logtool_and_manager(
|
|
|
43
43
|
bec_ipython_client_fixture_with_logtool: tuple[BECIPythonClient, "LogTestTool"],
|
|
44
44
|
) -> Generator[tuple[BECIPythonClient, "LogTestTool", ProcedureManager], None, None]:
|
|
45
45
|
client, logtool = bec_ipython_client_fixture_with_logtool
|
|
46
|
-
manager = ProcedureManager(
|
|
47
|
-
f"{client.connector.host}:{client.connector.port}", ContainerProcedureWorker
|
|
48
|
-
)
|
|
46
|
+
manager = ProcedureManager(f"{client.connector.host}:{client.connector.port}", SubProcessWorker)
|
|
49
47
|
try:
|
|
50
48
|
yield client, logtool, manager
|
|
51
49
|
finally:
|
|
@@ -84,23 +82,15 @@ def test_procedure_runner_spawns_worker(
|
|
|
84
82
|
|
|
85
83
|
logs = []
|
|
86
84
|
|
|
87
|
-
def cb(worker:
|
|
85
|
+
def cb(worker: SubProcessWorker):
|
|
88
86
|
nonlocal logs
|
|
89
|
-
logs = worker.
|
|
87
|
+
logs = worker.logs()
|
|
90
88
|
|
|
91
89
|
manager.add_callback("test", cb)
|
|
92
90
|
client.connector.send(endpoint, msg)
|
|
93
91
|
|
|
94
92
|
_wait_while(lambda: manager._active_workers == {}, 5)
|
|
95
|
-
|
|
96
|
-
_wait_while(lambda: manager._active_workers != {}, 90)
|
|
97
|
-
except Exception as e:
|
|
98
|
-
worker = manager._active_workers["test"]["worker"]
|
|
99
|
-
raise Exception(
|
|
100
|
-
worker._backend.logs(worker._container_id)
|
|
101
|
-
) from e # print the logs if there is an error
|
|
102
|
-
|
|
103
|
-
assert logs != []
|
|
93
|
+
_wait_while(lambda: manager._active_workers != {}, 90)
|
|
104
94
|
|
|
105
95
|
|
|
106
96
|
@pytest.mark.timeout(100)
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/beamline_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/live_table.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/SLS/__init__.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/SLS/sls_info.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_beamline_mixins.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_bec_client.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_device_progress.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_live_table.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_move_callback.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_pretty_table.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_lib_e2e.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_v4_lib_e2e.py
RENAMED
|
File without changes
|