bec-widgets 2.5.2__py3-none-any.whl → 2.5.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.
- .github/actions/bw_install/action.yml +64 -0
- .github/workflows/ci.yml +25 -1
- .github/workflows/pytest-matrix.yml +34 -24
- .github/workflows/pytest.yml +26 -27
- CHANGELOG.md +13 -0
- PKG-INFO +1 -1
- bec_widgets/cli/server.py +4 -0
- {bec_widgets-2.5.2.dist-info → bec_widgets-2.5.3.dist-info}/METADATA +1 -1
- {bec_widgets-2.5.2.dist-info → bec_widgets-2.5.3.dist-info}/RECORD +13 -12
- pyproject.toml +1 -1
- {bec_widgets-2.5.2.dist-info → bec_widgets-2.5.3.dist-info}/WHEEL +0 -0
- {bec_widgets-2.5.2.dist-info → bec_widgets-2.5.3.dist-info}/entry_points.txt +0 -0
- {bec_widgets-2.5.2.dist-info → bec_widgets-2.5.3.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
name: "BEC Widgets Install"
|
2
|
+
description: "Install BEC Widgets and related os dependencies"
|
3
|
+
inputs:
|
4
|
+
BEC_WIDGETS_BRANCH: # id of input
|
5
|
+
required: false
|
6
|
+
default: "main"
|
7
|
+
description: "Branch of BEC Widgets to install"
|
8
|
+
BEC_CORE_BRANCH: # id of input
|
9
|
+
required: false
|
10
|
+
default: "main"
|
11
|
+
description: "Branch of BEC Core to install"
|
12
|
+
OPHYD_DEVICES_BRANCH: # id of input
|
13
|
+
required: false
|
14
|
+
default: "main"
|
15
|
+
description: "Branch of Ophyd Devices to install"
|
16
|
+
PYTHON_VERSION: # id of input
|
17
|
+
required: false
|
18
|
+
default: "3.11"
|
19
|
+
description: "Python version to use"
|
20
|
+
|
21
|
+
runs:
|
22
|
+
using: "composite"
|
23
|
+
steps:
|
24
|
+
- name: Setup Python
|
25
|
+
uses: actions/setup-python@v5
|
26
|
+
with:
|
27
|
+
python-version: ${{ inputs.PYTHON_VERSION }}
|
28
|
+
|
29
|
+
- name: Checkout BEC Core
|
30
|
+
uses: actions/checkout@v4
|
31
|
+
with:
|
32
|
+
repository: bec-project/bec
|
33
|
+
ref: ${{ inputs.BEC_CORE_BRANCH }}
|
34
|
+
path: ./bec
|
35
|
+
|
36
|
+
- name: Checkout Ophyd Devices
|
37
|
+
uses: actions/checkout@v4
|
38
|
+
with:
|
39
|
+
repository: bec-project/ophyd_devices
|
40
|
+
ref: ${{ inputs.OPHYD_DEVICES_BRANCH }}
|
41
|
+
path: ./ophyd_devices
|
42
|
+
|
43
|
+
- name: Checkout BEC Widgets
|
44
|
+
uses: actions/checkout@v4
|
45
|
+
with:
|
46
|
+
repository: bec-project/bec_widgets
|
47
|
+
ref: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
48
|
+
path: ./bec_widgets
|
49
|
+
|
50
|
+
- name: Install dependencies
|
51
|
+
shell: bash
|
52
|
+
run: |
|
53
|
+
sudo apt-get update
|
54
|
+
sudo apt-get install -y libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb
|
55
|
+
sudo apt-get -y install libnss3 libxdamage1 libasound2t64 libatomic1 libxcursor1
|
56
|
+
|
57
|
+
- name: Install Python dependencies
|
58
|
+
shell: bash
|
59
|
+
run: |
|
60
|
+
pip install uv
|
61
|
+
uv pip install --system -e ./ophyd_devices
|
62
|
+
uv pip install --system -e ./bec/bec_lib[dev]
|
63
|
+
uv pip install --system -e ./bec/bec_ipython_client
|
64
|
+
uv pip install --system -e ./bec_widgets[dev,pyside6]
|
.github/workflows/ci.yml
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
name: Full CI
|
2
|
-
on:
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
pull_request:
|
5
|
+
workflow_dispatch:
|
6
|
+
inputs:
|
7
|
+
BEC_WIDGETS_BRANCH:
|
8
|
+
description: 'Branch of BEC Widgets to install'
|
9
|
+
required: false
|
10
|
+
type: string
|
11
|
+
BEC_CORE_BRANCH:
|
12
|
+
description: 'Branch of BEC Core to install'
|
13
|
+
required: false
|
14
|
+
type: string
|
15
|
+
OPHYD_DEVICES_BRANCH:
|
16
|
+
description: 'Branch of Ophyd Devices to install'
|
17
|
+
required: false
|
18
|
+
type: string
|
3
19
|
|
4
20
|
permissions:
|
5
21
|
pull-requests: write
|
@@ -17,6 +33,10 @@ jobs:
|
|
17
33
|
needs: [check_pr_status, formatter]
|
18
34
|
if: needs.check_pr_status.outputs.branch-pr == ''
|
19
35
|
uses: ./.github/workflows/pytest.yml
|
36
|
+
with:
|
37
|
+
BEC_WIDGETS_BRANCH: ${{ inputs.BEC_WIDGETS_BRANCH || github.head_ref }}
|
38
|
+
BEC_CORE_BRANCH: ${{ inputs.BEC_CORE_BRANCH || 'main' }}
|
39
|
+
OPHYD_DEVICES_BRANCH: ${{ inputs.OPHYD_DEVICES_BRANCH || 'main' }}
|
20
40
|
secrets:
|
21
41
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
22
42
|
|
@@ -24,6 +44,10 @@ jobs:
|
|
24
44
|
needs: [check_pr_status, formatter]
|
25
45
|
if: needs.check_pr_status.outputs.branch-pr == ''
|
26
46
|
uses: ./.github/workflows/pytest-matrix.yml
|
47
|
+
with:
|
48
|
+
BEC_WIDGETS_BRANCH: ${{ inputs.BEC_WIDGETS_BRANCH || github.head_ref || github.sha}}
|
49
|
+
BEC_CORE_BRANCH: ${{ inputs.BEC_CORE_BRANCH || 'main' }}
|
50
|
+
OPHYD_DEVICES_BRANCH: ${{ inputs.OPHYD_DEVICES_BRANCH || 'main' }}
|
27
51
|
|
28
52
|
generate-cli-test:
|
29
53
|
needs: [check_pr_status, formatter]
|
@@ -1,5 +1,26 @@
|
|
1
1
|
name: Run Pytest with different Python versions
|
2
|
-
on:
|
2
|
+
on:
|
3
|
+
workflow_call:
|
4
|
+
inputs:
|
5
|
+
pr_number:
|
6
|
+
description: 'Pull request number'
|
7
|
+
required: false
|
8
|
+
type: number
|
9
|
+
BEC_CORE_BRANCH:
|
10
|
+
description: 'Branch of BEC Core to install'
|
11
|
+
required: false
|
12
|
+
default: 'main'
|
13
|
+
type: string
|
14
|
+
OPHYD_DEVICES_BRANCH:
|
15
|
+
description: 'Branch of Ophyd Devices to install'
|
16
|
+
required: false
|
17
|
+
default: 'main'
|
18
|
+
type: string
|
19
|
+
BEC_WIDGETS_BRANCH:
|
20
|
+
description: 'Branch of BEC Widgets to install'
|
21
|
+
required: false
|
22
|
+
default: 'main'
|
23
|
+
type: string
|
3
24
|
|
4
25
|
jobs:
|
5
26
|
pytest-matrix:
|
@@ -9,7 +30,7 @@ jobs:
|
|
9
30
|
python-version: ["3.10", "3.11", "3.12"]
|
10
31
|
|
11
32
|
env:
|
12
|
-
|
33
|
+
BEC_WIDGETS_BRANCH: main # Set the branch you want for bec_widgets
|
13
34
|
BEC_CORE_BRANCH: main # Set the branch you want for bec
|
14
35
|
OPHYD_DEVICES_BRANCH: main # Set the branch you want for ophyd_devices
|
15
36
|
PROJECT_PATH: ${{ github.repository }}
|
@@ -17,31 +38,20 @@ jobs:
|
|
17
38
|
QT_QPA_PLATFORM: "offscreen"
|
18
39
|
|
19
40
|
steps:
|
20
|
-
- uses: actions/checkout@v4
|
21
41
|
|
22
|
-
- name:
|
23
|
-
uses: actions/
|
42
|
+
- name: Checkout BEC Widgets
|
43
|
+
uses: actions/checkout@v4
|
24
44
|
with:
|
25
|
-
|
45
|
+
repository: bec-project/bec_widgets
|
46
|
+
ref: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
26
47
|
|
27
|
-
- name: Install dependencies
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
run: |
|
35
|
-
echo -e "\033[35;1m Using branch $BEC_CORE_BRANCH of BEC CORE \033[0;m";
|
36
|
-
git clone --branch $BEC_CORE_BRANCH https://github.com/bec-project/bec.git
|
37
|
-
echo -e "\033[35;1m Using branch $OPHYD_DEVICES_BRANCH of OPHYD_DEVICES \033[0;m";
|
38
|
-
git clone --branch $OPHYD_DEVICES_BRANCH https://github.com/bec-project/ophyd_devices.git
|
39
|
-
export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
40
|
-
pip install uv
|
41
|
-
uv pip install --system -e ./ophyd_devices
|
42
|
-
uv pip install --system -e ./bec/bec_lib[dev]
|
43
|
-
uv pip install --system -e ./bec/bec_ipython_client
|
44
|
-
uv pip install --system -e .[dev,pyside6]
|
48
|
+
- name: Install BEC Widgets and dependencies
|
49
|
+
uses: ./.github/actions/bw_install
|
50
|
+
with:
|
51
|
+
BEC_WIDGETS_BRANCH: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
52
|
+
BEC_CORE_BRANCH: ${{ inputs.BEC_CORE_BRANCH }}
|
53
|
+
OPHYD_DEVICES_BRANCH: ${{ inputs.OPHYD_DEVICES_BRANCH }}
|
54
|
+
PYTHON_VERSION: ${{ matrix.python-version }}
|
45
55
|
|
46
56
|
- name: Run Pytest
|
47
57
|
run: |
|
.github/workflows/pytest.yml
CHANGED
@@ -6,6 +6,21 @@ on:
|
|
6
6
|
description: 'Pull request number'
|
7
7
|
required: false
|
8
8
|
type: number
|
9
|
+
BEC_CORE_BRANCH:
|
10
|
+
description: 'Branch of BEC Core to install'
|
11
|
+
required: false
|
12
|
+
default: 'main'
|
13
|
+
type: string
|
14
|
+
OPHYD_DEVICES_BRANCH:
|
15
|
+
description: 'Branch of Ophyd Devices to install'
|
16
|
+
required: false
|
17
|
+
default: 'main'
|
18
|
+
type: string
|
19
|
+
BEC_WIDGETS_BRANCH:
|
20
|
+
description: 'Branch of BEC Widgets to install'
|
21
|
+
required: false
|
22
|
+
default: 'main'
|
23
|
+
type: string
|
9
24
|
secrets:
|
10
25
|
CODECOV_TOKEN:
|
11
26
|
required: true
|
@@ -20,39 +35,23 @@ jobs:
|
|
20
35
|
runs-on: ubuntu-latest
|
21
36
|
|
22
37
|
env:
|
23
|
-
CHILD_PIPELINE_BRANCH: main # Set the branch you want for ophyd_devices
|
24
|
-
BEC_CORE_BRANCH: main # Set the branch you want for bec
|
25
|
-
OPHYD_DEVICES_BRANCH: main # Set the branch you want for ophyd_devices
|
26
|
-
PROJECT_PATH: ${{ github.repository }}
|
27
38
|
QTWEBENGINE_DISABLE_SANDBOX: 1
|
28
39
|
QT_QPA_PLATFORM: "offscreen"
|
29
40
|
|
30
41
|
steps:
|
31
|
-
-
|
32
|
-
|
33
|
-
- name: Set up Python
|
34
|
-
uses: actions/setup-python@v5
|
42
|
+
- name: Checkout BEC Widgets
|
43
|
+
uses: actions/checkout@v4
|
35
44
|
with:
|
36
|
-
|
37
|
-
|
38
|
-
- name: Install dependencies
|
39
|
-
run: |
|
40
|
-
sudo apt-get update
|
41
|
-
sudo apt-get install -y libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb
|
42
|
-
sudo apt-get -y install libnss3 libxdamage1 libasound2t64 libatomic1 libxcursor1
|
45
|
+
repository: bec-project/bec_widgets
|
46
|
+
ref: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
43
47
|
|
44
|
-
- name:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
pip install uv
|
52
|
-
uv pip install --system -e ./ophyd_devices
|
53
|
-
uv pip install --system -e ./bec/bec_lib[dev]
|
54
|
-
uv pip install --system -e ./bec/bec_ipython_client
|
55
|
-
uv pip install --system -e .[dev,pyside6]
|
48
|
+
- name: Install BEC Widgets and dependencies
|
49
|
+
uses: ./.github/actions/bw_install
|
50
|
+
with:
|
51
|
+
BEC_WIDGETS_BRANCH: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
52
|
+
BEC_CORE_BRANCH: ${{ inputs.BEC_CORE_BRANCH }}
|
53
|
+
OPHYD_DEVICES_BRANCH: ${{ inputs.OPHYD_DEVICES_BRANCH }}
|
54
|
+
PYTHON_VERSION: 3.11
|
56
55
|
|
57
56
|
- name: Run Pytest with Coverage
|
58
57
|
id: coverage
|
CHANGELOG.md
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
3
|
|
4
|
+
## v2.5.3 (2025-05-22)
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
- **server**: Simplefilelikefromlogoutputfunc added encoding for stdout
|
9
|
+
([`bcab66b`](https://github.com/bec-project/bec_widgets/commit/bcab66b1871fcb522a99859bde0c35bda2570e3a))
|
10
|
+
|
11
|
+
### Continuous Integration
|
12
|
+
|
13
|
+
- Reusable actions for installing bec widgets
|
14
|
+
([`a345253`](https://github.com/bec-project/bec_widgets/commit/a345253c6e6ca7e4dba710b91c39cba0085251e5))
|
15
|
+
|
16
|
+
|
4
17
|
## v2.5.2 (2025-05-22)
|
5
18
|
|
6
19
|
### Bug Fixes
|
PKG-INFO
CHANGED
bec_widgets/cli/server.py
CHANGED
@@ -2,21 +2,22 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=1nMYldzVk0tFkBWYTcUjumOrdSADASheWOAc0kOFDYs,9509
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=ivqg3HTaOxNbEW3bzWh9MXAkrekuGoNdj0Mj3SdRYuw,639
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=a-5K4eIEGBice3dErNnICNqoArHymBZHBSPCN3QsZQw,285213
|
6
6
|
LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=VqmKjp8bcEOad2tr_zm_yQ2CDpAo8L9ghAyGYAzWj1s,1273
|
8
8
|
README.md,sha256=oY5Jc1uXehRASuwUJ0umin2vfkFh7tHF-LLruHTaQx0,3560
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=xabkxryTFqrDnGTgSU49RDtVBFzhiQscuZZOleTyz7o,2902
|
10
10
|
.git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
|
11
11
|
.github/ISSUE_TEMPLATE/bug_report.md,sha256=EnMCP_Fo6ozZ0epRQqprabyJDMzSEHvHPRW6xAJVnR0,491
|
12
12
|
.github/ISSUE_TEMPLATE/feature_request.md,sha256=JmGrIly0ougXdUShMwsvWi6cgK1fcYNKkF03lKgQH44,1649
|
13
|
+
.github/actions/bw_install/action.yml,sha256=BrU864WOM9mTWMawQGmkuCn3FKOMEAOqlZOdwxwARig,1928
|
13
14
|
.github/workflows/check_pr.yml,sha256=jKMtYBJTNRAdw_MAS4JzdKVSoNrv8nxUQMqobsYFAXw,903
|
14
|
-
.github/workflows/ci.yml,sha256=
|
15
|
+
.github/workflows/ci.yml,sha256=OVZt0UxN4wQInuMucuQcKsvHDiz27sLeuQRskxjtkY0,1863
|
15
16
|
.github/workflows/end2end-conda.yml,sha256=N7q_sOZL1Mcivdkb8YIdvqbkkaG79rjHDQRpR2xPdtM,1794
|
16
17
|
.github/workflows/formatter.yml,sha256=CdUVrRxWyVes9y-Ez3jiCJXqANPJtl6kfpGQxeWMhcQ,1694
|
17
18
|
.github/workflows/generate-cli-check.yml,sha256=b6TcK8F5Hy0sFjgXpk0w3BO9eMDZw9WysTl3P7zEPuQ,1742
|
18
|
-
.github/workflows/pytest-matrix.yml,sha256=
|
19
|
-
.github/workflows/pytest.yml,sha256=
|
19
|
+
.github/workflows/pytest-matrix.yml,sha256=0gL5wNPJKJF1JapqstlYNYiJ44ko05uaTD7epa7smVw,1834
|
20
|
+
.github/workflows/pytest.yml,sha256=hYOB7XK_79MaiELaTH7zDT-WRw-pRDe4mHyB_WfcGDc,1747
|
20
21
|
.github/workflows/semantic_release.yml,sha256=pdkv1rVG3YgG7yu4nNWvbGZifH4bqO1eh3pM0KHRK04,3720
|
21
22
|
.gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
|
22
23
|
.gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
|
@@ -36,7 +37,7 @@ bec_widgets/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
37
|
bec_widgets/cli/client.py,sha256=PbeumL7pGM2uncKn00Hm3jGeEEY7ANwrgVcyLDDSG6M,90128
|
37
38
|
bec_widgets/cli/client_utils.py,sha256=F2hyt--jL53bN8NoWifNUMqwwx5FbpS6I1apERdTRzM,18114
|
38
39
|
bec_widgets/cli/generate_cli.py,sha256=xcPNyJoa3IjddX1yEDY45tT-Cs4jO5cQLUmcEubKs44,10976
|
39
|
-
bec_widgets/cli/server.py,sha256=
|
40
|
+
bec_widgets/cli/server.py,sha256=bhI5qj5vhg3qy4tkL1R2Bk_wcf-gjprTIAbVFH6BKXQ,5695
|
40
41
|
bec_widgets/cli/rpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
42
|
bec_widgets/cli/rpc/rpc_base.py,sha256=lqRr3IUqEKNLS_wHYrFbIr824kj6OYH6ky0Lwb-NovU,11130
|
42
43
|
bec_widgets/cli/rpc/rpc_register.py,sha256=2XBqPdMhJyWPsbV0ZVhl7YL6Yk6gh-VA8BOYi9jistM,5820
|
@@ -399,8 +400,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=O
|
|
399
400
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
|
400
401
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
|
401
402
|
bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
|
402
|
-
bec_widgets-2.5.
|
403
|
-
bec_widgets-2.5.
|
404
|
-
bec_widgets-2.5.
|
405
|
-
bec_widgets-2.5.
|
406
|
-
bec_widgets-2.5.
|
403
|
+
bec_widgets-2.5.3.dist-info/METADATA,sha256=VqmKjp8bcEOad2tr_zm_yQ2CDpAo8L9ghAyGYAzWj1s,1273
|
404
|
+
bec_widgets-2.5.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
405
|
+
bec_widgets-2.5.3.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
|
406
|
+
bec_widgets-2.5.3.dist-info/licenses/LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
|
407
|
+
bec_widgets-2.5.3.dist-info/RECORD,,
|
pyproject.toml
CHANGED
File without changes
|
File without changes
|
File without changes
|