Build and packaging library
  • Python 68.8%
  • Makefile 22.5%
  • Shell 8.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 013636fa38
lib.PathFilter / lib.pf: Add class + module
Add the abstract PathFilter class, designed to be attached to a FileContext
in later commits. This is the first commit of a series that generalizes the
JW_DEFAULT_PKG_FILTER / --pkg-filter framework into loadable path filters
that can be attached to any FileContext.

A filter answers an access check, _access(), with a bool. run() turns the
answer into a verdict: ALLOW when the check passes, otherwise ABORT or
IGNORE according to the filter's deny action, LOG or ABORT. The verdict is
handled by the filter's handle, a pair of per-verdict gates: with the ABORT
gate set, an ABORT verdict raises PermissionError; with the LOG gate set,
an IGNORE verdict is logged and returned. A verdict whose gate is not set
passes through unhandled.

Also add the lib.pf module that hosts the concrete filters. A filter spec
of the form foo:something is loaded by PathFilter.create() as the Foo class
from the jw.pkg.lib.pf.Foo module. A spec without the name prefix, or a
name that no module provides, is rejected with an error that names the
expected class and module.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
2026-11-07 16:47:55 +01:00
.github/workflows ci.yaml: test-packaging.yaml@{master-test -> master} 2026-06-08 19:43:15 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf gitignore: Add web compilation artifacts 2026-10-24 18:58:02 +02:00
doc doc: Add subdir 2026-08-19 20:51:11 +02:00
make py-version.mk: Include common.mk 2026-10-24 21:50:24 +02:00
scripts pkg.sh: Use md5 for the dput hash option 2026-10-27 08:17:43 +01:00
src lib.PathFilter / lib.pf: Add class + module 2026-11-07 16:47:55 +01:00
test lib.PathFilter / lib.pf: Add class + module 2026-11-07 16:47:55 +01:00
.gitignore run-success.mk: Record last successful run 2026-09-16 18:16:17 +02:00
HASH Release 1.0.0-287@suse-tumbleweed/x86_64 2026-11-04 00:39:17 +00:00
Makefile .gitignore: Run make gitignore 2026-09-13 23:09:26 +02:00
RELEASES Release 1.0.0-287@suse-tumbleweed/x86_64 2026-11-04 00:39:17 +00:00
VERSION Start version: 1.0.0-287 2026-11-04 00:11:43 +00:00