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.
Files changed (41) hide show
  1. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/PKG-INFO +1 -1
  2. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/pyproject.toml +3 -1
  3. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_procedures_e2e.py +5 -15
  4. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/.gitignore +0 -0
  5. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/__init__.py +0 -0
  6. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/beamline_mixin.py +0 -0
  7. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/bec_magics.py +0 -0
  8. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/bec_startup.py +0 -0
  9. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/__init__.py +0 -0
  10. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/device_progress.py +0 -0
  11. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/ipython_live_updates.py +0 -0
  12. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/live_table.py +0 -0
  13. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/move_device.py +0 -0
  14. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/callbacks/utils.py +0 -0
  15. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/high_level_interfaces/__init__.py +0 -0
  16. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/high_level_interfaces/bec_hli.py +0 -0
  17. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/high_level_interfaces/spec_hli.py +0 -0
  18. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/main.py +0 -0
  19. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/SLS/__init__.py +0 -0
  20. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/SLS/sls_info.py +0 -0
  21. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/XTreme/__init__.py +0 -0
  22. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/XTreme/x-treme.py +0 -0
  23. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/__init__.py +0 -0
  24. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/plugins/flomni/flomni_config.yaml +0 -0
  25. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/prettytable.py +0 -0
  26. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/progressbar.py +0 -0
  27. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/bec_ipython_client/signals.py +0 -0
  28. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/demo.py +0 -0
  29. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/conftest.py +0 -0
  30. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_beamline_mixins.py +0 -0
  31. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_bec_client.py +0 -0
  32. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_device_progress.py +0 -0
  33. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_ipython_live_updates.py +0 -0
  34. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_live_table.py +0 -0
  35. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_move_callback.py +0 -0
  36. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/client_tests/test_pretty_table.py +0 -0
  37. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/conftest.py +0 -0
  38. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/_ensure_requirements_container.py +0 -0
  39. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_e2e.py +0 -0
  40. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_lib_e2e.py +0 -0
  41. {bec_ipython_client-3.122.0 → bec_ipython_client-3.122.2}/tests/end-2-end/test_scans_v4_lib_e2e.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_ipython_client
3
- Version: 3.122.0
3
+ Version: 3.122.2
4
4
  Summary: BEC IPython client
5
5
  Project-URL: Bug Tracker, https://github.com/bec-project/bec/issues
6
6
  Project-URL: Homepage, https://github.com/bec-project/bec
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_ipython_client"
7
- version = "3.122.0"
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
 
@@ -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: ContainerProcedureWorker):
85
+ def cb(worker: SubProcessWorker):
88
86
  nonlocal logs
89
- logs = worker._backend.logs(worker._container_id)
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
- try:
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)