Add dependency flavour "lint" #176

Merged
Jan Lindemann merged 2 commits from jan/feature/20261110-add-the-lint-dependency-flavour-and-drop-the-imports-it-flags into master 2026-11-10 11:40:35 +01:00 AGit
5 changed files with 12 additions and 15 deletions

View file

@ -37,6 +37,7 @@ build = realpath
[pkg.requires.suse]
run = python3
release = rpmbuild, python3-base
lint = python3-ruff, python3-pyright
[pkg.requires.debian]
run = python3

View file

@ -303,7 +303,7 @@ pkg-install-release-deps:
$(PKG_MANAGER) install $(shell $(proj_query_cmd) required-os-pkg --quote "build,run,release" $(PROJECT))
pkg-install-testbuild-deps:
$(PKG_MANAGER) install $(shell $(proj_query_cmd) pkg-requires --quote --hide-self --syntax names-only --delimiter " " "build,run,devel,release" $(PROJECT))
$(PKG_MANAGER) install $(shell $(proj_query_cmd) pkg-requires --quote --hide-self --syntax names-only --delimiter " " "lint,build,run,devel,release" $(PROJECT))
recache-vars:
rm -f $(TOPDIR)/make clean-cache cache

View file

@ -71,7 +71,7 @@ class BaseCmdPkgRelations(Cmd):
)
parser.add_argument(
'flavours',
help = 'Dependency flavours (run, build, devel, release), '
help = 'Dependency flavours (lint, run, build, devel, release), '
'separated by comma or whitespace'
)
parser.add_argument('modules', nargs = '*', help = 'Modules')

View file

@ -557,8 +557,8 @@ usage: jw-pkg.py projects pkg-conflicts [-h] [-S [SUBSECTIONS]]
Print packages conflicting with a given package
positional arguments:
flavours Dependency flavours (run, build, devel, release),
separated by comma or whitespace
flavours Dependency flavours (lint, run, build, devel,
release), separated by comma or whitespace
modules Modules (default: None)
options:
@ -608,8 +608,8 @@ usage: jw-pkg.py projects pkg-provides [-h] [-S [SUBSECTIONS]]
Print packages and capabilities provided by a given package
positional arguments:
flavours Dependency flavours (run, build, devel, release),
separated by comma or whitespace
flavours Dependency flavours (lint, run, build, devel,
release), separated by comma or whitespace
modules Modules (default: None)
options:
@ -660,8 +660,8 @@ usage: jw-pkg.py projects pkg-recommends [-h] [-S [SUBSECTIONS]]
Print recommended packages
positional arguments:
flavours Dependency flavours (run, build, devel, release),
separated by comma or whitespace
flavours Dependency flavours (lint, run, build, devel,
release), separated by comma or whitespace
modules Modules (default: None)
options:
@ -711,8 +711,8 @@ usage: jw-pkg.py projects pkg-requires [-h] [-S [SUBSECTIONS]]
Print packages required for a given package
positional arguments:
flavours Dependency flavours (run, build, devel, release),
separated by comma or whitespace
flavours Dependency flavours (lint, run, build, devel,
release), separated by comma or whitespace
modules Modules (default: None)
options:

View file

@ -4,19 +4,15 @@ import asyncio
import grp
import os
import pwd
import sys
import tempfile
from typing import TYPE_CHECKING, override
from typing import override
from jw.pkg.cmds.secrets.lib.base import Attrs
from jw.pkg.cmds.secrets.lib.FilesContext import FilesContext
from jw.pkg.lib.ec.Local import Local
from jw.pkg.lib.PathFilter import Verdict
if TYPE_CHECKING:
import os
# -- A context whose package space holds only the template, as on a
# real host: the output file and the temp are not package files.
# If the compile's own file operations honor the filter, the