13 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d06e0bf2e | |||
| e95f91aff8 | |||
| f750b2cf05 | |||
| bf6a83ccac | |||
| 1187c10c86 | |||
| d484749b79 | |||
| 9b85b3e8a6 | |||
| ded9588396 | |||
| 2a67708fb1 | |||
| 31537a0bd6 | |||
| ac583f76e1 | |||
| 17bf98cb7a | |||
| aa3e2efd84 |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 9d06e0bf2e |
CmdGetAuthInfo: Code beautification
Fix clumsy code printing auth info. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| e95f91aff8 |
CmdGetAuthInfo: Fix: Suppress user name "None"
Don't print username="None" if there's no such user Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| f750b2cf05 |
CmdGetAuthInfo: Don't use non-git jw-build
Don't try to use non-git jw-build repositories to retrieve auth info. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| bf6a83ccac |
build.cmds.CmdListRepos: Fix ssh://git.janware.com
A typo breaks enumeration of Git repos on git.janware.com, fix that. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 1187c10c86 |
build.cmds.GetAuthInfo: Add module
Add command get-auth-info to jw-projects.py. It is meant to retrieve JANWARE_USER from an already cloned jw-build tree. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| d484749b79 |
cmds.CmdListRepos: Don't import from lib
Don't directly import from lib (i.e. from __init__.py), because that won't work until "make all" has not run through, i.e. during fresh checkout. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 9b85b3e8a6 |
build.cmds.CmdListRepos: Add module
Add the command list-repos to jw-projects.py. It is meant to do the same thing as "git-srv-adm.sh list-personal-projects", i.e. enumerate remote Git repositories, but also support additional servers and protocols. As of this commit, support for https://github.com and for forgejo installations over HTTPS is implemented. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| ded9588396 |
jw.build: Disable generation of __init__.py
The default behaviour of a generated __init__.py is to load all exported symbols in the respective directory. Since jw-python.py is invoked often, this hampers performance, so disable it. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 2a67708fb1 |
build.cmds.BaseCmdPkgRelations: Add Module
For requires, provides and conflicts, isolate the bulk of the code in BaseCmdPkgRelations, then derive CmdPkgConflicts, CmdPkgProvides and CmdPkgRequires from that class. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 31537a0bd6 |
build.cmds.CmdCreatePkgConfig: Add module
Implement the functionality of create-pkg-config.sh in a Python module CmdCreatePkgConfig.py. This allows to remove create-pkg-config.sh and jw-build-functions.sh. Note that the translation was done pretty literally to play it safe. More code can and should be removed by taking advantage of the fact that jw-projects.py knows more about the project than the shell scripts. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| ac583f76e1 |
build.cmds: Move build.App.cmd_xxx() here
For every cmd_xxx() method in build.App, create a class that's instatiated for running the respective command. This has the advantage of making App.py smaller (and faster), and having smaller, more maintainable command modules adhering to a common interface. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 17bf98cb7a |
build.Cmd: Add module
Cmd is meant as a base class for classes representing commands currently still implemented as methods of the Project class. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| aa3e2efd84 |
projects.py: Move bulk of code into module
Move nearly all of projects.py into src/python/jw/build/App.py. The plan is to split the script into parts and import them. Signed-off-by: Jan Lindemann <jan@janware.com> |