Skip to content

Commit

Permalink
Test on py313
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Nov 2, 2024
1 parent a4491fb commit b78fe59
Show file tree
Hide file tree
Showing 9 changed files with 223 additions and 203 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']

steps:
# https://github.com/marketplace/actions/checkout
Expand Down
9 changes: 5 additions & 4 deletions .python-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3.8.18
3.9.18
3.11.6
3.12.0
3.8
3.9
3.10
3.11
3.13
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ lint:
poetry run tox -e lint

pin_docs_requirements:
pipx install pip-tools
pip-compile --output-file=docs/requirements.txt docs/requirements.in pyproject.toml

copy_example_systemd_units:
Expand Down
9 changes: 4 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Packages
(`package <https://packages.fedoraproject.org/pkgs/nagios-plugins-systemd/nagios-plugins-systemd/>`__,
`source code <https://src.fedoraproject.org/rpms/nagios-plugins-systemd>`__):
``dnf install nagios-plugins-systemd``

- OracleLinux9 / RHEL9
(`package <https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd-1.0-1.x86_64.rpm?job=release_rpm>`__,
`source code <https://gitlab.com/msfgitlab/check_systemd_build_rpm>`__,
Expand All @@ -67,8 +66,6 @@ Packages
The package is built via GitLab CI as a nightly release and is considered experimental.
``curl -L -o check_systemd-1.0-1.x86_64.rpm "https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd-1.0-1.x86_64.rpm?job=release_rpm" && sudo dnf install -y ./check_systemd-1.0-1.x86_64.rpm``



Command line interface
----------------------

Expand Down Expand Up @@ -174,10 +171,12 @@ Command line interface
--user Also show user (systemctl --user) units.

Performance data:
By default performance data is attached.

-P, --performance-data
Attach no performance data to the plugin output.
-p, --no-performance-data
Attach performance data to the plugin output.
-p, --no-performance-data
Attach no performance data to the plugin output.

Performance data:
- count_units
Expand Down
3 changes: 1 addition & 2 deletions check_systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,7 @@ def get_argparser() -> argparse.ArgumentParser:
# Performance data ########################################################

perf_data = parser.add_argument_group(
"Performance data",
"By default performance data is attached."
"Performance data", "By default performance data is attached."
)
perf_data_exclusive_group = perf_data.add_mutually_exclusive_group()

Expand Down
3 changes: 0 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from datetime import datetime
from importlib.metadata import version as get_version

import sphinx_rtd_theme # type: ignore

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

extensions = [
"sphinx.ext.autodoc",
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --output-file=docs/requirements.txt docs/requirements.in pyproject.toml
Expand Down
378 changes: 200 additions & 178 deletions poetry.lock

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,39,310,311,312}, format, readme, docs, lint, typecheck
envlist = py{38,39,310,311,312,313}, format, readme, docs, lint, typecheck
isolated_build = True

[testenv]
Expand All @@ -18,17 +18,17 @@ commands =

[testenv:readme]
deps =
readme-patcher==0.6.0
readme-patcher
commands =
readme-patcher

[testenv:docs]
deps =
pgi==0.0.11.2 # PGI - Pure Python GObject Introspection Bindings API compatible with PyGObject.
Sphinx==6.2.1
sphinx-rtd-theme==1.2.2
sphinx-autodoc-typehints==1.22.0
readme-patcher==0.6.0
pgi # PGI - Pure Python GObject Introspection Bindings API compatible with PyGObject.
Sphinx
sphinx-rtd-theme
sphinx-autodoc-typehints
readme-patcher
commands =
sphinx-build -W -q docs docs/_build

Expand All @@ -51,6 +51,7 @@ commands =
python =
3.8: py38
3.9: py39
3.10: py310, format, docs, lint
3.10: py310
3.11: py311
3.12: py312
3.12: py312, format, docs, lint
3.13: py313

0 comments on commit b78fe59

Please sign in to comment.