Normalize native dependency ownership and split config UI
Some checks failed
Some checks failed
Make distro packages the single source of truth for GTK/X11 Python bindings instead of advertising them as wheel-managed runtime dependencies. Update the uv, CI, and packaging workflows to use system site packages, regenerate uv.lock, and keep portable and Arch metadata aligned with that contract. Pull runtime policy, audio probing, and page builders out of config_ui.py so the settings window becomes a coordinator instead of a single large mixed-concern module. Rename the config serialization and logging helpers, and stop startup logging from exposing raw vocabulary entries or custom model paths. Remove stale helper aliases and add regression coverage for safe startup logging, packaging metadata and module drift, portable requirements, and the extracted audio helper behavior. Validated with uv lock, python3 -m compileall -q src tests, python3 -m unittest discover -s tests -p 'test_*.py', make build, and make package-arch.
This commit is contained in:
parent
f779b71e1b
commit
c6fc61c885
23 changed files with 617 additions and 437 deletions
|
|
@ -15,22 +15,16 @@ prepare() {
|
|||
cd "${srcdir}/aman-${pkgver}"
|
||||
python -m build --wheel
|
||||
python - <<'PY'
|
||||
import ast
|
||||
from pathlib import Path
|
||||
import re
|
||||
import tomllib
|
||||
|
||||
project = tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))
|
||||
exclude = {"pygobject", "python-xlib"}
|
||||
dependencies = project.get("project", {}).get("dependencies", [])
|
||||
filtered = []
|
||||
for dependency in dependencies:
|
||||
match = re.match(r"\s*([A-Za-z0-9_.-]+)", dependency)
|
||||
if not match:
|
||||
continue
|
||||
name = match.group(1).lower().replace("_", "-")
|
||||
if name in exclude:
|
||||
continue
|
||||
filtered.append(dependency.strip())
|
||||
text = Path("pyproject.toml").read_text(encoding="utf-8")
|
||||
match = re.search(r"(?ms)^\s*dependencies\s*=\s*\[(.*?)^\s*\]", text)
|
||||
if not match:
|
||||
raise SystemExit("project dependencies not found in pyproject.toml")
|
||||
dependencies = ast.literal_eval("[" + match.group(1) + "]")
|
||||
filtered = [dependency.strip() for dependency in dependencies]
|
||||
Path("dist/runtime-requirements.txt").write_text("\n".join(filtered) + "\n", encoding="utf-8")
|
||||
PY
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue