Skip to content

Commit bf93149

Browse files
authored
Add GitHub actions (#21)
* add github workflow --------- Signed-off-by: dalwar23 <[email protected]>
1 parent 952f292 commit bf93149

File tree

7 files changed

+53
-10
lines changed

7 files changed

+53
-10
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: kumaone python package
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
branches:
9+
- dev
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12"]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: pip
25+
# You can test your matrix by printing the current Python version
26+
- name: Display Python version
27+
run: python -c "import sys; print(sys.version)"
28+
- name: Upgrade pip
29+
run: python -m pip install --upgrade pip
30+
- name: Install pipenv
31+
run: pip install pipenv wheel hatch
32+
- name: Install dependencies
33+
run: pipenv install
34+
- name: Build kumaone python package
35+
run: pipenv run hatch build
36+
- name: Install kumaone package
37+
run: pipenv install --ignore-pipfile .
38+
- name: Check kumaone version
39+
run: pipenv run kumaone info

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.0.1-alpha.10 (11.12.2024)
4+
5+
- Deprecate support for python 3.8
6+
- Add GiHub Actions for simple checks
7+
- Running `kumaone` without any option will invoke help
8+
39
## 0.0.1-alpha.9 (10.12.2024)
410

511
- Release patch by @dalwar23 in https://github.com/devopsforhumans/kumaone/pull/18

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ Before you submit a pull request, check that it meets these guidelines:
9292
1. If the pull request adds functionality, the docs should be updated. Put
9393
your new functionality into a function with a docstring, and add the
9494
feature to the list of TODO in README file.
95-
2. The pull request should work for Python 3.8, 3.9, 3.10, 3.11, 3.12 and same for PyPy.
95+
2. The pull request should work for Python 3.9, 3.10, 3.11, 3.12 and PyPy3.10.
9696

docs/source/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation
22

3-
kumaone (`kumaone`) requires Python 3.8 or above. If you do not already have a
3+
kumaone (`kumaone`) requires Python 3.9 or above. If you do not already have a
44
Python environment configured on your computer, please see the
55
[Python](https://www.python.org) page for instructions on installing Python
66
environment.

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "kumaone"
77
dynamic = ["version"]
88
description = 'Automation friendly bulk action CLI helper for Uptime Kuma.'
99
readme = "README.md"
10-
requires-python = ">=3.8"
10+
requires-python = ">=3.9"
1111
license = "BSD-3-Clause"
1212
keywords = ["kumaone", "kuma", "uptime-kuma", "monitoring", "cli", "python3"]
1313
authors = [
@@ -18,12 +18,10 @@ classifiers = [
1818
"Environment :: Console",
1919
"License :: OSI Approved",
2020
"Programming Language :: Python",
21-
"Programming Language :: Python :: 3.8",
2221
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
2524
"Programming Language :: Python :: 3.12",
26-
"Programming Language :: Python :: Implementation :: CPython",
2725
"Programming Language :: Python :: Implementation :: PyPy",
2826
]
2927
dependencies = [
@@ -75,7 +73,7 @@ cov = [
7573
]
7674

7775
[[tool.hatch.envs.all.matrix]]
78-
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
76+
python = ["3.9", "3.10", "3.11", "3.12"]
7977

8078
[tool.hatch.envs.lint]
8179
detached = true
@@ -108,7 +106,7 @@ skip-string-normalization = true
108106

109107
[tool.ruff]
110108
target-version = "py312"
111-
line-length = 130
109+
line-length = 120
112110
select = [
113111
"A",
114112
"ARG",
@@ -189,7 +187,7 @@ exclude_lines = [
189187
]
190188

191189
[tool.bumpversion]
192-
current_version = "0.0.1-alpha.9"
190+
current_version = "0.0.1-alpha.10"
193191
#parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
194192
#serialize = ["{major}.{minor}.{patch}"]
195193
parse = """(?x)

src/kumaone/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
year = datetime.now().year
99

10-
__version__ = "0.0.1-alpha.9"
10+
__version__ = "0.0.1-alpha.10"
1111
__author__ = "Dalwar Hossain"
1212
__license__ = "BSD 3-Clause"
1313
__home_page__ = "https://kumaone.rtfd.io"

src/kumaone/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
__email__ = "[email protected]"
2020

2121
# Create typer app and turn off debug mode by default
22-
app = typer.Typer()
22+
app = typer.Typer(no_args_is_help=True)
2323
app.add_typer(monitor_cli.app, name="monitor")
2424
app.add_typer(config_cli.app, name="config")
2525
app.add_typer(status_page_cli.app, name="status-page")

0 commit comments

Comments
 (0)