From 617d035c5892430c1a1a7cd6bdcd6d8a8b59495b Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Sun, 7 Jun 2026 11:42:47 +0300 Subject: [PATCH 1/4] Add pre-commit CI config --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e3cc280 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: end-of-file-fixer + - id: mixed-line-ending + args: [--fix=lf] + - id: trailing-whitespace From a205e41c72cc765a424ba94f923f0aebf8a226c6 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Sun, 7 Jun 2026 11:45:25 +0300 Subject: [PATCH 2/4] Define TWINE_USERNAME ENV var --- .github/workflows/publish-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 57a7793..30817d1 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -23,6 +23,7 @@ jobs: - name: Upload packages for ${{ github.event.ref }} env: + TWINE_USERNAME: ${{ secrets.GEMFURY_USERNAME }} TWINE_PASSWORD: ${{ secrets.GEMFURY_PUSH_TOKEN }} run: | make upload-pkg From 7e3482470af4daea992d0cad04cc792240bd000c Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Sun, 7 Jun 2026 11:46:49 +0300 Subject: [PATCH 3/4] Add a twine check line --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5f762aa..046b608 100755 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,9 @@ RUN dnf -y install gcc krb5-devel python3.12-devel USER 1001 COPY ./requirements.txt /Kiwi/requirements.txt -RUN pip3 install --no-cache-dir --upgrade pip wheel +RUN pip3 install --no-cache-dir --upgrade pip twine wheel RUN pip3 wheel --no-deps --wheel-dir /Kiwi/dist -r /Kiwi/requirements.txt +RUN twine check /Kiwi/dist/* || exit 1 FROM scratch AS pkg-dist COPY --from=buildroot /Kiwi/dist/ / From 2d144ab1f8fc3fab4a5c9379b52b44bde4cc2fed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 7 Jun 2026 08:53:02 +0000 Subject: [PATCH 4/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 83972fa..d99a8b0 100644 --- a/.gitignore +++ b/.gitignore @@ -195,9 +195,9 @@ cython_debug/ .abstra/ # Visual Studio Code -# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore +# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore -# and can be added to the global gitignore or merged into this file. However, if you prefer, +# and can be added to the global gitignore or merged into this file. However, if you prefer, # you could uncomment the following to ignore the entire vscode folder # .vscode/ # Temporary file for partial code execution