Skip to content
Merged
39 changes: 39 additions & 0 deletions .github/workflows/build-python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: kumaone python package

on:
push:
branches:
- dev
pull_request:
branches:
- dev
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install pipenv
run: pip install pipenv wheel hatch
- name: Install dependencies
run: pipenv install
- name: Build kumaone python package
run: pipenv run hatch build
- name: Install kumaone package
run: pipenv install --ignore-pipfile .
- name: Check kumaone version
run: pipenv run kumaone info
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.0.1-alpha.10 (11.12.2024)

- Deprecate support for python 3.8
- Add GiHub Actions for simple checks
- Running `kumaone` without any option will invoke help

## 0.0.1-alpha.9 (10.12.2024)

- Release patch by @dalwar23 in https://github.com/devopsforhumans/kumaone/pull/18
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ Before you submit a pull request, check that it meets these guidelines:
1. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list of TODO in README file.
2. The pull request should work for Python 3.8, 3.9, 3.10, 3.11, 3.12 and same for PyPy.
2. The pull request should work for Python 3.9, 3.10, 3.11, 3.12 and PyPy3.10.

2 changes: 1 addition & 1 deletion docs/source/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Installation

kumaone (`kumaone`) requires Python 3.8 or above. If you do not already have a
kumaone (`kumaone`) requires Python 3.9 or above. If you do not already have a
Python environment configured on your computer, please see the
[Python](https://www.python.org) page for instructions on installing Python
environment.
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "kumaone"
dynamic = ["version"]
description = 'Automation friendly bulk action CLI helper for Uptime Kuma.'
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = "BSD-3-Clause"
keywords = ["kumaone", "kuma", "uptime-kuma", "monitoring", "cli", "python3"]
authors = [
Expand All @@ -18,12 +18,10 @@ classifiers = [
"Environment :: Console",
"License :: OSI Approved",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
Expand Down Expand Up @@ -75,7 +73,7 @@ cov = [
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
python = ["3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.lint]
detached = true
Expand Down Expand Up @@ -108,7 +106,7 @@ skip-string-normalization = true

[tool.ruff]
target-version = "py312"
line-length = 130
line-length = 120
select = [
"A",
"ARG",
Expand Down Expand Up @@ -189,7 +187,7 @@ exclude_lines = [
]

[tool.bumpversion]
current_version = "0.0.1-alpha.9"
current_version = "0.0.1-alpha.10"
#parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
#serialize = ["{major}.{minor}.{patch}"]
parse = """(?x)
Expand Down
2 changes: 1 addition & 1 deletion src/kumaone/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

year = datetime.now().year

__version__ = "0.0.1-alpha.9"
__version__ = "0.0.1-alpha.10"
__author__ = "Dalwar Hossain"
__license__ = "BSD 3-Clause"
__home_page__ = "https://kumaone.rtfd.io"
Expand Down
2 changes: 1 addition & 1 deletion src/kumaone/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
__email__ = "dalwar23@pm.me"

# Create typer app and turn off debug mode by default
app = typer.Typer()
app = typer.Typer(no_args_is_help=True)
app.add_typer(monitor_cli.app, name="monitor")
app.add_typer(config_cli.app, name="config")
app.add_typer(status_page_cli.app, name="status-page")
Expand Down
Loading