bec-widgets 0.94.6__py3-none-any.whl → 0.94.7__py3-none-any.whl

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.
CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.94.7 (2024-08-20)
4
+
5
+ ### Fix
6
+
7
+ * fix: formatting of stdout, stderr captured text for logger ([`939f834`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/939f834a26ddbac0bdead0b60b1cdf52014f182f))
8
+
3
9
  ## v0.94.6 (2024-08-14)
4
10
 
5
11
  ### Fix
@@ -146,12 +152,6 @@ This reverts commit fd6ae91993a23a7b8dbb2cf3c4b7c3eda6d2b0f6 ([`5aad401`](https:
146
152
 
147
153
  * fix(status_box): fix cleanup of status box ([`1f30dd7`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/1f30dd73a9c1e3135087a5eef92c7329f54a604e))
148
154
 
149
- ### Refactor
150
-
151
- * refactor(queue): refactored bec queue to inherit only from qwidget ([`7616ca0`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/7616ca0e145e233ccb48029a8c0b54b54b5b4194))
152
-
153
155
  ### Test
154
156
 
155
157
  * test: register all widgets with qtbot and close them ([`73cd11e`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/73cd11e47277e4437554b785a9551b28a572094f))
156
-
157
- ## v0.92.4 (2024-07-31)
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 0.94.6
3
+ Version: 0.94.7
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -100,6 +100,7 @@ def _start_plot_process(gui_id: str, gui_class: type, config: dict | str, logger
100
100
 
101
101
  env_dict = os.environ.copy()
102
102
  env_dict["PYTHONUNBUFFERED"] = "1"
103
+
103
104
  if logger is None:
104
105
  stdout_redirect = subprocess.DEVNULL
105
106
  stderr_redirect = subprocess.DEVNULL
bec_widgets/cli/server.py CHANGED
@@ -130,15 +130,15 @@ class BECWidgetsCLIServer:
130
130
  class SimpleFileLikeFromLogOutputFunc:
131
131
  def __init__(self, log_func):
132
132
  self._log_func = log_func
133
+ self._buffer = []
133
134
 
134
135
  def write(self, buffer):
135
- for line in buffer.rstrip().splitlines():
136
- line = line.rstrip()
137
- if line:
138
- self._log_func(line)
136
+ self._buffer.append(buffer)
139
137
 
140
138
  def flush(self):
141
- return
139
+ lines, _, remaining = "".join(self._buffer).rpartition("\n")
140
+ self._log_func(lines)
141
+ self._buffer = [remaining]
142
142
 
143
143
  def close(self):
144
144
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 0.94.6
3
+ Version: 0.94.7
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -2,11 +2,11 @@
2
2
  .gitlab-ci.yml,sha256=BtKhZI3dhK09En1BfpglYi-ZJwG6ZdC-iJr7kXFVfCg,8346
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=vh4KRXHX8QnPOzzV8aVx3rBJNez27sWs3kt78tFvdPA,6702
5
+ CHANGELOG.md,sha256=jhchcfzJ4tJmB9TztZ_Y-TqfZeNKL5OTUzpD1bbpHEs,6689
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=HDSao-gKVMBQrpl-wbiQt5TUz8osSuXFQw3BdN_5Ybw,1325
7
+ PKG-INFO,sha256=M__c_RIR9v7_7Trd7jo-9px8tawl3Kmt7RFufR3ntxw,1325
8
8
  README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
9
- pyproject.toml,sha256=D2SWYeuuU85azl57OHL5LQY4Rda2p07m0coRTeSHQLE,2416
9
+ pyproject.toml,sha256=RplPX3vctU3wArBQBFJ_zildzghVjSgH2LTuVCFAXAc,2416
10
10
  .git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
11
11
  .gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
12
12
  .gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
@@ -83,11 +83,11 @@ bec_widgets/assets/toolbar_icons/waveform.svg,sha256=darXWaIww4HEu9skFUd8Vs1NSAg
83
83
  bec_widgets/cli/__init__.py,sha256=d0Q6Fn44e7wFfLabDOBxpcJ1DPKWlFunGYDUBmO-4hA,22
84
84
  bec_widgets/cli/auto_updates.py,sha256=DwzRChcFIWPH2kCYvp8H7dXvyYSKGYv6LwCmK2sDR2E,5676
85
85
  bec_widgets/cli/client.py,sha256=HjBxjthimBvbyVrjvLZoeBN1NdezupowRYjZxqDlOX8,76261
86
- bec_widgets/cli/client_utils.py,sha256=AgWAtoioMeaIiz1hFem4U4v6fXl0__DdSZdzsVgsAOo,11712
86
+ bec_widgets/cli/client_utils.py,sha256=l35LtTkD7PdvVCckjMU8-y6f5a5pp1u6cFPpD-Dkvow,11713
87
87
  bec_widgets/cli/generate_cli.py,sha256=Ea5px9KblUlcGg-1JbJBTIU7laGg2n8PM7Efw9WVVzM,5889
88
88
  bec_widgets/cli/rpc_register.py,sha256=QxXUZu5XNg00Yf5O3UHWOXg3-f_pzKjjoZYMOa-MOJc,2216
89
89
  bec_widgets/cli/rpc_wigdet_handler.py,sha256=6kQng2DyS6rhLJqSJ7xa0kdgSxp-35A2upcf833dJRE,1483
90
- bec_widgets/cli/server.py,sha256=Dc05uELdDSbarlxHVBE_wWZ6kxqPdSdFfY6V3wXYFB4,7881
90
+ bec_widgets/cli/server.py,sha256=I3gZ5xwygEOnL4ga3zOoD3jRUXNjPRop4u7a0emfejs,7921
91
91
  bec_widgets/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
92
  bec_widgets/examples/general_app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
93
93
  bec_widgets/examples/general_app/general_app.py,sha256=Ks9CKtIQIFOzKosh204zVg1ltSnp07LDqkwoVAaCd9k,3046
@@ -378,8 +378,8 @@ tests/unit_tests/test_configs/config_device_no_entry.yaml,sha256=hdvue9KLc_kfNzG
378
378
  tests/unit_tests/test_configs/config_scan.yaml,sha256=vo484BbWOjA_e-h6bTjSV9k7QaQHrlAvx-z8wtY-P4E,1915
379
379
  tests/unit_tests/test_msgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
380
380
  tests/unit_tests/test_msgs/available_scans_message.py,sha256=m_z97hIrjHXXMa2Ex-UvsPmTxOYXfjxyJaGkIY6StTY,46532
381
- bec_widgets-0.94.6.dist-info/METADATA,sha256=HDSao-gKVMBQrpl-wbiQt5TUz8osSuXFQw3BdN_5Ybw,1325
382
- bec_widgets-0.94.6.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
383
- bec_widgets-0.94.6.dist-info/entry_points.txt,sha256=3otEkCdDB9LZJuBLzG4pFLK5Di0CVybN_12IsZrQ-58,166
384
- bec_widgets-0.94.6.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
385
- bec_widgets-0.94.6.dist-info/RECORD,,
381
+ bec_widgets-0.94.7.dist-info/METADATA,sha256=M__c_RIR9v7_7Trd7jo-9px8tawl3Kmt7RFufR3ntxw,1325
382
+ bec_widgets-0.94.7.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
383
+ bec_widgets-0.94.7.dist-info/entry_points.txt,sha256=3otEkCdDB9LZJuBLzG4pFLK5Di0CVybN_12IsZrQ-58,166
384
+ bec_widgets-0.94.7.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
385
+ bec_widgets-0.94.7.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_widgets"
7
- version = "0.94.6"
7
+ version = "0.94.7"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [