jw-pkg/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann fc6f2fbb65
python-tools.sh: Fix __init__.py linter complaints
The __init__.py files as gnerated by python-tools.sh contain multiple
issues, fix them:

  - Make the machinery fail if the same type name is imported from
    different modules

  - Support relative imports from .Module import Module instead of
    having to use the entire module path as import source

  - Import types explicitly re-exported with "as":

      from .Module import Module as Module

    Otherwise ruff will regard the type as "imported but not used"

  - Add "# ruff: noqa: E501" near the top. The import lines can get
    long and are beyond manual control (except for renaming the
    modules themselves, that is). This can cause ruff to fail, so get
    it to accept long lines in __init__.py. The style violation
    doesn't make much of a difference in generated code, anyway,
    because nobody reads that. Plus what's happening in the code
    isn't rocket science, so good style wouldn't help much with
    understanding, either.

This promptly digs up two symbol name conflicts lib.pm.dpkg and
lib.pm.rpm. Fix them along with this commit to keep it from breaking the build.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-05-31 17:51:51 +02:00
..
usr-bin scripts/usr-bin: scripts.mk -> std-targets.mk 2026-04-08 16:47:00 +02:00
create-mkdebian.sh create-mkdebian.sh: Fix Maintainer + Homepage 2026-03-04 14:45:38 +01:00
create-mkspec.sh cmds.distro.CmdInfo: Rename to cmds.platform.CmdInfo 2026-04-24 16:53:55 +02:00
dpm.sh dpm.sh: Support --nodeps and --allmatches 2026-03-02 12:55:36 +00:00
git-srv-admin.sh Re-add git-srv-admin.sh: Needed for enumerating repos via SSH 2025-11-17 08:52:12 +01:00
ini-tools.sh Everywhere: Remove everything non-essential for "make clean all" 2025-11-14 15:02:56 +01:00
jw Revert "scripts: Add __init__.py" 2026-01-26 17:17:23 +01:00
jw-pkg-create-project.sh Everywhere: Rename package "jw-build" to "jw-pkg" 2025-11-28 13:35:56 +01:00
jw-pkg.py jw-pkg.py: Enable argcomplete 2026-03-06 12:06:28 +01:00
make-version-script.sh make, scripts: Re-add files necessary for building ytools 2025-11-14 15:59:49 +01:00
Makefile scripts/usr-bin: Install symlink /usr/bin/jw-pkg 2026-04-06 15:58:11 +02:00
mkspec-wrapper.sh mkspec-wrapper.sh: Add OS id to $INSTALL_LOG 2026-03-20 10:30:25 +01:00
pgit.sh make / scripts: git.janware.com -> devgit.janware.com 2026-05-12 15:15:29 +02:00
pkg.sh pkg.sh: release: Push without JW_PKG_SSH_EXTRA_OPTS 2026-05-13 12:54:50 +02:00
purge-stale-projects.sh make / scripts: git.janware.com -> devgit.janware.com 2026-05-12 15:15:29 +02:00
python-tools.sh python-tools.sh: Fix __init__.py linter complaints 2026-05-31 17:51:51 +02:00
scm.sh scm.sh ls-files: Support -a (all files) 2025-12-01 11:29:53 +01:00
systemctl-wrapper.sh systemctl-wrapper.sh: Beautify logging 2026-03-16 19:14:41 +01:00
upload.sh upload.sh: Re-add upload.sh, needed for release pipeline 2025-11-17 02:19:08 +01:00