This commit is contained in:
Jonas Bengtsson
2026-10-08 07:57:21 +02:00
parent 406fdc61ac
commit 1478db73a9
14 changed files with 972 additions and 50 deletions
+9 -1
View File
@@ -162,6 +162,9 @@ browse:
report:
heartbeat_s: 300
jsonl: { dir: "C:/ProgramData/OPCDA-Diagnozer/logs", max_mb: 50, backups: 10 }
textlog: { dir: "C:/ProgramData/OPCDA-Diagnozer/logs", max_mb: 20, backups: 10 }
eventlog: { source: "OPCDA-Diagnozer", min_severity: WARN }
#http: { url: "https://alerts.example.com/api", bearer_token: "...", timeout_s: 5 }
eventlog: { source: "OPCDA-Diagnozer", min_severity: WARN }
```
@@ -208,7 +211,7 @@ so the Python interpreter **must be 32-bit** (SPECIFICATION §11 / Phase 0 decis
```powershell
# create the 32-bit venv (requires the 32-bit Python installed via the py launcher)
& "C:\Users\<user>\AppData\Local\Programs\Python\Python314-32\python.exe" -m venv .venv
& ".\.venv\Scripts\python.exe" -m pip install -e ".[dev]"
& ".\.venv\Scripts\python.exe" -m pip install -e . -r requirements.dev.txt
# verify bitness — must print 32
& ".\.venv\Scripts\python.exe" -c "import struct; print(struct.calcsize('P') * 8)"
@@ -217,6 +220,11 @@ so the Python interpreter **must be 32-bit** (SPECIFICATION §11 / Phase 0 decis
& ".\.venv\Scripts\python.exe" -m pytest
```
Dependency files: `requirements.txt` (production) and
`requirements.dev.txt` (adds pytest + pyinstaller, chains production via
`-r requirements.txt`). `pip install -e ".[dev]"` works too —
`pyproject.toml` stays the canonical package source.
Notes:
- Dependencies are chosen to be installable without a C compiler: **ruamel.yaml**
(pure Python) is used instead of PyYAML, which publishes no 32-bit CPython 3.14