Skip to content
Snippets Groups Projects
Commit 4fb26934 authored by Frank Baier's avatar Frank Baier
Browse files

Update project for compatibility with Checkmk 2.3 and GitLab CI

This commit removes GitHub workflows and switches to GitLab CI setup. It updates the project description, dependencies, and classifiers for Checkmk 2.3 compatibility. Additionally, it includes the latest version of Versioneer from PyPI.
parent 98ab3c1c
No related branches found
No related tags found
No related merge requests found
name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [2.7, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e py
name: release
on:
push:
tags:
- "[0-9]+.[0-9]+"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev --deploy
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pipenv run pytest
pipenv run python setup.py bdist_wheel
pipenv run twine upload dist/*
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
![release](https://github.com/tom-mi/python-mkp/workflows/release/badge.svg) ![release](https://github.com/tom-mi/python-mkp/workflows/release/badge.svg)
[![PyPI version](https://badge.fury.io/py/mkp.svg)](https://badge.fury.io/py/mkp) [![PyPI version](https://badge.fury.io/py/mkp.svg)](https://badge.fury.io/py/mkp)
Pack or unpack [Check_MK](https://mathias-kettner.de/check_mk.html) mkp files. Pack or unpack [Checkmk](https://checkmk.com/) mkp files.
The purpose of this library is to generate mkp files from source without having to set up a complete Check\_MK instance. It is not intended for installing mkp files to a Check\_MK site. The purpose of this library is to generate mkp files from source without having to set up a complete Check\_MK instance. It is not intended for installing mkp files to a Check\_MK site.
## Installation ## Installation
...@@ -78,3 +78,9 @@ output filename. ...@@ -78,3 +78,9 @@ output filename.
## License ## License
This software is licensed under GPLv2. This software is licensed under GPLv2.
## Changes
- update Verisoneer / using latest version from PyPI
- Change CI/CD to Gitlab runner
- make it compatible with Checkmk 2.3 and newer
\ No newline at end of file
[project]
name = "python-mkp"
version = "0.6.0"
description = "Pack and unpack Check_MK mkp file"
readme = "README.md"
authors = [
{name = "Thomas Reifenberger", email = "tom-mi@users.noreply.github.com"},
]
dependencies = [
"requests",
"lxml",
"zeep",
"pydantic[email]",
"pydantic-xml",
]
requires-python = ">= 3.10"
...@@ -8,3 +8,4 @@ versionfile_source = mkp/_version.py ...@@ -8,3 +8,4 @@ versionfile_source = mkp/_version.py
versionfile_build = mkp/_version.py versionfile_build = mkp/_version.py
tag_prefix = tag_prefix =
parentdir_prefix = python- parentdir_prefix = python-
dirty = None
from setuptools import find_packages, setup from setuptools import find_packages, setup
import versioneer import versioneer
setup( setup(
name='mkp', name='mkp',
version=versioneer.get_version(), version=versioneer.get_version(),
...@@ -10,7 +9,7 @@ setup( ...@@ -10,7 +9,7 @@ setup(
author='Thomas Reifenberger', author='Thomas Reifenberger',
install_requires=[], install_requires=[],
author_email='tom-mi@users.noreply.github.com', author_email='tom-mi@users.noreply.github.com',
description='Pack and unpack Check_MK mkp files', description='Pack and unpack Check_MK mkp files. This is a copy of the original project with make it compatible with Checkmk 2.3',
long_description=open('README.md', 'r').read(), long_description=open('README.md', 'r').read(),
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
packages=find_packages(), packages=find_packages(),
...@@ -24,6 +23,7 @@ setup( ...@@ -24,6 +23,7 @@ setup(
'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.12',
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'Topic :: System :: Monitoring', 'Topic :: System :: Monitoring',
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment