bec-widgets 2.0.2__py3-none-any.whl → 2.0.3__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.
.gitlab-ci.yml CHANGED
@@ -13,7 +13,7 @@ variables:
13
13
  value: main
14
14
  CHILD_PIPELINE_BRANCH: $CI_DEFAULT_BRANCH
15
15
  CHECK_PKG_VERSIONS:
16
- description: Whether to run additional tests against min/max/random selection of dependencies. Set to 1 for running.
16
+ description: Whether to run additional tests against min/max/random selection of dependencies. Set to 1 for running.
17
17
  value: 0
18
18
 
19
19
  workflow:
@@ -162,6 +162,20 @@ tests:
162
162
  - tests/reference_failures/
163
163
  when: always
164
164
 
165
+ generate-client-check:
166
+ stage: test
167
+ needs: []
168
+ variables:
169
+ QT_QPA_PLATFORM: "offscreen"
170
+ script:
171
+ - *clone-repos
172
+ - *install-os-packages
173
+ - *install-repos
174
+ - pip install -e .[dev,pyside6]
175
+ - bw-generate-cli --target bec_widgets
176
+ # if there are changes in the generated files, fail the job
177
+ - git diff --exit-code
178
+
165
179
  test-matrix:
166
180
  parallel:
167
181
  matrix:
@@ -231,7 +245,7 @@ end-2-end-conda:
231
245
  - if: '$CI_PIPELINE_SOURCE == "parent_pipeline"'
232
246
  - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"'
233
247
  - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "production"'
234
- - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^pre_release.*$/'
248
+ - if: "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^pre_release.*$/"
235
249
 
236
250
  semver:
237
251
  stage: Deploy
CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v2.0.3 (2025-05-02)
5
+
6
+ ### Bug Fixes
7
+
8
+ - **generate_cli**: Apply isort config
9
+ ([`770dbd4`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/770dbd4b63baba588871a4d4ffa77d44872d085b))
10
+
11
+ - **image_item**: Wrong user access name for rotation
12
+ ([`58a0bc7`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/58a0bc79742e7e7578988711a9840ed6041d9a69))
13
+
14
+ ### Continuous Integration
15
+
16
+ - Add job to test that the generated client is up to date
17
+ ([`d22035f`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/d22035f8974ac51ae1b6efc0e2b3749ca0a674ff))
18
+
19
+
4
20
  ## v2.0.2 (2025-05-01)
5
21
 
6
22
  ### Bug Fixes
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.0.2
3
+ Version: 2.0.3
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
bec_widgets/cli/client.py CHANGED
@@ -1317,14 +1317,14 @@ class ImageItem(RPCBase):
1317
1317
 
1318
1318
  @property
1319
1319
  @rpc_call
1320
- def rotation(self) -> "Optional[int]":
1320
+ def num_rotation_90(self) -> "Optional[int]":
1321
1321
  """
1322
1322
  Get or set the number of 90° rotations to apply.
1323
1323
  """
1324
1324
 
1325
- @rotation.setter
1325
+ @num_rotation_90.setter
1326
1326
  @rpc_call
1327
- def rotation(self) -> "Optional[int]":
1327
+ def num_rotation_90(self) -> "Optional[int]":
1328
1328
  """
1329
1329
  Get or set the number of 90° rotations to apply.
1330
1330
  """
@@ -222,18 +222,18 @@ class {class_name}(RPCBase):"""
222
222
  # Combine header and content, then format with black
223
223
  full_content = self.header + "\n" + self.content
224
224
  try:
225
- formatted_content = black.format_str(full_content, mode=black.FileMode(line_length=100))
225
+ formatted_content = black.format_str(full_content, mode=black.Mode(line_length=100))
226
226
  except black.NothingChanged:
227
227
  formatted_content = full_content
228
228
 
229
- isort.Config(
229
+ config = isort.Config(
230
230
  profile="black",
231
231
  line_length=100,
232
232
  multi_line_output=3,
233
- include_trailing_comma=True,
233
+ include_trailing_comma=False,
234
234
  known_first_party=["bec_widgets"],
235
235
  )
236
- formatted_content = isort.code(formatted_content)
236
+ formatted_content = isort.code(formatted_content, config=config)
237
237
 
238
238
  with open(file_name, "w", encoding="utf-8") as file:
239
239
  file.write(formatted_content)
@@ -318,5 +318,5 @@ def main():
318
318
  if __name__ == "__main__": # pragma: no cover
319
319
  import sys
320
320
 
321
- sys.argv = ["bw-generate-cli", "--target", "csaxs_bec"]
321
+ sys.argv = ["bw-generate-cli", "--target", "bec_widgets"]
322
322
  main()
@@ -61,8 +61,8 @@ class ImageItem(BECConnector, pg.ImageItem):
61
61
  "fft.setter",
62
62
  "log",
63
63
  "log.setter",
64
- "rotation",
65
- "rotation.setter",
64
+ "num_rotation_90",
65
+ "num_rotation_90.setter",
66
66
  "transpose",
67
67
  "transpose.setter",
68
68
  "get_data",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.0.2
3
+ Version: 2.0.3
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
@@ -1,12 +1,12 @@
1
1
  .gitignore,sha256=cMQ1MLmnoR88aMCCJwUyfoTnufzl4-ckmHtlFUqHcT4,3253
2
- .gitlab-ci.yml,sha256=YVmyUBCO2idU8YRyzvPZig0xl24KGyG5LJF1ohACHgQ,9174
2
+ .gitlab-ci.yml,sha256=AEMwDcgmQNX2jsW5-EZvj5mtTBtIwRu4mNpWyDNUlwM,9516
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=lP4kYyk-DxZIi5zOQ2cNyo9YtZrXVhAA3H-d2rOM1FE,268630
5
+ CHANGELOG.md,sha256=2et0gedcDklH8epl7f2glGAAZH32g9UWv66kuTaaF88,269167
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=uiXU_EpjmseLXhKDMU-Hvb7LIxrl8Qvbur__DlwlvV4,1172
7
+ PKG-INFO,sha256=FTn0xb6_Jsc0Jfxr-H7a9A_QkBx2pbfUzAlYTgPX5Ac,1172
8
8
  README.md,sha256=KgdKusjlvEvFtdNZCeDMO91y77MWK2iDcYMDziksOr4,2553
9
- pyproject.toml,sha256=I3j9HVYwuUjoAAAfcIuHc-kOhQOyLnekW9ykCcFWsTU,2539
9
+ pyproject.toml,sha256=G7GylYJKct5QDnu0H2uF4SR5v2jJoSkVk8oNyEMbkB4,2539
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
@@ -22,9 +22,9 @@ bec_widgets/assets/app_icons/auto_update.png,sha256=YKoAJTWAlWzreYvOm0BttDRFr29t
22
22
  bec_widgets/assets/app_icons/bec_widgets_icon.png,sha256=K8dgGwIjalDh9PRHUsSQBqgdX7a00nM3igZdc20pkYM,1747017
23
23
  bec_widgets/assets/app_icons/ui_loader_tile.png,sha256=qSK3XHqvnAVGV9Q0ulORcGFbXJ9LDq2uz8l9uTtMsNk,1812476
24
24
  bec_widgets/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- bec_widgets/cli/client.py,sha256=-jokdJiYkG2WKk7XNR4J9llo6yEmVIPZ-Vp_IKPzWW8,80015
25
+ bec_widgets/cli/client.py,sha256=kvAdg7lTsS9_w-qnXNf6Zq-WU2jUYbUt8bx-izsbGeY,80036
26
26
  bec_widgets/cli/client_utils.py,sha256=F2hyt--jL53bN8NoWifNUMqwwx5FbpS6I1apERdTRzM,18114
27
- bec_widgets/cli/generate_cli.py,sha256=8IwkMxFhMuHHXPolz4nZ77xg6AEqxrY-Tdpq_FtqTv0,10928
27
+ bec_widgets/cli/generate_cli.py,sha256=gxotNNdSs92bjO5B6VjRYbbbQetI1JYwNZZydBziNzk,10951
28
28
  bec_widgets/cli/server.py,sha256=lYEkOaokLbND4KjbXyySzb5nq3YQ6m4L0NAmHAjMCIU,5633
29
29
  bec_widgets/cli/rpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  bec_widgets/cli/rpc/rpc_base.py,sha256=lqRr3IUqEKNLS_wHYrFbIr824kj6OYH6ky0Lwb-NovU,11130
@@ -244,7 +244,7 @@ bec_widgets/widgets/plots/plot_base.py,sha256=NliWkXihJIPHRJHe-CNIrdjgxONk7uExG_
244
244
  bec_widgets/widgets/plots/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
245
245
  bec_widgets/widgets/plots/image/image.py,sha256=IBu06Okf1VLGRmeq-2aQTYvoQKkHvJZSwZaHx4dYm1I,31506
246
246
  bec_widgets/widgets/plots/image/image.pyproject,sha256=_sRCIu4MNgToaB4D7tUMWq3xKX6T2VoRS3UzGNIseHQ,23
247
- bec_widgets/widgets/plots/image/image_item.py,sha256=qbpXAMMhpSXy10GFQN93bvozsN0mAWzY-s-W-hiE_FU,8714
247
+ bec_widgets/widgets/plots/image/image_item.py,sha256=2bn9H5YLmo7ohQnnf1mLlL24TASnlZNzMvF7buMutmI,8728
248
248
  bec_widgets/widgets/plots/image/image_plugin.py,sha256=R0Hzh2GgYlfZLPZwOMgqLKKIA5DxEnTcSrbI7zTe-tI,1204
249
249
  bec_widgets/widgets/plots/image/image_processor.py,sha256=0qsQIyB__xxBwNIoXhFbB0wSiB8n7n_oX4cvfFsUzOs,4304
250
250
  bec_widgets/widgets/plots/image/register_image.py,sha256=0rvFyAMGRZcknc7nMVwsMGSfY8L2j9cdtQhbO5TMzeM,455
@@ -377,8 +377,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=O
377
377
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
378
378
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
379
379
  bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
380
- bec_widgets-2.0.2.dist-info/METADATA,sha256=uiXU_EpjmseLXhKDMU-Hvb7LIxrl8Qvbur__DlwlvV4,1172
381
- bec_widgets-2.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
382
- bec_widgets-2.0.2.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
383
- bec_widgets-2.0.2.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
384
- bec_widgets-2.0.2.dist-info/RECORD,,
380
+ bec_widgets-2.0.3.dist-info/METADATA,sha256=FTn0xb6_Jsc0Jfxr-H7a9A_QkBx2pbfUzAlYTgPX5Ac,1172
381
+ bec_widgets-2.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
382
+ bec_widgets-2.0.3.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
383
+ bec_widgets-2.0.3.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
384
+ bec_widgets-2.0.3.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 = "2.0.2"
7
+ version = "2.0.3"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [