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
32 changes: 32 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish-package

on:
push:
tags:
- v*

permissions: read-all

jobs:
publish-package:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]

steps:
- uses: actions/checkout@v4

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

- name: Build and push
env:
TWINE_USERNAME: ${{ secrets.GEMFURY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.GEMFURY_PUSH_TOKEN }}
run: |
pip install -U pip "setuptools<82" twine wheel

make upload
23 changes: 23 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: master
pull_request:

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

jobs:
black:
runs-on: ubuntu-latest
Expand All @@ -29,6 +33,25 @@ jobs:

./node_modules/.bin/eslint . -c package.json

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

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

- name: Build me
run: |
pip install -U pip "setuptools<82" wheel twine

make package

postgres:
runs-on: ubuntu-latest
strategy:
Expand Down
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2024 Alexander Todorov <[email protected]>
# Copyright (c) 2019-2026 Alexander Todorov <[email protected]>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
# https://www.gnu.org/licenses/agpl-3.0.html
Expand Down Expand Up @@ -59,10 +59,22 @@ messages:
check: flake8 pylint test


.PHONY: test-via-docker
test-via-docker:
.PHONY: package
package:
rm -rf build/ dist/ kiwitcms_github_marketplace.egg-info/
python setup.py sdist
python setup.py bdist_wheel
twine check dist/*


.PHONY: test-via-docker
test-via-docker: package
docker build -f Dockerfile.testing -t kiwitcms/github-marketplace:latest .
docker images
test_project/sanity-check.sh

.PHONY: upload
upload: package
test -n "$(TWINE_USERNAME)" || exit 1
test -n "$(TWINE_PASSWORD)" || exit 2
twine upload dist/* --repository-url https://push.fury.io/kiwitcms
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Product configuration
Changelog
---------

v4.5.0 (06 Apr 2026)
v4.5.1 (06 Apr 2026)
~~~~~~~~~~~~~~~~~~~~

- Add model ``PrivateRepoToken``
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_install_requires(path):

setup(
name="kiwitcms-github-marketplace",
version="4.5.0",
version="4.5.1",
description="GitHub Marketplace integration for Kiwi TCMS",
long_description=get_long_description(),
author="Kiwi TCMS",
Expand Down
Loading