secop-ophyd 0.10.1__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.
- secop_ophyd-0.10.1/.github/workflows/code.yaml +170 -0
- secop_ophyd-0.10.1/.gitignore +9 -0
- secop_ophyd-0.10.1/.gitlab-ci.yml +11 -0
- secop_ophyd-0.10.1/.gitmodules +4 -0
- secop_ophyd-0.10.1/.pre-commit-config.yaml +26 -0
- secop_ophyd-0.10.1/.vscode/launch.json +17 -0
- secop_ophyd-0.10.1/.vscode/settings.json +25 -0
- secop_ophyd-0.10.1/.vscode/tasks.json +37 -0
- secop_ophyd-0.10.1/LICENSE +674 -0
- secop_ophyd-0.10.1/PKG-INFO +731 -0
- secop_ophyd-0.10.1/README.md +19 -0
- secop_ophyd-0.10.1/docs/Makefile +20 -0
- secop_ophyd-0.10.1/docs/make.bat +35 -0
- secop_ophyd-0.10.1/docs/source/conf.py +30 -0
- secop_ophyd-0.10.1/docs/source/index.rst +20 -0
- secop_ophyd-0.10.1/info/secop-ophyd-presentation.pdf +0 -0
- secop_ophyd-0.10.1/makefile +38 -0
- secop_ophyd-0.10.1/pyproject.toml +125 -0
- secop_ophyd-0.10.1/setup.cfg +4 -0
- secop_ophyd-0.10.1/src/secop_ophyd/AsyncFrappyClient.py +88 -0
- secop_ophyd-0.10.1/src/secop_ophyd/GenNodeCode.py +278 -0
- secop_ophyd-0.10.1/src/secop_ophyd/SECoPDevices.py +1082 -0
- secop_ophyd-0.10.1/src/secop_ophyd/SECoPSignal.py +517 -0
- secop_ophyd-0.10.1/src/secop_ophyd/__init__.py +0 -0
- secop_ophyd-0.10.1/src/secop_ophyd/_version.py +21 -0
- secop_ophyd-0.10.1/src/secop_ophyd/propertykeys.py +61 -0
- secop_ophyd-0.10.1/src/secop_ophyd/util.py +759 -0
- secop_ophyd-0.10.1/src/secop_ophyd.egg-info/PKG-INFO +731 -0
- secop_ophyd-0.10.1/src/secop_ophyd.egg-info/SOURCES.txt +41 -0
- secop_ophyd-0.10.1/src/secop_ophyd.egg-info/dependency_links.txt +1 -0
- secop_ophyd-0.10.1/src/secop_ophyd.egg-info/requires.txt +27 -0
- secop_ophyd-0.10.1/src/secop_ophyd.egg-info/top_level.txt +1 -0
- secop_ophyd-0.10.1/tests/__init__.py +0 -0
- secop_ophyd-0.10.1/tests/conftest.py +361 -0
- secop_ophyd-0.10.1/tests/test_ classgen.py +22 -0
- secop_ophyd-0.10.1/tests/test_Node.py +207 -0
- secop_ophyd-0.10.1/tests/test_RE.py +34 -0
- secop_ophyd-0.10.1/tests/test_async_frappy_client.py +112 -0
- secop_ophyd-0.10.1/tests/test_commands.py +127 -0
- secop_ophyd-0.10.1/tests/test_dtype.py +181 -0
- secop_ophyd-0.10.1/tests/test_nested.py +170 -0
- secop_ophyd-0.10.1/tests/test_path.py +75 -0
- secop_ophyd-0.10.1/tests/test_primitive_arrays.py +77 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
name: Lint, Test and Publish secop-ophyd to PyPI and TestPyPI
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
WORK_DIR: ${{ github.workspace }}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
|
|
16
|
+
lint:
|
|
17
|
+
name: Lint Codebase
|
|
18
|
+
# pull requests are a duplicate of a branch push if within the same repo.
|
|
19
|
+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- name: Checkout
|
|
24
|
+
uses: actions/checkout@v4
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
python -m pip install .[dev]
|
|
30
|
+
|
|
31
|
+
- name: Lint
|
|
32
|
+
run: |
|
|
33
|
+
tox -e pre-commit,mypy
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
test:
|
|
39
|
+
name: Run Tests on Codebase
|
|
40
|
+
# pull requests are a duplicate of a branch push if within the same repo.
|
|
41
|
+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
strategy:
|
|
44
|
+
fail-fast: false
|
|
45
|
+
matrix:
|
|
46
|
+
python-version: ["3.10", "3.11"]
|
|
47
|
+
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v4
|
|
50
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
51
|
+
uses: actions/setup-python@v4
|
|
52
|
+
with:
|
|
53
|
+
python-version: ${{ matrix.python-version }}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- run: |
|
|
57
|
+
git submodule init
|
|
58
|
+
git submodule update
|
|
59
|
+
|
|
60
|
+
- name: Install dependencies
|
|
61
|
+
run: |
|
|
62
|
+
python -m pip install --upgrade pip
|
|
63
|
+
python -m pip install .[dev]
|
|
64
|
+
|
|
65
|
+
- name: Add PATH envirnoment variable for xprocess
|
|
66
|
+
run: |
|
|
67
|
+
pip freeze
|
|
68
|
+
echo "PATH_VAR=$PATH" >> "$GITHUB_ENV"
|
|
69
|
+
|
|
70
|
+
- name: Run Tests
|
|
71
|
+
run: |
|
|
72
|
+
tox -e pytest
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
build:
|
|
76
|
+
name: Build distribution 📦
|
|
77
|
+
runs-on: ubuntu-latest
|
|
78
|
+
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@v4
|
|
81
|
+
- name: Set up Python
|
|
82
|
+
uses: actions/setup-python@v4
|
|
83
|
+
with:
|
|
84
|
+
python-version: "3.x"
|
|
85
|
+
- name: Install pypa/build
|
|
86
|
+
run: >-
|
|
87
|
+
python3 -m
|
|
88
|
+
pip install
|
|
89
|
+
build
|
|
90
|
+
--user
|
|
91
|
+
- name: Build a binary wheel and a source tarball
|
|
92
|
+
run: python3 -m build
|
|
93
|
+
- name: Store the distribution packages
|
|
94
|
+
uses: actions/upload-artifact@v4
|
|
95
|
+
with:
|
|
96
|
+
name: python-package-distributions
|
|
97
|
+
path: dist/
|
|
98
|
+
|
|
99
|
+
publish-to-pypi:
|
|
100
|
+
name: >-
|
|
101
|
+
Publish to PyPI
|
|
102
|
+
if: ${{startsWith(github.ref, 'refs/tags/')}} # only publish to PyPI on tag pushes
|
|
103
|
+
needs: [lint,test,build]
|
|
104
|
+
runs-on: ubuntu-latest
|
|
105
|
+
environment:
|
|
106
|
+
name: pypi
|
|
107
|
+
url: https://pypi.org/p/secop-ophyd # Replace <package-name> with your PyPI project name
|
|
108
|
+
permissions:
|
|
109
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
110
|
+
|
|
111
|
+
steps:
|
|
112
|
+
- name: Download all the dists
|
|
113
|
+
uses: actions/download-artifact@v4
|
|
114
|
+
with:
|
|
115
|
+
name: python-package-distributions
|
|
116
|
+
path: dist/
|
|
117
|
+
- name: Publish distribution 📦 to PyPI
|
|
118
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
119
|
+
|
|
120
|
+
github-release:
|
|
121
|
+
name: >-
|
|
122
|
+
Sign distribution upload them to GitHub Release
|
|
123
|
+
needs:
|
|
124
|
+
- publish-to-pypi
|
|
125
|
+
runs-on: ubuntu-latest
|
|
126
|
+
|
|
127
|
+
permissions:
|
|
128
|
+
contents: write # IMPORTANT: mandatory for making GitHub Releases
|
|
129
|
+
id-token: write # IMPORTANT: mandatory for sigstore
|
|
130
|
+
|
|
131
|
+
steps:
|
|
132
|
+
- name: Download all the dists
|
|
133
|
+
uses: actions/download-artifact@v4
|
|
134
|
+
with:
|
|
135
|
+
name: python-package-distributions
|
|
136
|
+
path: dist/
|
|
137
|
+
- name: Sign the dists with Sigstore
|
|
138
|
+
uses: sigstore/gh-action-sigstore-python@v1.2.3
|
|
139
|
+
with:
|
|
140
|
+
inputs: >-
|
|
141
|
+
./dist/*.tar.gz
|
|
142
|
+
./dist/*.whl
|
|
143
|
+
- name: Create GitHub Release
|
|
144
|
+
env:
|
|
145
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
146
|
+
run: >-
|
|
147
|
+
gh release create
|
|
148
|
+
'${{ github.ref_name }}'
|
|
149
|
+
--repo '${{ github.repository }}'
|
|
150
|
+
--notes ""
|
|
151
|
+
- name: Upload artifact signatures to GitHub Release
|
|
152
|
+
env:
|
|
153
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
154
|
+
# Upload to GitHub Release using the `gh` CLI.
|
|
155
|
+
# `dist/` contains the built packages, and the
|
|
156
|
+
# sigstore-produced signatures and certificates.
|
|
157
|
+
run: >-
|
|
158
|
+
gh release upload
|
|
159
|
+
'${{ github.ref_name }}' dist/**
|
|
160
|
+
--repo '${{ github.repository }}'
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.4.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-added-large-files
|
|
6
|
+
- id: check-yaml
|
|
7
|
+
- id: check-merge-conflict
|
|
8
|
+
|
|
9
|
+
- repo: local
|
|
10
|
+
hooks:
|
|
11
|
+
- id: black
|
|
12
|
+
name: Run black
|
|
13
|
+
stages: [pre-commit]
|
|
14
|
+
language: system
|
|
15
|
+
entry: black --check --diff src tests
|
|
16
|
+
types: [python]
|
|
17
|
+
|
|
18
|
+
- id: flake8
|
|
19
|
+
name: Run flake8
|
|
20
|
+
stages: [pre-commit]
|
|
21
|
+
language: system
|
|
22
|
+
entry: flake8 src tests
|
|
23
|
+
types: [python]
|
|
24
|
+
verbose: true
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Verwendet IntelliSense zum Ermitteln möglicher Attribute.
|
|
3
|
+
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen.
|
|
4
|
+
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Python: Aktuelle Datei",
|
|
9
|
+
"type": "python",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"program": "${workspaceFolder}/secop_ophyd/bssecclient.py",
|
|
12
|
+
"console": "integratedTerminal",
|
|
13
|
+
"justMyCode": false,
|
|
14
|
+
//"postDebugTask": "stop server"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"python.testing.pytestArgs": [
|
|
3
|
+
"tests/."
|
|
4
|
+
],
|
|
5
|
+
"python.testing.unittestEnabled": false,
|
|
6
|
+
"python.testing.pytestEnabled": true,
|
|
7
|
+
"python.experiments.optOutFrom": ["pythonTestAdapter"],
|
|
8
|
+
"terminal.integrated.fontFamily": "monospace, PowerlineSymbols",
|
|
9
|
+
"terminal.integrated.stickyScroll.enabled": true,
|
|
10
|
+
"editor.rulers": [
|
|
11
|
+
88
|
|
12
|
+
],
|
|
13
|
+
"workbench.colorCustomizations": {
|
|
14
|
+
"editorRuler.foreground": "#f5f38067"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"tasks": [
|
|
4
|
+
{
|
|
5
|
+
"label": "start server",
|
|
6
|
+
"type": "shell",
|
|
7
|
+
"isBackground": true,
|
|
8
|
+
//"command":"pwd",
|
|
9
|
+
"command": "python",
|
|
10
|
+
"args": ["${workspaceFolder}/frappy/bin/frappy-server","-c","${workspaceFolder}/frappy/cfg/cryo_cfg.py","cryo"],
|
|
11
|
+
"presentation": { "reveal": "silent" },
|
|
12
|
+
"problemMatcher": [{
|
|
13
|
+
"pattern": [{
|
|
14
|
+
"regexp": ".",
|
|
15
|
+
"file": 1,"line": 1,
|
|
16
|
+
"column": 1,"message": 1
|
|
17
|
+
}],
|
|
18
|
+
"background": {
|
|
19
|
+
"activeOnStart": true,
|
|
20
|
+
"beginsPattern": { "regexp": "." },
|
|
21
|
+
"endsPattern": { "regexp": "." }
|
|
22
|
+
},
|
|
23
|
+
}]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "stop server",
|
|
27
|
+
"command": "echo ${input:terminate}",
|
|
28
|
+
"type": "shell"
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
"inputs": [{
|
|
32
|
+
"id": "terminate",
|
|
33
|
+
"type": "command",
|
|
34
|
+
"command": "workbench.action.tasks.terminate",
|
|
35
|
+
"args": "terminateAll"
|
|
36
|
+
}]
|
|
37
|
+
}
|