Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2

updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "03:00"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
time: "04:00"
open-pull-requests-limit: 5
rebase-strategy: "disabled"
28 changes: 28 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: publish-package

on:
push:
tags:
- v*

permissions: read-all

jobs:
build_and_push:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.12]

steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Upload packages for ${{ github.event.ref }}
env:
TWINE_PASSWORD: ${{ secrets.GEMFURY_PUSH_TOKEN }}
run: |
make upload-pkg
32 changes: 32 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: testing

on:
push:
branches: main
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions: read-all


jobs:
build-package:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12]

steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Build package for ${{ github.event.ref }}
run: |
make build-pkg
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2026 Alexander Todorov <atodorov@otb.bg>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
# https://www.gnu.org/licenses/agpl-3.0.html

FROM kiwitcms/kiwi AS buildroot

USER 0
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 wheel --no-deps --wheel-dir /Kiwi/dist -r /Kiwi/requirements.txt

FROM scratch AS pkg-dist
COPY --from=buildroot /Kiwi/dist/ /
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (c) 2026 Alexander Todorov <atodorov@otb.bg>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
# https://www.gnu.org/licenses/agpl-3.0.html


.PHONY: build-pkg
build-pkg:
rm -rf dist/
docker build --output type=local,dest=dist/ --target pkg-dist .

.PHONY: upload-pkg
upload-pkg: build-pkg
test -n "$(TWINE_USERNAME)" || exit 1
test -n "$(TWINE_PASSWORD)" || exit 2
twine upload dist/* --repository-url https://push.fury.io/kiwitcms
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This repository contains a downstream build of the
[gssapi](https://pypi.org/project/gssapi/) PyPI package which is built
specifically for use inside a Kiwi TCMS container!
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gssapi==1.11.1