diff --git a/.github/workflows/build-python-package.yml b/.github/workflows/build-python-package.yml new file mode 100644 index 0000000..e9cbdb6 --- /dev/null +++ b/.github/workflows/build-python-package.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index befa395..19c8165 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 10ef385..41ecb5d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/docs/source/installation.md b/docs/source/installation.md index 146e311..2df74e2 100644 --- a/docs/source/installation.md +++ b/docs/source/installation.md @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 89f4a87..ba9ddad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [ @@ -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 = [ @@ -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 @@ -108,7 +106,7 @@ skip-string-normalization = true [tool.ruff] target-version = "py312" -line-length = 130 +line-length = 120 select = [ "A", "ARG", @@ -189,7 +187,7 @@ exclude_lines = [ ] [tool.bumpversion] -current_version = "0.0.1-alpha.9" +current_version = "0.0.1-alpha.10" #parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" #serialize = ["{major}.{minor}.{patch}"] parse = """(?x) diff --git a/src/kumaone/__about__.py b/src/kumaone/__about__.py index 4954f2a..650c658 100644 --- a/src/kumaone/__about__.py +++ b/src/kumaone/__about__.py @@ -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" diff --git a/src/kumaone/main.py b/src/kumaone/main.py index e4d973d..67f0a3a 100644 --- a/src/kumaone/main.py +++ b/src/kumaone/main.py @@ -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")