diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 231af33..b92f615 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -1,4 +1,4 @@ -name: Make Debian Package +name: Create Debian Package on: push: @@ -9,7 +9,7 @@ permissions: contents: write jobs: - build-dsc: + build-deb: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -39,9 +39,9 @@ jobs: HEAD - name: Build Debian package - run: debuild -S -us -uc --lintian-opts --profile debian + run: debuild -b -us -uc --lintian-opts --profile debian - - name: Collect Debian artifacts for development + - name: Collect Debian artifacts run: | mkdir -p artifacts shopt -s nullglob @@ -49,22 +49,17 @@ jobs: mv "$file" artifacts/ done - - name: Upload Debian artifacts for development + - name: Upload Debian artifact to the workflow uses: actions/upload-artifact@v4 with: - name: kci-dev-debian-source + name: kci-dev-debian-package path: artifacts/ - - name: Upload Debian source to GitHub Release on new tag + - name: Upload Debian package to GitHub Release on new tag if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref_name }} - files: | - artifacts/kci-dev_*.dsc - artifacts/kci-dev_*.orig.tar.* - artifacts/kci-dev_*debian.tar.* - artifacts/kci-dev_*_source.buildinfo - artifacts/kci-dev_*_source.changes + files: artifacts/* diff --git a/debian/changelog b/debian/changelog index 5b6d67b..f320147 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,7 @@ kci-dev (0.1.9-1) unstable; urgency=medium * New upstream release. * Update to version 0.1.9. - -- Arisu Tachibana Sat, 07 Dec 2025 12:00:00 +0900 + -- Arisu Tachibana Sun, 07 Dec 2025 12:00:00 +0900 kci-dev (0.1.8-1) unstable; urgency=medium diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fb57cda --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: kci-dev +Upstream-Contact: Arisu Tachibana +Source: https://pypi.org/project/kci-dev/ + +Files: * +Copyright: 2023-2025 Arisu Tachibana +License: LGPL-2.1+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-2.1". diff --git a/debian/kci-dev.1 b/debian/kci-dev.1 new file mode 100644 index 0000000..c50b32f --- /dev/null +++ b/debian/kci-dev.1 @@ -0,0 +1,48 @@ +.TH kci-dev 1 "December 2025" "kci-dev 0.1.9" "User Commands" +.SH NAME +kci-dev \- Stand alone command line tool for interacting with KernelCI +.SH SYNOPSIS +.B kci-dev +[\fIOPTIONS\fR] \fICOMMAND\fR [\fIARGS\fR] +.SH DESCRIPTION +\fBkci-dev\fR is a command line tool for Linux kernel developers and maintainers +to interact with KernelCI. Purpose of this tool to provide an easy-to-use command line tool +for developers and maintainers request test from KernelCI, view results, download logs, +integrate with scripts, etc. +.SH COMMANDS +.TP +\fBconfig\fR +Create a template configuration file. +.TP +\fBresults\fR +Query KernelCI results and related data. +.TP +\fBcheckout\fR +Checkout allow to test arbitary commit on the KernelCI Pipeline instance. +.TP +\fBwatch\fR +Watch results for a KernelCI node or job. +.TP +\fBmaestro\fR +Interact with Maestro data (for example, results validation). +.SH OPTIONS +Run \fBkci-dev --help\fR for a full list of options and subcommands. +.SH FILES +.TP +\fB/etc/kci-dev.toml\fR +System-wide configuration file. +.TP +\fB~/.config/kci-dev/kci-dev.toml\fR +User configuration file. +.SH EXAMPLES +.TP +\fBkci-dev config\fR +Generate a configuration template. +.TP +\fBkci-dev results summary --giturl --branch --commit \fR +Show results summary for a specific kernel commit. +.TP +\fBkci-dev checkout --giturl --branch --commit \fR +This command can execute all tests configured for particular tree/branch, or you can provide job-filter to execute specific tests and builds. +.SH SEE ALSO +The full documentation is available at https://kci.dev diff --git a/debian/kci-dev.manpages b/debian/kci-dev.manpages new file mode 100644 index 0000000..1cd4462 --- /dev/null +++ b/debian/kci-dev.manpages @@ -0,0 +1 @@ +debian/kci-dev.1 diff --git a/debian/rules b/debian/rules index 1881939..8a94ea9 100755 --- a/debian/rules +++ b/debian/rules @@ -1,8 +1,12 @@ #!/usr/bin/make -f export PYBUILD_NAME=kcidev +export PYBUILD_SYSTEM=pyproject %: dh $@ --buildsystem=pybuild +override_dh_auto_install: + dh_auto_install --destdir=debian/kci-dev + override_dh_auto_test: @echo "Skipping tests"; true