Commit graph jw-python/make/project.conf
Author SHA1 Message Date
39bceb17f8
project.conf: Fix pkg.requires.os.run += python3-yaml
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m31s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 6m5s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m10s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 5m46s
CI / Packaging test (push) Successful in 0s
Commit 9b817c7a has another typo, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-10-19 17:59:55 +02:00
9b817c7a56
project.conf: Fix pkg.requires.os.run += python3-yaml
Some checks failed
CI / Packaging - Kali Linux (pull_request) Successful in 5m8s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m55s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging test (push) Has been cancelled
CI / Packaging - Kali Linux (push) Has been cancelled
CI / Packaging - OpenSUSE Tumbleweed (push) Has been cancelled
Commit 1130c3c has a typo, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-10-19 16:50:56 +02:00
1130c3c92d
project.conf: pkg.requires.os.run += python3-yaml
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m33s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 6m2s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m2s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 7m16s
CI / Packaging test (push) Successful in 0s
load_yaml imports yaml, so add python3-PyYAML to suse's os dependencies,
and python3-yaml to debian's.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-10-19 15:32:25 +02:00
499694e1f9
stree.StringTree: Add unit tests
Add pytest-style unit tests for the StringTree class.

This commit also adds the needed infrastructure: Dependency on
python3-pytest, the unit test directory structure and conftest.py in
.gitignore.

Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL with pi.dev v0.80.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:12 +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
4f56964f1a project.conf: pkg.requires.os = python3-networkx
Depend on python3-networkx because ldap.Connection.object_class_tree needs it.
Note that this is a relatively weak necessity which installed 1.7 GB worth of
500 new packages on talmix.david.jannet. Maybe this can be solved in a less
costly way.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-04-14 16:38:37 +02:00
d48171f981 Replace jw-build by jw-pkg
Replace the jw-build build system by the jw-pkg build system.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-28 14:22:42 +01:00
e03491bee3 project.conf: Fix: Add python3-ldap
auth.ldap requires an LDAP client, which is not reflected in the
package's dependencies, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-07-16 20:16:17 +02:00
1e16c0ffb1 Cmds: Add argcomplete support
argcomplete takes the arguments added to argparse, and builds bash
completion with it. Add it to all Cmds based executables.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-07-11 10:43:47 +02:00
9c13381e7a cast.cast_str_to_timedelta(): Add conversion method
Make cast.from_str() accept time strings.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-05-28 11:12:49 +02:00
2811d99c30 project.conf: Build devel subpackage
-devel subpackge is needed to build a couple of other packages, so
build it.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-02-20 19:14:31 +00:00
be4389a1f0 project.conf: Fix syntax
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-05-15 20:44:44 +00:00
952bf4a4e1 Fix Python errors reported by mypy
This commit fixes Python errors and warnings reported by static type checking
with mypy.

Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-10 14:17:15 +02:00
ad9eee07d4 Change dependencies python-magic|termcolor -> python3
This breaks on both openSUSE Tumbleweed and Ubuntu 18.04.

Signed-off-by: Jan Lindemann <jan@janware.com>
2020-02-10 13:54:42 +00:00
8a74e030dc Add python-termcolor to package deps
Also fix package group (Development/Libraries/Python).

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-07 20:13:08 +01:00
13b58c2fa0 Change license from proprietary to LGPLv2
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-07 14:13:48 +00:00
cf60b29281 Add python-magic to pkg.os.requires
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-23 15:05:18 +01:00
5755d14d84 initial checkin
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-24 12:19:34 +02:00