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 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 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 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/ /