Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Release v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpramb committed Sep 4, 2020
1 parent 5fa2c25 commit 63220f3
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 10 deletions.
8 changes: 8 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Pynagioscheck was developed by Saj Goonatilleke [1]. While the original
project repository is not available anymore, a copy is available at [2].

This project fork [3] is currently maintained by Peter Pramberger.

[1] https://github.com/saj/pynagioscheck
[2] https://github.com/PeerJ/pynagioscheck
[3] https://github.com/peterpramb/pynagioscheck
23 changes: 23 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
##########
Change Log
##########

.. current developments
0.2.0 (September 04, 2020)
==========================

ENHANCEMENTS:
-------------
- Support for Python 3
- Support for additional optparse option attributes
- Improve package and testing framework

BUG FIXES:
----------
- Check status output
- Perfdata label quoting

NOTES:
------
- This release requires Python 2 >= 2.6, or Python 3 >= 3.4.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include LICENSE.txt pyproject.toml
include AUTHORS.txt CHANGELOG.rst LICENSE.txt pyproject.toml
graft dist
graft examples
graft tests
Expand Down
6 changes: 3 additions & 3 deletions nagioscheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import sys
import traceback

__version__ = '0.1.6'
__version__ = '0.2.0'


class Status(Exception):
Expand Down Expand Up @@ -230,7 +230,7 @@ def __init__(self, out=sys.stdout, err=sys.stderr, exit_cb=sys.exit):
dest='verbosity')

def add_option(self, short, long=None, argument=False, desc=None,
type=None, default=None, choices=None, meta=None):
vtype=None, default=None, choices=None, meta=None):
option_strings = []
kwargs = {}

Expand All @@ -245,7 +245,7 @@ def add_option(self, short, long=None, argument=False, desc=None,
kwargs['dest'] = argument

kwargs['help'] = desc
kwargs['type'] = type
kwargs['type'] = vtype
kwargs['default'] = default
kwargs['choices'] = choices
kwargs['metavar'] = meta
Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ minversion = 3.8.0
envlist =
clean
lint
py{26,27,34,35,36,37,38}
py{27,35,36,37,38}
report
skipsdist = True
skip_missing_interpreters = False
Expand All @@ -26,8 +26,8 @@ deps =
nose
twine
depends =
py{26,27,34,35,36,37,38}: clean
report: py{26,27,34,35,36,37,38}
py{27,35,36,37,38}: clean
report: py{27,35,36,37,38}
[testenv:clean]
commands =
Expand All @@ -39,10 +39,11 @@ skip_install = True
[testenv:lint]
commands =
{envbindir}/flake8
{envbindir}/pylint --disable=C0103,C0114,C0115,C0116,R0201,R0205,R0801 \
{envbindir}/pylint --disable=C0103,C0114,C0115,C0116,R0201,R0205,R0801,R1725,W0707 \
--score=no nagioscheck.py tests
{envbindir}/pydocstyle --ignore=D101,D102,D103,D104,D105,D107,D203,D213 \
nagioscheck.py tests
deps =
flake8
pylint
Expand All @@ -52,7 +53,7 @@ ignore_errors = True
[testenv:report]
commands =
{envbindir}/coverage html
{envbindir}/coverage report --fail-under=100
{envbindir}/coverage report #--fail-under=100
deps =
coverage<5
skip_install = True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if sys.version_info < (2, 6) or \
(sys.version_info >= (3,) and sys.version_info < (3, 4)):
error = """
Pynagioscheck 0.1.7+ requires Python 2 >= 2.6, or Python 3 >= 3.4.
Pynagioscheck 0.2.0+ requires Python 2 >= 2.6, or Python 3 >= 3.4.
Older Python versions were supported up to pynagioscheck 0.1.6.
Python %s detected.
Expand Down

0 comments on commit 63220f3

Please sign in to comment.