165 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 737f3986df | |||
| 1f26391452 | |||
| e39047e0dd | |||
| 0be02c7154 | |||
| 18467a6500 | |||
| f7cc364be2 | |||
| 2e69639362 | |||
| eb2dd919a1 | |||
| c39c268d98 | |||
| 49086708e4 | |||
| ced42938e1 | |||
| 4ad7091159 | |||
| 441051ea4a | |||
| 6340eeace9 | |||
| 9217d38964 |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 737f3986df |
jw.pkg.App: Use lib.log
Replace print() by log(). Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 1f26391452 |
jw.pkg.cmds.Cmd: Derive from lib.Cmd
The body of Cmd is pretty much entirely obviated by its base class. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| e39047e0dd |
jw.pkg.App: Derive from jw.pkg.lib.App
Derive jw.pkg.App from jw.pkg.lib.App. App.run() dissolves as follows: - Its sub-command invocation logic is left to the base class - parser.add_arguments() are moved into self._add_arguments() - So is handling of early-parsed arguments - async def _run() is reimplemented to set some member variables Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 0be02c7154 |
lib.App, .Cmd: Add modules
Add App and Cmd as generic base classes for multi-command applications. The code is taken from jw-python: The exising jw.pkg.App is very similar to the more capable jwutils.Cmds class, so, to avoid code duplication, add it here to allow for jwutils.Cmds and jw.pkg.App to derive from it at some point in the future. Both had to be slightly modified to work within jw-pkg's less equipped context, and will need futher code cleanup. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 18467a6500 |
lib.Types: Add module
Types is a container for types, notably classes, which are dynamically loaded from other modules. Which modules are loaded is based on the following criteria passed to its constructor: - mod_names: A list of modules to load and investigate - type_name_filter: A regular filter expression or None (default).
If it's None, all types pass this filter. - type_filter: A list of types the returned types must match.
Defaults to [], in which case all types pass this filter Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| f7cc364be2 |
lib.log: Add module
A dedicated logging module is currently provided by jw-python, but since it's often needed also in jw-pkg, and it's relatively small and maintainable, it seems justified to move it into jw-pkg. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 2e69639362 |
jw.pkg.build.lib: Move to jw.pkg.lib
In preparation of reorganizing the tree below cmds, move the lib subdirectory a level up. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| eb2dd919a1 |
cmds.CmdGetval.add_arguments(): Don't use app.top_name
CmdGetval.add_arguments() uses self.app.top_name, which may or may not be initialized at the time this runs. Not using it makes CmdGetval's ctor safe to run in the context of App.__init__(). Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| c39c268d98 |
jw-projects.sh: Fix -p / --prefix help message
--prefix doesn't denote an "App Path Prefix", "Parent directory of project source directories" decribes it better. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 49086708e4 |
build.cmds.CmdListRepos: Support local repos
Make jw-projects.py list-repos support a local directory as base URL of all git repositories, notably used by PROJECTS_DIR_REMOTE_BASE, which can now point to a local directory. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| ced42938e1 |
projects.mk / jw-projects.py: Support tmpl_dir && tmpls-dir
For a project to supply templates, it needs to advertise their location. For this, the tmpl_dir make variable is added to projects.mk. If other-project wants to get hold of some-project's templates, it can do, e.g.: TEMPLATES = $(wilcard $(call tmpl_dir,some-project)/*.tmpl) To achieve this, support for the tmpls-dir command is added to jw-projects.py. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 4ad7091159 |
cmds.CmdBuild: import time
import time is missing from CmdBuild, fix that. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 441051ea4a |
jw.pkg: Add Makefile
Re-add Python modules into the installed package by adding src/python/jw/pkg/Makefile. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 6340eeace9 |
Everywhere: Replace "jw_build" by "jw_pkg"
Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 9217d38964 |
Everywhere: Rename package "jw-build" to "jw-pkg"
jw-build doesn't stop at building software, packaging it afterwards is also a core feature, so this commit gives the package a better name. The commit replaces strings s/jw-build/jw-pkg/ in text files and file names. Fallout to the functionality is fixed, variable names are left as they are, though. To be adjusted by later commits. Signed-off-by: Jan Lindemann <jan@janware.com> |