Commit graph

646 commits

Author SHA1 Message Date
InsanePrawn
932e739255 devices/cli: add --json parameter 2023-03-17 16:34:20 +01:00
InsanePrawn
63156776a2 devices/cli: make device list way more readable, add package name and path, mark currently selected 2023-03-17 16:34:20 +01:00
InsanePrawn
5edfac42ce main.py: default colors to isatty(stdout) if force_colors is None 2023-03-17 16:34:20 +01:00
InsanePrawn
00613096d5 config/state: add config.runtime.colors, fill in main.py 2023-03-17 16:34:20 +01:00
InsanePrawn
c4797c709f logger: disable raising exceptions, e.g. when stdout is closed 2023-03-17 16:34:20 +01:00
InsanePrawn
28c68418a6 packages/build: get_unbuilt_package_levels(): use force=True while updating pkgbar 2023-03-17 16:34:20 +01:00
InsanePrawn
cc1b4b3ee2 packages/build: redirect output from stderr to stdout 2023-03-17 16:34:20 +01:00
InsanePrawn
ff3b5e70dd progressbar: add ellipsize() 2023-03-17 16:34:20 +01:00
InsanePrawn
ac25266a00 packages: build: use progress bars for get_unbuilt_pkg_levels() and build_packages() 2023-03-17 16:34:20 +01:00
InsanePrawn
c99463a0f6 progressbar: new module based on enlighten 2023-03-17 16:34:20 +01:00
InsanePrawn
6d6f582b71 exec/cmd: fix up stderr and stdout handling, fix capture_output overwriting env 2023-03-17 16:34:20 +01:00
InsanePrawn
785e41f8b7 logger: add --force-colors/--no-colors cli flag 2023-03-17 16:34:20 +01:00
InsanePrawn
4d03f238bb CI: fix for docker buildx 2023-03-17 16:26:53 +01:00
InsanePrawn
e758e3c343 docs/versions: fix version selector being hidden behind TOC sidebar
also make it scrollable on _really_ small screens

ci-kbs-docs-build-full
2023-01-04 01:21:03 +01:00
InsanePrawn
7955842da9 docs: cache versioned html to tarball for speed and CI uploads 2023-01-04 01:21:00 +01:00
InsanePrawn
c7084895d6 docs: add versions target to produce multi-version docs
ci-kbs-docs-build-full
2022-12-16 05:30:53 +01:00
InsanePrawn
dc59378243 .gitignore: add *.xml 2022-12-15 07:09:08 +01:00
InsanePrawn
cec828553d packages/pkgbuild: track whether pkg is built on a per-architecture basis 2022-12-11 03:02:00 +01:00
InsanePrawn
45eba305cb packages/cli: add --switch-branch to cmd_init 2022-12-11 03:01:55 +01:00
InsanePrawn
60d8cb77ea packages/cli: add .srcinfo_meta.json and .SRCINFO to packages clean 2022-12-10 19:47:32 +01:00
InsanePrawn
6fa717ce64 packages/build: setup_sources(): drop --holdver
Dubious gain with gratis issues
2022-12-10 19:47:32 +01:00
InsanePrawn
795878cfeb packages/cli: add --init-caches/--no-init-caches to cmd_init() and cmd_update() 2022-12-10 19:47:32 +01:00
InsanePrawn
0693792791 exec/cmd: expose [subprocess.]CompletedProcess for easy import in other modules 2022-12-09 05:45:43 +01:00
InsanePrawn
9e81fbf345 packages/pkgbuild: split out get_pkgbuild_dirs() from discover_pkgbuilds() 2022-12-09 03:47:14 +01:00
InsanePrawn
12b414fe79 constants: add SRCINFO_TARBALL_FILE and SRCINFO_TARBALL_URL 2022-12-09 03:47:14 +01:00
InsanePrawn
61a9b53c5f distro/distro: add get_kupfer_url() for resolving the repo branch 2022-12-08 17:51:37 +01:00
InsanePrawn
db4fbc083a utils: add download_file() 2022-12-08 17:51:37 +01:00
InsanePrawn
4112f5a56e packages/build: check_package_version_built(): use local repo db and validate checksum before calling repo-add again 2022-12-08 01:44:33 +01:00
InsanePrawn
c36087308f distro/package: add parsed _desc to package 2022-12-07 16:56:35 +01:00
InsanePrawn
3a44cb6d42 distro/package: BinaryPackage: Track Arch 2022-12-07 15:25:01 +01:00
InsanePrawn
75d6ea8c3c packages/build: build_enable_qemu_binfmt(): use a chroot if not wrapped 2022-12-07 15:05:00 +01:00
InsanePrawn
e33f1a97d5 binfmt: refactor to support optionally working in Chroot 2022-12-07 15:04:14 +01:00
InsanePrawn
162691e4b5 binfmt: unify arch checking, rename is_registered to binfmt_is_registered 2022-12-07 13:49:48 +01:00
InsanePrawn
07ccc26d95 dataclass: support UnionType (A | B) 2022-12-07 13:21:52 +01:00
InsanePrawn
95c2ffd133 utils: type-hint mount helpers 2022-12-07 13:21:42 +01:00
InsanePrawn
97bfc541c5 packages/cli: cmd_check(): allow optional replaces field 2022-11-24 01:48:58 +01:00
InsanePrawn
6821949620 packages/cli: cmd_clean(): clean up .srcinfo_initialised.json, not .srcinfo_meta.json 2022-11-20 19:27:21 +01:00
InsanePrawn
2237b940c4 .gitlab-ci: docs: install the main requirements.txt, treat warnings as errors 2022-11-12 03:31:26 +01:00
InsanePrawn
33b52b2774 gitlab-ci: fix docker job to run on custom runners without overlayfs as well 2022-11-11 17:55:53 +01:00
InsanePrawn
bce4f03c09 gitlab-ci: build docker for non-protected branches too 2022-11-10 02:55:06 +01:00
InsanePrawn
fbd06eded5 docs: convert to markdown with rst2myst 2022-11-10 02:25:05 +01:00
InsanePrawn
a8e8ddc4b4 typecheck: add --check-untyped-defs and fix some associated type errors 2022-11-09 20:19:04 +01:00
InsanePrawn
c46cd0cd4f integration_test: write config file to a temp dir, ensure it gets loaded 2022-11-09 20:19:04 +01:00
InsanePrawn
3eeeafb30f config.state: try_load_file(): clear state.exception after successful load 2022-11-09 20:19:04 +01:00
InsanePrawn
5951c8c296 packages/cli: check for loadable config before wrapping 2022-11-09 20:19:04 +01:00
InsanePrawn
11125e525f config: remove accidental scheme validation circumvention, improve errors, warn on config loading failure in main()
This will fail on values of the wrong type, but still warn about and allow unknown keys.
2022-11-09 20:19:04 +01:00
InsanePrawn
7d96d05165 dataclass: transform(): format types in error for wrong value type better 2022-11-09 20:19:04 +01:00
InsanePrawn
82a87e7ea9 implement explicit Optional type hints for =None parameters
Thanks https://github.com/hauntsaninja/no_implicit_optional
2022-11-09 20:19:04 +01:00
InsanePrawn
669c82a10b constants: switch archlinux x86 mirrors to https://geo.mirror.pkgbuild.com/$repo/os/$arch 2022-11-09 20:19:04 +01:00
InsanePrawn
185894842f packages: clone_pkgbuilds() and friends: add discard_changes arg, use in integration_tests 2022-11-09 20:19:04 +01:00