Commit graph

361 commits

Author SHA1 Message Date
b4041018d2
stree.StringTree.__set(): path_ -> path
Some methods take a "path_" argument, which is not nice for callers.
Rename it to "path" and fix the fallout in the method bodies.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:12 +00:00
e3c64f2efb
jw.util: Add @override
Add @override qualifiers to overridden methods.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:12 +00:00
ae1445a08c
jw.util.log: Import from jw.pkg.lib.log
Remove jw-python's implementation of the log module entirely, making
it a facade of jw-pkg's implementation. This removes reduncancy and
duplicate state.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:12 +00:00
d15177a9a8
log: Add log()
In a push to harmonize jw.pkg and jw.util logging APIs, add the
aliases

  log() for slog()
  log_m() for slog_m()

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:11 +00:00
8681317e8c
jw.util.Cmds, .Cmd, .App: Use jw.pkg.lib.App + .Cmd
This commit does a couple of things in one go:

- Move the implementations from jw.util.Cmds and jw.util.Cmd back to
  jwutils where they came from to remain backwards compatible for
  code still using jwutils.

- No code uses jw.util.Cmds and jw.util.Cmd yet, so remove them.

- Add new jw.util.App and jw.util.Cmd classes instead, which are
  re-exported modules from jw.pkg.lib. These implementations are very
  similar, but not identical to jwutils.Cmds and jwutils.App.

Originally, Cmds and Cmd had been copied from jw-python to jw-pkg App
and Cmd, respectively, because an App class proved indispensible in
jw-pkg.  The two classes have subsequently evolved in jw-pkg, and
re-using them here ends the fork and removes the redundancy.

This makes jw-python expose the same App / Cmd pair as jw.pkg does
for as long as Cmds is still in use. In the future, it might be a
good idea to remove Cmds, Cmd and App from jw-python entirely.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:11 +00:00
2871dda16e
jw: Add "util" to __all__
Add "util" to __all__, to allow imports of jw.util.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:11 +00:00
b928a071ef
Release 1.0.0-50@suse-tumbleweed/x86_64
Some checks failed
CI / Packaging test (push) Has been cancelled
CI / Packaging - OpenSUSE Tumbleweed (push) Has been cancelled
CI / Packaging - Kali Linux (push) Has been cancelled
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-14 23:29:46 +00:00
262b1a5e02
Release 1.0.0-50@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-14 23:09:45 +00:00
c3687c96be
Start version: 1.0.0-50
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-14 23:08:54 +00:00
d781cbfdd2
jwutils: Add missing types
Add types missing from the jwutils compatibility shim, because
software using it complains:

  from .Cmd import Cmd as Cmd
  from jw.util.ldap import Config as Config

This will probably not be the last time this happens.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-14 11:36:34 +02:00
b727f54d38
Release 1.0.0-49@suse-tumbleweed/x86_64
All checks were successful
CI / Packaging - Kali Linux (push) Successful in 4m26s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 5m9s
CI / Packaging test (push) Successful in 0s
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-12 06:40:58 +00:00
a9b87f683c
Release 1.0.0-49@kali-rolling/amd64
All checks were successful
CI / Packaging - Kali Linux (push) Successful in 4m25s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 5m10s
CI / Packaging test (push) Successful in 0s
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-12 03:36:34 +00:00
90690521a1
Start version: 1.0.0-49
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-12 03:35:45 +00:00
e9845b5a1f
Makefile: Include py-topdir.mk
Include py-topdir.mk, which entails loads of fallout from make check.
Fix it.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-12 04:55:47 +02:00
7212850b22
Release 1.0.0-48@suse-tumbleweed/x86_64
All checks were successful
CI / Packaging - Kali Linux (push) Successful in 4m10s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m43s
CI / Packaging test (push) Successful in 0s
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-11 23:38:37 +00:00
c50f08e16d
Release 1.0.0-48@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-11 23:11:17 +00:00
a50d3719b2
Start version: 1.0.0-48
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-11 23:10:27 +00:00
a2684dd601
jwutils: Move to jwutils -> jw.util
Move all implementation source code from the jwutils module to
jw.util. For compatibility with existing Python modules, keep a thin,
autogenerated compatibility shim under jwutils.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-11 23:10:25 +00:00
bc7652fdf9
Release 1.0.0-47@suse-tumbleweed/x86_64
All checks were successful
CI / Packaging - Kali Linux (push) Successful in 3m50s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m37s
CI / Packaging test (push) Successful in 0s
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 04:46:10 +00:00
d1f901147d
Release 1.0.0-47@kali-rolling/amd64
All checks were successful
CI / Packaging - Kali Linux (push) Successful in 3m51s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m24s
CI / Packaging test (push) Successful in 0s
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
021f8de5f5
Start version: 1.0.0-47
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
59576eb461
Release 1.0.0-46@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
ea76e59d57
Start version: 1.0.0-46
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
e5e4e3d51d
Release 1.0.0-45@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
2e93adc4f7
Start version: 1.0.0-45
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
a04b33d966
Release 1.0.0-44@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
e601faf526
Start version: 1.0.0-44
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
71bd17fd42
Release 1.0.0-43@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
3f8aa523f7
Start version: 1.0.0-43
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
5b1f7b82df
Release 1.0.0-42@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
0b2657894f
Start version: 1.0.0-42
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
2d91c215d1
Release 1.0.0-41@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
2b390c5e15
Start version: 1.0.0-41
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
68a5249179
Release 1.0.0-40@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
7529611f23
Start version: 1.0.0-40
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
d9409f99c2
Release 1.0.0-39@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
db390b24fd
Start version: 1.0.0-39
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
f21ddd52a8
Release 1.0.0-38@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
84653ba0a6
Start version: 1.0.0-38
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
16f74a6eb7
Release 1.0.0-37@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
c2fc31524a
Release 1.0.0-36@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
a95092b3bf
Release 1.0.0-35@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
f5e6dd7160
Release 1.0.0-34@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
ce3d3b1f07
Release 1.0.0-33@kali-rolling/amd64
Signed-off-by: janware DevOps <devops@janware.com>
2026-06-10 03:45:55 +00:00
8df9042374
Release 1.0.0-37@suse-tumbleweed/x86_64
All checks were successful
CI / Packaging - Kali Linux (push) Successful in 3m54s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m27s
CI / Packaging test (push) Successful in 0s
2026-06-09 23:33:40 +00:00
ce1ba462ef
Start version: 1.0.0-37 2026-06-09 23:33:03 +00:00
7e062c35a9
ci.yaml: enable-email-notifications: true
Add enable-email-notifications: true. This seems to be needed for sending
information about failed runs. Apparently it doesn't make it difference if I
add it to ci/workflows/.github/workflows/test-packaging.yaml.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-08 14:55:11 +02:00
021761f924
standard-tests.yaml: Rename to ci.yaml
In another attempt at making CI workflow naming more concise:

  - Rename standard-tests.yaml to ci.yaml

    Currently the contents of this file covers everything CI-related
    that happens in the context workflows, so for the time being,
    naming it ci.yaml is just fitting. And it's going to be shorter
    in commit message summaries. Should a real need arise, we can
    always split the file up again.

  - Shorten names again, otherwise they don't fit into Forgejo's
    check-mark-popup. That should be self-explanatory in context:

    name:
      Default CI -> CI

    jobs.CI.name:
      Packaging test - All supported platforms -> Packaging test

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-08 14:54:18 +02:00
b43c4ccbc3
workflows/(build-package.yaml -> standard-tests.yaml)
This commit reorganizes build-package.yaml in several ways:

  - Follow name change of the called workflow

    The reusable workflow used by build-package.yaml changed name and
    location, and this commit follows the move.  It was located at
    ci/action-build-package before and has moved to ci/workflows,
    because what it provides is semantically more of a workflow than
    an action.

  - Limit CI runs

    The commit also adds safeguards against too many CI runs. It
    limits them to PR events opened, re-opened or pushed-to, and to
    push events hitting branches master, main and release.

  - Rename workflow itself to standard-tests.yaml

    That name reflects better what it represents: The entry point to
    janware's standard set of CI tests. All of them happen to run in
    the context of building and packaging at this point, but that
    might not be the only standard test this repo chooses to
    subscribe to in the future, and if so, they will be better off in
    one file with defined order, so give that file a better umbrella
    name.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-03 15:27:58 +02:00
0fd996f9f3
workflows/build-package.yaml: Remove "runs-on"
Forgejo versions before 15 didn't support workflow expansion, and
"runs-on" was necessary in callers of reusable workflows. janware.com
now runs Forgejo 15.x, and the requirement is gone, so remove the config
option.

Quoting from https://forgejo.org/docs/latest/user/actions/reference/

  runs-on is typically a required field. However, if a job defines
  jobs.<job_id>.uses in order to reference a reusable workflow, then it
  is optional. See jobs.<job_id>.uses for more information on this
  behaviour.

  [...]

  It is recommended that jobs.<job_id>.runs-on is omitted when using
  uses, as this will allow Forgejo to perform workflow expansion.
  Workflow expansion results in the target workflow’s jobs appearing in
  the UI as separate jobs.  This provides an easier to understand
  experience for accessing the logs of each job, and permits the jobs to
  run on separate runners with their own runs-on fields.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-02 13:59:00 +02:00