- 23 Apr, 2021 3 commits
-
-
Jakub Ružička authored
Fixes: #45
-
Tomas Krizek authored
build: use direct host build by default Closes #44 See merge request !37
-
Tomas Krizek authored
archive: drop atool requirement Closes #42 See merge request !36
-
- 22 Apr, 2021 2 commits
-
-
Jakub Ružička authored
After some experimentation in the wild, original direct host build proved to be a better default after all. Fixes: #44
-
Jakub Ružička authored
Use standard shutil.unpack_archive which has a limited archive support but can be extended to support arbitrary archive formats as needed. Fixes: #42
-
- 14 Apr, 2021 5 commits
-
-
Jakub Ružička authored
various fixes for issues encountered during BIRD packaging See merge request !35
-
Jakub Ružička authored
apkg can now be easily started without script: python3 -m apkg build
-
Jakub Ružička authored
-
Jakub Ružička authored
-
Jakub Ružička authored
-
- 13 Apr, 2021 1 commit
-
-
Jakub Ružička authored
-
- 07 Apr, 2021 1 commit
-
-
Tomas Krizek authored
small fixes found during BIRD packaging See merge request !34
-
- 06 Apr, 2021 3 commits
-
-
Jakub Ružička authored
Use default_render_filter() function to select which files to render and which to copy only. This should eventually evolve into full-featured filters through config but for now keep it simple.
-
Jakub Ružička authored
Building packages from archives should work again: apkg build -a path/to/archive.tgz Also make input parsing helper more resiliant.
-
Jakub Ružička authored
distro module was removed from python standard library in Ubuntu Xenial but standalone python3-distro package isn't available. Install from PyPI instead.
-
- 23 Mar, 2021 6 commits
-
-
Jakub Ružička authored
refactor exceptions Closes #35 See merge request !32
-
Jakub Ružička authored
Fixes: #35
-
Jakub Ružička authored
This results in raise ex.ErrorName(args) instead of needlessly long raise exception.ErrorName(args)
-
Jakub Ružička authored
Group similar exceptions and reassign exit codes while leaving space for potential future additions.
-
Jakub Ružička authored
-
Jakub Ružička authored
refactor: get rid of compat.py35path Closes #36 See merge request !33
-
- 22 Mar, 2021 2 commits
-
-
Jakub Ružička authored
shutil and os modules in python 3.5 doesn't accept pathlib.Path (yet). compat.py35path() wrapper was used to mark code which requires extra str() conversion on Python <= 3.5. Introduce new apkg.util.shutil35 wrapper module for selected shutil and os functions in order to address this without polluting code with redundant py35path/str conversions. apkg.compat was removed in favor of new shutil35 which can be easily removed in the future once Python 3.5 support is dropped. Fixes: #36
-
Jakub Ružička authored
get rid of py35path and "import os" in the process.
-
- 19 Mar, 2021 4 commits
-
-
Jakub Ružička authored
Red the Docs integration See merge request !31
-
Jakub Ružička authored
-
Jakub Ružička authored
A subset of requirements is needed because command help texts are parsed from python docstrings.
-
Tomas Krizek authored
refactor: unified input files handling Closes #31 and #30 See merge request !30
-
- 18 Mar, 2021 1 commit
-
-
Jakub Ružička authored
All commands's CLI was refactored to use new consistent handling of input files which allows selecting multiple input files as opposed to single archive/srcpkg: input files as arguments: apkg srcpkg -a foo.1.2.tgz foo.1.2.tgz.asc input files listed in file(s) including stdin which allows piping: apkg make-archive | apkg srcpkg -aF - | apkg build -sF - Fixes: #30 Fixes: #31
-
- 15 Mar, 2021 1 commit
-
-
Tomas Krizek authored
pkgstyle.rpm: support openSUSE See merge request !29
-
- 10 Mar, 2021 6 commits
-
-
Jakub Ružička authored
* support openSUSE's zypper package manager * provide manual parsing of BuildRequires from .src.rpm because SUSE doesn't have builddep command (╯°□°)╯︵ ┻━┻
-
Tomas Krizek authored
Quality of Life changes for build, build-dep and cli Closes #29 and #27 See merge request !28
-
Jakub Ružička authored
It's dangerous for new users to use direct build by default as it modifies host system and requires build deps to be installed system-wide. This is useful especially in VMs and containers (CI). Isolated build is safer so make it a default with -H/--host-build option to enable direct host build replacing --isolated option. Adjust arch pkgstyle to work with new default CI invocation even though build deps installation and direct host build aren't supported on arch: apkg build -Hi apkg will print warnings for -H/--host-build (not supported on arch in general) and -i/--install-deps (not needed on arch) but it's going to work regardless. apkg build-dep on arch will result in DistroNotSupported error (exit code 44) as it should. Fixes: #27
-
Jakub Ružička authored
apkg is using dash-separated-command-names for the sake of readability but both dnf and apt have builddep command without the dash. Add builddep alias for build-dep so that everyone's happy :) Related: #29
-
Jakub Ružička authored
print nice warning instead of showing stack trace when invalid apkg command was supplied. Fixes: #29
-
Tomas Krizek authored
code cleanup See merge request !27
-
- 09 Mar, 2021 4 commits
-
-
Jakub Ružička authored
prospector aims at running multiple quality of code tools with reasonable defaults. I went through all 50 prospector warnings (those disabled in apkg pylint/flake config are still shown by prospector) and reduced their number to 21. Remaining warnings are mostly about complexity, too many locals, etc.
-
Jakub Ružička authored
advantages: * no pylint warnings * consistent invocation across codebase * slightly faster as formatting is done on-demand
-
Tomas Krizek authored
install: new command to install packages Closes #19 and #26 See merge request !26
-
Tomas Krizek authored
finish rpm package style Closes #19 See merge request !25
-
- 08 Mar, 2021 1 commit
-
-
Jakub Ružička authored
new `apkg install` command was added using two new pkgstyle interface functions for installing packages using native distro package manager: * install_custom_packages() to install native package files (default) * install_distro_packages() to install packages from distro repos (enabled with -D/--distro-deps option) It's possible to override target distro using -d/--distro as usual. Packages to install can be passed as command arguments or using -f <file> including stdin support with -, i.e.: apkg build | apkg install -f - -y/--yes option enables non-interactive mode. Fixes: #26
-