plesty-bench 0.2.0__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.
- plesty_bench-0.2.0/.gitignore +71 -0
- plesty_bench-0.2.0/.gitlab-ci.yml +152 -0
- plesty_bench-0.2.0/CHANGELOG.md +46 -0
- plesty_bench-0.2.0/LICENSE +184 -0
- plesty_bench-0.2.0/LICENSES/LGPL-3.0-or-later.txt +165 -0
- plesty_bench-0.2.0/PKG-INFO +45 -0
- plesty_bench-0.2.0/README.md +24 -0
- plesty_bench-0.2.0/REUSE.toml +11 -0
- plesty_bench-0.2.0/docs/api_reference.md +14 -0
- plesty_bench-0.2.0/docs/architecture.md +109 -0
- plesty_bench-0.2.0/docs/cli.md +94 -0
- plesty_bench-0.2.0/docs/cross_platform.md +71 -0
- plesty_bench-0.2.0/docs/field_test.md +66 -0
- plesty_bench-0.2.0/docs/gui.md +114 -0
- plesty_bench-0.2.0/docs/index.md +68 -0
- plesty_bench-0.2.0/docs/installing.md +90 -0
- plesty_bench-0.2.0/docs/packaging.md +74 -0
- plesty_bench-0.2.0/docs/process_management.md +140 -0
- plesty_bench-0.2.0/docs/remote.md +99 -0
- plesty_bench-0.2.0/docs/toc.yaml +14 -0
- plesty_bench-0.2.0/gl-secret-detection-report.json +50 -0
- plesty_bench-0.2.0/packaging/install.sh +100 -0
- plesty_bench-0.2.0/packaging/plesty-mark.png +0 -0
- plesty_bench-0.2.0/packaging/server_dist.py +117 -0
- plesty_bench-0.2.0/packaging/windows/plesty-server.iss +62 -0
- plesty_bench-0.2.0/plesty/bench/__init__.py +45 -0
- plesty_bench-0.2.0/plesty/bench/cli.py +111 -0
- plesty_bench-0.2.0/plesty/bench/client.py +242 -0
- plesty_bench-0.2.0/plesty/server/__init__.py +22 -0
- plesty_bench-0.2.0/plesty/server/__main__.py +9 -0
- plesty_bench-0.2.0/plesty/server/assets/console.qss +321 -0
- plesty_bench-0.2.0/plesty/server/assets/env.example +12 -0
- plesty_bench-0.2.0/plesty/server/assets/fleet.example.yaml +44 -0
- plesty_bench-0.2.0/plesty/server/assets/plesty-mark.svg +54 -0
- plesty_bench-0.2.0/plesty/server/cli/__init__.py +14 -0
- plesty_bench-0.2.0/plesty/server/cli/main.py +761 -0
- plesty_bench-0.2.0/plesty/server/config.yaml +21 -0
- plesty_bench-0.2.0/plesty/server/host.py +262 -0
- plesty_bench-0.2.0/plesty/server/model/__init__.py +144 -0
- plesty_bench-0.2.0/plesty/server/model/catalogue.py +130 -0
- plesty_bench-0.2.0/plesty/server/model/device.py +177 -0
- plesty_bench-0.2.0/plesty/server/model/device_manager.py +364 -0
- plesty_bench-0.2.0/plesty/server/model/envfile.py +65 -0
- plesty_bench-0.2.0/plesty/server/model/errors.py +8 -0
- plesty_bench-0.2.0/plesty/server/model/field_test.py +356 -0
- plesty_bench-0.2.0/plesty/server/model/fleet.py +205 -0
- plesty_bench-0.2.0/plesty/server/model/home.py +159 -0
- plesty_bench-0.2.0/plesty/server/model/job.py +268 -0
- plesty_bench-0.2.0/plesty/server/model/ports.py +136 -0
- plesty_bench-0.2.0/plesty/server/model/process.py +124 -0
- plesty_bench-0.2.0/plesty/server/presenter/__init__.py +15 -0
- plesty_bench-0.2.0/plesty/server/presenter/bench.py +990 -0
- plesty_bench-0.2.0/plesty/server/reexec.py +69 -0
- plesty_bench-0.2.0/plesty/server/services/__init__.py +58 -0
- plesty_bench-0.2.0/plesty/server/services/agent.py +243 -0
- plesty_bench-0.2.0/plesty/server/services/catalogue.py +106 -0
- plesty_bench-0.2.0/plesty/server/services/installer.py +324 -0
- plesty_bench-0.2.0/plesty/server/services/jobs.py +118 -0
- plesty_bench-0.2.0/plesty/server/services/launch.py +178 -0
- plesty_bench-0.2.0/plesty/server/services/supervisor.py +437 -0
- plesty_bench-0.2.0/plesty/server/view/__init__.py +21 -0
- plesty_bench-0.2.0/plesty/server/view/app.py +97 -0
- plesty_bench-0.2.0/plesty/server/view/dialogs.py +808 -0
- plesty_bench-0.2.0/plesty/server/view/window.py +786 -0
- plesty_bench-0.2.0/plesty/server/view/workers.py +92 -0
- plesty_bench-0.2.0/pyproject.toml +105 -0
- plesty_bench-0.2.0/reports/check.json +169 -0
- plesty_bench-0.2.0/tests/__init__.py +4 -0
- plesty_bench-0.2.0/tests/conftest.py +118 -0
- plesty_bench-0.2.0/tests/fake_server.py +87 -0
- plesty_bench-0.2.0/tests/test_agent.py +236 -0
- plesty_bench-0.2.0/tests/test_bench.py +478 -0
- plesty_bench-0.2.0/tests/test_catalogue.py +106 -0
- plesty_bench-0.2.0/tests/test_cli.py +152 -0
- plesty_bench-0.2.0/tests/test_device_manager.py +135 -0
- plesty_bench-0.2.0/tests/test_field_test.py +145 -0
- plesty_bench-0.2.0/tests/test_fleet.py +199 -0
- plesty_bench-0.2.0/tests/test_home.py +45 -0
- plesty_bench-0.2.0/tests/test_host.py +58 -0
- plesty_bench-0.2.0/tests/test_installer.py +184 -0
- plesty_bench-0.2.0/tests/test_job.py +72 -0
- plesty_bench-0.2.0/tests/test_jobs.py +137 -0
- plesty_bench-0.2.0/tests/test_server.py +20 -0
- plesty_bench-0.2.0/tests/test_supervisor.py +212 -0
- plesty_bench-0.2.0/tests/test_view.py +519 -0
- plesty_bench-0.2.0/uv.lock +2277 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Custom
|
|
2
|
+
.deprecated/
|
|
3
|
+
logs/
|
|
4
|
+
runs/
|
|
5
|
+
|
|
6
|
+
# Field test and check reports. The JSON documents are the published
|
|
7
|
+
# artifacts — hub.plesty.net and manager.plesty.net read them, so they are
|
|
8
|
+
# committed. The markdown and JSONL forms are for whoever ran the test: they
|
|
9
|
+
# carry the host name, the instrument address, its serial and the lab's file
|
|
10
|
+
# paths, and a hub repository is world-readable.
|
|
11
|
+
# An interrupted `plesty init field-test` leaves its answers here.
|
|
12
|
+
.plesty-field-test.partial.json
|
|
13
|
+
|
|
14
|
+
reports/**/*.md
|
|
15
|
+
reports/**/*.jsonl
|
|
16
|
+
reports/*.md
|
|
17
|
+
reports/*.jsonl
|
|
18
|
+
|
|
19
|
+
# Auto-generated device reference pages (regenerated by `plesty docs`)
|
|
20
|
+
docs/_generated/
|
|
21
|
+
|
|
22
|
+
# Python bytecode and caches
|
|
23
|
+
__pycache__/
|
|
24
|
+
*.py[cod]
|
|
25
|
+
*$py.class
|
|
26
|
+
|
|
27
|
+
# C extensions and shared libraries
|
|
28
|
+
*.so
|
|
29
|
+
*.pyd
|
|
30
|
+
*.dll
|
|
31
|
+
|
|
32
|
+
# Packaging and build artifacts
|
|
33
|
+
build/
|
|
34
|
+
dist/
|
|
35
|
+
*.egg-info/
|
|
36
|
+
.eggs/
|
|
37
|
+
|
|
38
|
+
# Local credentials — keep `.env.example` tracked, never the real `.env`
|
|
39
|
+
.env
|
|
40
|
+
|
|
41
|
+
# Virtual environments
|
|
42
|
+
.venv/
|
|
43
|
+
venv/
|
|
44
|
+
env/
|
|
45
|
+
ENV/
|
|
46
|
+
.uv_cache/
|
|
47
|
+
|
|
48
|
+
# Test and coverage outputs
|
|
49
|
+
.pytest_cache/
|
|
50
|
+
.coverage
|
|
51
|
+
.coverage.*
|
|
52
|
+
htmlcov/
|
|
53
|
+
.mypy_cache/
|
|
54
|
+
.ruff_cache/
|
|
55
|
+
|
|
56
|
+
# Jupyter
|
|
57
|
+
.ipynb_checkpoints/
|
|
58
|
+
|
|
59
|
+
# Logs and runtime files
|
|
60
|
+
*.log
|
|
61
|
+
*.pid
|
|
62
|
+
|
|
63
|
+
# IDE/editor
|
|
64
|
+
.vscode/
|
|
65
|
+
.idea/
|
|
66
|
+
*.swp
|
|
67
|
+
*.swo
|
|
68
|
+
|
|
69
|
+
# OS files
|
|
70
|
+
.DS_Store
|
|
71
|
+
Thumbs.db
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- check
|
|
3
|
+
- security
|
|
4
|
+
- deploy
|
|
5
|
+
- release
|
|
6
|
+
|
|
7
|
+
variables:
|
|
8
|
+
# Required for versioningit: the runner must fetch full Git history and tags.
|
|
9
|
+
GIT_DEPTH: "0"
|
|
10
|
+
|
|
11
|
+
include:
|
|
12
|
+
- component: $CI_SERVER_FQDN/plesty/plesty-ci/plesty-standard-ci@main
|
|
13
|
+
inputs:
|
|
14
|
+
standard: quantum
|
|
15
|
+
extra_branch: exp
|
|
16
|
+
access_token: $CI_BOT_TOKEN
|
|
17
|
+
|
|
18
|
+
# The template's hub-release publishes plesty-bench. Both PyPI publishers use
|
|
19
|
+
# the same namespace/project/pipeline file, so they are told apart by the
|
|
20
|
+
# GitLab environment the publishing job runs in (PyPI refuses two pending
|
|
21
|
+
# publishers that differ only in the project name): pypi-bench here,
|
|
22
|
+
# pypi-server below.
|
|
23
|
+
hub-release:
|
|
24
|
+
environment:
|
|
25
|
+
name: pypi-bench
|
|
26
|
+
url: https://pypi.org/project/plesty-bench/
|
|
27
|
+
|
|
28
|
+
# ---------------------------------------------------------------------------
|
|
29
|
+
# The second distribution and the light installers — on tags.
|
|
30
|
+
#
|
|
31
|
+
# The standard template's hub-release publishes the wheel of this project
|
|
32
|
+
# (plesty-bench, the client). The bench application is a second distribution,
|
|
33
|
+
# plesty-server, assembled from the same tree by packaging/server_dist.py and
|
|
34
|
+
# published here through the same trusted publisher (OIDC, no stored token).
|
|
35
|
+
# The installers carry no application code: they install uv and run
|
|
36
|
+
# `uv tool install "plesty-server[gui]==<version>"` on the bench.
|
|
37
|
+
# ---------------------------------------------------------------------------
|
|
38
|
+
.release-rules:
|
|
39
|
+
rules:
|
|
40
|
+
- if: $CI_COMMIT_TAG
|
|
41
|
+
|
|
42
|
+
release:server-wheel:
|
|
43
|
+
stage: release
|
|
44
|
+
extends: .release-rules
|
|
45
|
+
image: ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
|
46
|
+
environment:
|
|
47
|
+
name: pypi-server
|
|
48
|
+
url: https://pypi.org/project/plesty-server/
|
|
49
|
+
id_tokens:
|
|
50
|
+
PYPI_ID_TOKEN:
|
|
51
|
+
aud: pypi
|
|
52
|
+
variables:
|
|
53
|
+
UV_LINK_MODE: copy
|
|
54
|
+
UV_CACHE_DIR: /tmp/uv-cache
|
|
55
|
+
before_script:
|
|
56
|
+
- git fetch --tags --force
|
|
57
|
+
script:
|
|
58
|
+
- uv sync --frozen
|
|
59
|
+
- VERSION="$(uv run python -c 'from importlib.metadata import version; print(version("plesty-bench"))')"
|
|
60
|
+
- echo "plesty-server $VERSION"
|
|
61
|
+
- uv run python packaging/server_dist.py --out dist-server --version "$VERSION"
|
|
62
|
+
- ls -la dist-server
|
|
63
|
+
- |
|
|
64
|
+
# Trusted publishing: mint an upload token from the job's ID token, as the
|
|
65
|
+
# standard template does for plesty-bench (a PYPI_TOKEN variable wins if set).
|
|
66
|
+
if [ -n "${PYPI_TOKEN:-}" ]; then
|
|
67
|
+
uv publish --token "$PYPI_TOKEN" dist-server/*
|
|
68
|
+
else
|
|
69
|
+
test -n "$PYPI_ID_TOKEN" || { echo "no OIDC ID token"; exit 1; }
|
|
70
|
+
API_TOKEN="$(python3 - <<'PY'
|
|
71
|
+
import json, os, urllib.request
|
|
72
|
+
req = urllib.request.Request("https://pypi.org/_/oidc/mint-token",
|
|
73
|
+
data=json.dumps({"token": os.environ["PYPI_ID_TOKEN"]}).encode(),
|
|
74
|
+
headers={"Content-Type": "application/json"})
|
|
75
|
+
with urllib.request.urlopen(req, timeout=30) as r:
|
|
76
|
+
print(json.load(r)["token"])
|
|
77
|
+
PY
|
|
78
|
+
)"
|
|
79
|
+
uv publish --token "$API_TOKEN" dist-server/*
|
|
80
|
+
fi
|
|
81
|
+
artifacts:
|
|
82
|
+
paths:
|
|
83
|
+
- dist-server/*.whl
|
|
84
|
+
expire_in: 1 year
|
|
85
|
+
|
|
86
|
+
installer:windows:
|
|
87
|
+
stage: release
|
|
88
|
+
extends: .release-rules
|
|
89
|
+
tags:
|
|
90
|
+
- saas-windows-medium-amd64
|
|
91
|
+
before_script:
|
|
92
|
+
- powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
|
93
|
+
- $env:Path = "$env:USERPROFILE\.local\bin;$env:Path"
|
|
94
|
+
- choco install innosetup -y --no-progress | Out-Null
|
|
95
|
+
- git fetch --tags --force
|
|
96
|
+
script:
|
|
97
|
+
- uv sync --frozen --group build
|
|
98
|
+
- $VERSION = (uv run python -c "from importlib.metadata import version; print(version('plesty-bench'))")
|
|
99
|
+
- uv run --group build python -c "from PIL import Image; Image.open('packaging/plesty-mark.png').save('packaging/plesty-mark.ico', sizes=[(256,256),(128,128),(64,64),(48,48),(32,32),(16,16)])"
|
|
100
|
+
- '& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "/DAppVersion=$VERSION" packaging\windows\plesty-server.iss'
|
|
101
|
+
- Get-ChildItem dist
|
|
102
|
+
artifacts:
|
|
103
|
+
paths:
|
|
104
|
+
- dist/plesty-server-*-windows-setup.exe
|
|
105
|
+
expire_in: 1 year
|
|
106
|
+
|
|
107
|
+
# The GitLab release for a tag: the Windows installer and the install script
|
|
108
|
+
# for macOS/Linux from the package registry (permanent), plus the two PyPI
|
|
109
|
+
# distributions — the Releases page is the download list.
|
|
110
|
+
release:assets:
|
|
111
|
+
stage: release
|
|
112
|
+
extends: .release-rules
|
|
113
|
+
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
|
114
|
+
needs:
|
|
115
|
+
- job: installer:windows
|
|
116
|
+
artifacts: true
|
|
117
|
+
- job: release:server-wheel
|
|
118
|
+
artifacts: false
|
|
119
|
+
variables:
|
|
120
|
+
REGISTRY: "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/plesty-server/$CI_COMMIT_TAG"
|
|
121
|
+
script:
|
|
122
|
+
- apk add --no-cache curl >/dev/null
|
|
123
|
+
- ls -la dist
|
|
124
|
+
- |
|
|
125
|
+
setup="$(ls dist/plesty-server-*-windows-setup.exe | head -1)"
|
|
126
|
+
[ -n "$setup" ] || { echo "no Windows installer"; exit 1; }
|
|
127
|
+
curl --fail --silent --show-error --header "JOB-TOKEN: $CI_JOB_TOKEN" \
|
|
128
|
+
--upload-file "$setup" "$REGISTRY/plesty-server-$CI_COMMIT_TAG-windows-setup.exe"
|
|
129
|
+
curl --fail --silent --show-error --header "JOB-TOKEN: $CI_JOB_TOKEN" \
|
|
130
|
+
--upload-file packaging/install.sh "$REGISTRY/install.sh"
|
|
131
|
+
release:
|
|
132
|
+
tag_name: $CI_COMMIT_TAG
|
|
133
|
+
name: "plesty-server $CI_COMMIT_TAG"
|
|
134
|
+
description: >-
|
|
135
|
+
Windows: run the installer (it installs uv and the application from PyPI;
|
|
136
|
+
Start-menu entry, optional desktop shortcut). macOS/Linux:
|
|
137
|
+
`curl -LsSf <install.sh link> | sh`. Developer machines: `uv tool install plesty-bench`.
|
|
138
|
+
Update a bench with `uv tool upgrade plesty-server`. See CHANGELOG.md.
|
|
139
|
+
assets:
|
|
140
|
+
links:
|
|
141
|
+
- name: "plesty-server-$CI_COMMIT_TAG-windows-setup.exe (Windows installer)"
|
|
142
|
+
url: "$REGISTRY/plesty-server-$CI_COMMIT_TAG-windows-setup.exe"
|
|
143
|
+
link_type: package
|
|
144
|
+
- name: "install.sh (macOS / Linux: curl -LsSf … | sh)"
|
|
145
|
+
url: "$REGISTRY/install.sh"
|
|
146
|
+
link_type: other
|
|
147
|
+
- name: "plesty-server on PyPI (the bench application)"
|
|
148
|
+
url: "https://pypi.org/project/plesty-server/"
|
|
149
|
+
link_type: other
|
|
150
|
+
- name: "plesty-bench on PyPI (the client)"
|
|
151
|
+
url: "https://pypi.org/project/plesty-bench/"
|
|
152
|
+
link_type: other
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com).
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [0.2.0] - 2026-08-19
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- The bench application is published on PyPI as **`plesty-server`**
|
|
11
|
+
(`uv tool install "plesty-server[gui]"`; `plesty-server-gui` is a GUI
|
|
12
|
+
script — no console window on Windows), assembled by
|
|
13
|
+
`packaging/server_dist.py` next to `plesty-bench`.
|
|
14
|
+
- Light installers that carry no application code: Windows `setup.exe`
|
|
15
|
+
(installs `uv`, then the pinned `plesty-server[gui]` from PyPI; Start-menu
|
|
16
|
+
entries, optional desktop shortcut, uninstaller) and `install.sh` for
|
|
17
|
+
macOS (`~/Applications/PLESTY Bench.app` launcher, Launchpad) and Linux
|
|
18
|
+
(`.desktop` entry). Application icons from the PLESTY mark.
|
|
19
|
+
- The console remembers the last fleet it used (`<home>/last-fleet`) so a
|
|
20
|
+
double-click reopens it.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Repository renamed to `plesty/core/plesty-bench` (the old URL redirects).
|
|
24
|
+
- The PyInstaller bundles of 0.1.0 are gone: a bench installs from PyPI.
|
|
25
|
+
|
|
26
|
+
## [0.1.0] - 2026-08-19
|
|
27
|
+
|
|
28
|
+
First release: the bench application and the `plesty-bench` client.
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
- `plesty.server`: the bench application — model (fleet file, inventory keyed by
|
|
32
|
+
version or `git-<ref>`, jobs, processes, field tests, catalogue, `.env`),
|
|
33
|
+
services (installer with `uv`/`git`, detached launcher, job runner,
|
|
34
|
+
supervisor with `describe` probe and port ownership, agent, catalogue),
|
|
35
|
+
presenter `Bench`, the `plesty-server` CLI (`declare/install/update/start/
|
|
36
|
+
stop/status/log/field-test/reports/jobs/fleet up|down|run/agent/gui`), and
|
|
37
|
+
the Qt console on plesty-lib's theme (working-fleet check column, device and
|
|
38
|
+
fleet button bars, declare/config/fleet-file/catalogue/field-test/job
|
|
39
|
+
dialogs).
|
|
40
|
+
- `plesty.bench`: the client published to PyPI — `BenchClient`
|
|
41
|
+
(describe/exec/fetch/follow over the plesty-lib wire) and the `plesty-bench`
|
|
42
|
+
command, "the CLI is the API".
|
|
43
|
+
- `host.py`: every platform difference in one module (guarded by a test);
|
|
44
|
+
`reexec.py`: source vs PyInstaller bundle.
|
|
45
|
+
- Packaging: PyInstaller bundles per OS (console + windowed executables) built
|
|
46
|
+
by CI and listed on the GitLab Release from the package registry.
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
Copyright (C) 2026 Plesty Development Team
|
|
2
|
+
|
|
3
|
+
This file is part of Plesty.
|
|
4
|
+
|
|
5
|
+
Plesty is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
Plesty is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU Lesser General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
16
|
+
along with Plesty. If not, see <https://www.gnu.org/licenses/> or the copy below.
|
|
17
|
+
|
|
18
|
+
#########################################################################
|
|
19
|
+
|
|
20
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
21
|
+
Version 3, 29 June 2007
|
|
22
|
+
|
|
23
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
24
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
25
|
+
of this license document, but changing it is not allowed.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
This version of the GNU Lesser General Public License incorporates
|
|
29
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
30
|
+
License, supplemented by the additional permissions listed below.
|
|
31
|
+
|
|
32
|
+
0. Additional Definitions.
|
|
33
|
+
|
|
34
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
35
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
36
|
+
General Public License.
|
|
37
|
+
|
|
38
|
+
"The Library" refers to a covered work governed by this License,
|
|
39
|
+
other than an Application or a Combined Work as defined below.
|
|
40
|
+
|
|
41
|
+
An "Application" is any work that makes use of an interface provided
|
|
42
|
+
by the Library, but which is not otherwise based on the Library.
|
|
43
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
44
|
+
of using an interface provided by the Library.
|
|
45
|
+
|
|
46
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
47
|
+
Application with the Library. The particular version of the Library
|
|
48
|
+
with which the Combined Work was made is also called the "Linked
|
|
49
|
+
Version".
|
|
50
|
+
|
|
51
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
52
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
53
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
54
|
+
based on the Application, and not on the Linked Version.
|
|
55
|
+
|
|
56
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
57
|
+
object code and/or source code for the Application, including any data
|
|
58
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
59
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
60
|
+
|
|
61
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
62
|
+
|
|
63
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
64
|
+
without being bound by section 3 of the GNU GPL.
|
|
65
|
+
|
|
66
|
+
2. Conveying Modified Versions.
|
|
67
|
+
|
|
68
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
69
|
+
facility refers to a function or data to be supplied by an Application
|
|
70
|
+
that uses the facility (other than as an argument passed when the
|
|
71
|
+
facility is invoked), then you may convey a copy of the modified
|
|
72
|
+
version:
|
|
73
|
+
|
|
74
|
+
a) under this License, provided that you make a good faith effort to
|
|
75
|
+
ensure that, in the event an Application does not supply the
|
|
76
|
+
function or data, the facility still operates, and performs
|
|
77
|
+
whatever part of its purpose remains meaningful, or
|
|
78
|
+
|
|
79
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
80
|
+
this License applicable to that copy.
|
|
81
|
+
|
|
82
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
83
|
+
|
|
84
|
+
The object code form of an Application may incorporate material from
|
|
85
|
+
a header file that is part of the Library. You may convey such object
|
|
86
|
+
code under terms of your choice, provided that, if the incorporated
|
|
87
|
+
material is not limited to numerical parameters, data structure
|
|
88
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
89
|
+
(ten or fewer lines in length), you do both of the following:
|
|
90
|
+
|
|
91
|
+
a) Give prominent notice with each copy of the object code that the
|
|
92
|
+
Library is used in it and that the Library and its use are
|
|
93
|
+
covered by this License.
|
|
94
|
+
|
|
95
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
96
|
+
document.
|
|
97
|
+
|
|
98
|
+
4. Combined Works.
|
|
99
|
+
|
|
100
|
+
You may convey a Combined Work under terms of your choice that,
|
|
101
|
+
taken together, effectively do not restrict modification of the
|
|
102
|
+
portions of the Library contained in the Combined Work and reverse
|
|
103
|
+
engineering for debugging such modifications, if you also do each of
|
|
104
|
+
the following:
|
|
105
|
+
|
|
106
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
107
|
+
the Library is used in it and that the Library and its use are
|
|
108
|
+
covered by this License.
|
|
109
|
+
|
|
110
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
111
|
+
document.
|
|
112
|
+
|
|
113
|
+
c) For a Combined Work that displays copyright notices during
|
|
114
|
+
execution, include the copyright notice for the Library among
|
|
115
|
+
these notices, as well as a reference directing the user to the
|
|
116
|
+
copies of the GNU GPL and this license document.
|
|
117
|
+
|
|
118
|
+
d) Do one of the following:
|
|
119
|
+
|
|
120
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
121
|
+
License, and the Corresponding Application Code in a form
|
|
122
|
+
suitable for, and under terms that permit, the user to
|
|
123
|
+
recombine or relink the Application with a modified version of
|
|
124
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
125
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
126
|
+
Corresponding Source.
|
|
127
|
+
|
|
128
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
129
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
130
|
+
a copy of the Library already present on the user's computer
|
|
131
|
+
system, and (b) will operate properly with a modified version
|
|
132
|
+
of the Library that is interface-compatible with the Linked
|
|
133
|
+
Version.
|
|
134
|
+
|
|
135
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
136
|
+
be required to provide such information under section 6 of the
|
|
137
|
+
GNU GPL, and only to the extent that such information is
|
|
138
|
+
necessary to install and execute a modified version of the
|
|
139
|
+
Combined Work produced by recombining or relinking the
|
|
140
|
+
Application with a modified version of the Linked Version. (If
|
|
141
|
+
you use option 4d0, the Installation Information must accompany
|
|
142
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
143
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
144
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
145
|
+
for conveying Corresponding Source.)
|
|
146
|
+
|
|
147
|
+
5. Combined Libraries.
|
|
148
|
+
|
|
149
|
+
You may place library facilities that are a work based on the
|
|
150
|
+
Library side by side in a single library together with other library
|
|
151
|
+
facilities that are not Applications and are not covered by this
|
|
152
|
+
License, and convey such a combined library under terms of your
|
|
153
|
+
choice, if you do both of the following:
|
|
154
|
+
|
|
155
|
+
a) Accompany the combined library with a copy of the same work based
|
|
156
|
+
on the Library, uncombined with any other library facilities,
|
|
157
|
+
conveyed under the terms of this License.
|
|
158
|
+
|
|
159
|
+
b) Give prominent notice with the combined library that part of it
|
|
160
|
+
is a work based on the Library, and explaining where to find the
|
|
161
|
+
accompanying uncombined form of the same work.
|
|
162
|
+
|
|
163
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
164
|
+
|
|
165
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
166
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
167
|
+
versions will be similar in spirit to the present version, but may
|
|
168
|
+
differ in detail to address new problems or concerns.
|
|
169
|
+
|
|
170
|
+
Each version is given a distinguishing version number. If the
|
|
171
|
+
Library as you received it specifies that a certain numbered version
|
|
172
|
+
of the GNU Lesser General Public License "or any later version"
|
|
173
|
+
applies to it, you have the option of following the terms and
|
|
174
|
+
conditions either of that published version or of any later version
|
|
175
|
+
published by the Free Software Foundation. If the Library as you
|
|
176
|
+
received it does not specify a version number of the GNU Lesser
|
|
177
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
178
|
+
General Public License ever published by the Free Software Foundation.
|
|
179
|
+
|
|
180
|
+
If the Library as you received it specifies that a proxy can decide
|
|
181
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
182
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
183
|
+
permanent authorization for you to choose that version for the
|
|
184
|
+
Library.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: plesty-bench
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Client for a PLESTY bench running plesty-server: run its commands and fetch its reports from another machine.
|
|
5
|
+
Author-email: Yunshuang Yuan <yuanyunshuang@gmail.com>
|
|
6
|
+
Maintainer-email: Plesty Development Team <plesty.dev@example.com>
|
|
7
|
+
License-Expression: LGPL-3.0-or-later
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: LICENSES/LGPL-3.0-or-later.txt
|
|
10
|
+
Requires-Python: >=3.12
|
|
11
|
+
Requires-Dist: click>=8.1
|
|
12
|
+
Requires-Dist: pyzmq>=26
|
|
13
|
+
Provides-Extra: gui
|
|
14
|
+
Requires-Dist: plesty-lib>=0.3.3; extra == 'gui'
|
|
15
|
+
Requires-Dist: plesty-lib[gui]>=0.3.3; extra == 'gui'
|
|
16
|
+
Requires-Dist: pyyaml>=6.0; extra == 'gui'
|
|
17
|
+
Provides-Extra: server
|
|
18
|
+
Requires-Dist: plesty-lib>=0.3.3; extra == 'server'
|
|
19
|
+
Requires-Dist: pyyaml>=6.0; extra == 'server'
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# plesty-server
|
|
23
|
+
|
|
24
|
+
The bench PC's own console for the PLESTY platform: installs hub device
|
|
25
|
+
modules (several versions side by side), launches and supervises their device
|
|
26
|
+
servers, runs field tests against the instruments, and keeps the logs — so
|
|
27
|
+
running the platform on a lab bench is no longer hand work.
|
|
28
|
+
|
|
29
|
+
Two deliverables from one repository:
|
|
30
|
+
|
|
31
|
+
- **`plesty.server`** — the bench application (CLI `plesty-server`, Qt
|
|
32
|
+
console `plesty-server-gui`, agent), on PyPI as **`plesty-server`**:
|
|
33
|
+
`uv tool install "plesty-server[gui]"` — or the light installers from the
|
|
34
|
+
[releases](https://gitlab.com/plesty/core/plesty-bench/-/releases) (Windows
|
|
35
|
+
`setup.exe`; `install.sh` for macOS/Linux), which do exactly that plus the
|
|
36
|
+
Start-menu / Launchpad entry.
|
|
37
|
+
- **`plesty.bench`** — the remote client, on PyPI as **`plesty-bench`**
|
|
38
|
+
(`uv tool install plesty-bench`). The CLI is the API:
|
|
39
|
+
`plesty-bench -b lab-bench-03 field-test pm100d` runs it on the bench and
|
|
40
|
+
follows the job.
|
|
41
|
+
|
|
42
|
+
Built as model – services – presenter – view, with one module (`host`) for
|
|
43
|
+
everything that differs between Windows and POSIX. See `docs/` for the
|
|
44
|
+
architecture, the process-management and cross-platform primers, the console
|
|
45
|
+
and the remote loop.
|