Skip to content

Commit

Permalink
replace parse_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Dec 19, 2024
1 parent 29a421e commit b39661e
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Nagstamon/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class AppInfo(object):
contains app information previously located in GUI.py
"""
NAME = 'Nagstamon'
VERSION = '3.17-20241102'
VERSION = '3.17-20241219'
WEBSITE = 'https://nagstamon.de'
COPYRIGHT = '©2008-2024 Henri Wahl et al.'
COMMENTS = 'Nagios status monitor for your desktop'
Expand Down
4 changes: 2 additions & 2 deletions Nagstamon/Servers/ZabbixProblemBased.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import time
import logging
import requests
from pkg_resources import parse_version
from packaging import version

from Nagstamon.Helpers import HumanReadableDurationFromTimestamp
from Nagstamon.Config import conf
Expand Down Expand Up @@ -200,7 +200,7 @@ def _get_status(self):
self.new_hosts[host_id].scheduled_downtime = True

#old api shows host interfaces status in host object
if parse_version(self.zbx_version) < parse_version("5.4.0"):
if version.parse(self.zbx_version) < version.parse("5.4.0"):

#host not available via agent
if trigger[0]['hosts'][0].get('available', '0') == "2":
Expand Down
9 changes: 7 additions & 2 deletions build/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
nagstamon (3.17-20241102) unstable; urgency=low
nagstamon (3.17-20241219) unstable; urgency=low
* New upstream

-- Henri Wahl <[email protected]> Thu, Dec 19 2024 08:00:00 +0200

nagstamon (3.16.2) unstable; urgency=low
* New upstream
- fix sound problem
- fix IncingaDBWeb

-- Henri Wahl <[email protected]> Sat, Nov 02 2024 08:00:00 +0200
-- Henri Wahl <[email protected]> Mon, Oct 21 2024 08:00:00 +0200

nagstamon (3.16.1) stable; urgency=low
* New upstream
Expand Down
6 changes: 3 additions & 3 deletions build/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Vcs-Browser: https://codeload.github.com/HenriWahl/Nagstamon/zip/master
Package: nagstamon
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-pkg-resources, python3-bs4, python3-lxml,
python3-pyqt5, python3-pyqt5.qtsvg, python3-pyqt5.qtmultimedia, libqt5multimedia5-plugins,
python3-requests, python3-requests-kerberos, python3-psutil, python3-dbus.mainloop.pyqt5,
python3-keyring, python3-ewmh, python3-arrow
python3-packaging, python3-pyqt5, python3-pyqt5.qtsvg, python3-pyqt5.qtmultimedia,
libqt5multimedia5-plugins, python3-requests, python3-requests-kerberos, python3-psutil,
python3-dbus.mainloop.pyqt5, python3-keyring, python3-ewmh, python3-arrow
Recommends: python3-secretstorage
Description: Nagios status monitor which takes place in systray or on desktop
Nagstamon is a Nagios status monitor which takes place in systray or
Expand Down
1 change: 1 addition & 0 deletions build/redhat/nagstamon.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Requires: python3-dateutil
Requires: python3-dbus
Requires: python3-keyring
Requires: python3-lxml
Requires: python3-packaging
Requires: python3-psutil
Requires: python3-pysocks
Requires: python3-pyqt6
Expand Down
1 change: 1 addition & 0 deletions build/requirements/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ beautifulsoup4
dbus-python
keyring
lxml
packaging
psutil
pyqt6
pyqt6-qt6
Expand Down
1 change: 1 addition & 0 deletions build/requirements/macos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ arrow
beautifulsoup4
keyring
lxml
packaging
psutil
pyinstaller
pyobjc-framework-ApplicationServices
Expand Down
1 change: 1 addition & 0 deletions build/requirements/windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ beautifulsoup4
keyring
lxml
pip-system-certs
packaging
psutil
pyinstaller
pypiwin32
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
'python3-dateutil '
'python3-keyring '
'python3-lxml '
'python3-packaging '
'python3-psutil '
'python3-pysocks '
'python3-qt5 '
Expand Down

0 comments on commit b39661e

Please sign in to comment.