jw-pkg/test/unit/python/jw/pkg/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 2416257cba
lib.pf.PkgSecrets: Add
The on-host store scopes its address space to the config paths backed by
installed packages, but the scope lives inside KvFile: it derives the set
from the distro itself and consults it in the individual operations. A
context that carries a filter must behave as the filter mandates, so the
wanted set belongs in a filter of its own.

Add the pkg-secrets path filter, a Pkg whose space is the config paths
of the matching packages' template files - the path with the .jw-tmpl
suffix stripped - plus the directories leading to them. A compound or
blob address maps to its config path, a key address to the config path
of the compound it lives under; any other address is judged on its own.
The spec form follows pkg: a bare spec matches every installed package,
and pkg-secrets:url=~REGEX narrows the backing set to packages whose url
matches. Pkg parses its criterion through an overridable _parse_spec(), and
its _match_pkg() matches every package on a None criterion, so both filters
share the parsing and matching code.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-11-18 19:13:01 +01:00
..
App test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
Distro lib.Distro.paths(): Add method 2026-11-18 19:13:01 +01:00
distros lib.distros.debian.Distro._install(): Protect installed pkgs 2026-11-08 13:13:34 +01:00
ec lib.ec.secret_store: "content|config" -> "target" 2026-11-18 19:13:01 +01:00
ExecApp lib.ExecApp, ec.Local: Don't use keyword "local" as URI 2026-11-09 21:06:03 +01:00
FcCache lib.FcCache: Add a write-through read cache 2026-10-17 12:17:21 +02:00
FcWrapper lib.FcWrapper: Add a delegating file context wrapper 2026-10-17 12:17:21 +02:00
file_types lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
FileContext lib.FileContext: Limit accessible addresses 2026-11-07 16:49:24 +01:00
Package lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
PathFilter lib.PathFilter / lib.pf: Add class + module 2026-11-07 16:47:55 +01:00
pf lib.pf.PkgSecrets: Add 2026-11-18 19:13:01 +01:00
pm lib.pm.*.install_packages(): Add functions 2026-10-28 20:14:55 +01:00
ProcFilter lib.ProcFilter: Add unit tests 2026-09-14 20:52:59 +02:00
ProjectConf test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
Result test: apply yapf formatting to test.py files 2026-07-04 07:35:17 +02:00
TarIo lib.TarIo: Add unit tests 2026-09-14 20:53:00 +02:00
Uri lib.ExecApp: Rename --pkg-filter to --path-filter 2026-11-07 19:37:27 +01:00
util lib.util: Add kebab_to_pascal() and pascal_to_kebab() 2026-11-18 19:13:01 +01:00
version lib.version.Dependency.__version_boundaries(): Use Version.next() 2026-09-15 21:43:47 +02:00
Makefile test: Move unit tests below jw/pkg 2026-06-25 20:57:05 +02:00