Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package s-tui for openSUSE:Factory checked 
in at 2022-12-19 14:08:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/s-tui (Old)
 and      /work/SRC/openSUSE:Factory/.s-tui.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "s-tui"

Mon Dec 19 14:08:02 2022 rev:8 rq:1043667 version:1.1.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/s-tui/s-tui.changes      2021-08-19 
10:02:02.055189880 +0200
+++ /work/SRC/openSUSE:Factory/.s-tui.new.1835/s-tui.changes    2022-12-19 
14:08:04.430605172 +0100
@@ -1,0 +2,7 @@
+Sun Dec 18 16:04:36 UTC 2022 - Dirk Müller <dmuel...@suse.com>
+
+- update to v1.1.4:
+  * Update psutil dependency to fix frequency being displayed in GHz instead
+    of MHz
+
+-------------------------------------------------------------------

Old:
----
  s-tui-1.1.3.tar.gz

New:
----
  s-tui-1.1.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ s-tui.spec ++++++
--- /var/tmp/diff_new_pack.Fn4mA8/_old  2022-12-19 14:08:04.914607679 +0100
+++ /var/tmp/diff_new_pack.Fn4mA8/_new  2022-12-19 14:08:04.918607701 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package s-tui
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 # Copyright (c) 2019 Malcolm J Lewis <malcolmle...@opensuse.org>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:           s-tui
-Version:        1.1.3
+Version:        1.1.4
 Release:        0
 Summary:        Terminal based CPU stress and monitoring utility
 License:        GPL-2.0-or-later

++++++ s-tui-1.1.3.tar.gz -> s-tui-1.1.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/s-tui-1.1.3/s_tui/helper_functions.py 
new/s-tui-1.1.4/s_tui/helper_functions.py
--- old/s-tui-1.1.3/s_tui/helper_functions.py   2021-07-24 16:11:58.000000000 
+0200
+++ new/s-tui-1.1.4/s_tui/helper_functions.py   2022-07-30 09:51:13.000000000 
+0200
@@ -30,7 +30,7 @@
 
 from collections import OrderedDict
 
-__version__ = "1.1.3"
+__version__ = "1.1.4"
 
 _DEFAULT = object()
 PY3 = sys.version_info[0] == 3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/s-tui-1.1.3/s_tui/s_tui.py 
new/s-tui-1.1.4/s_tui/s_tui.py
--- old/s-tui-1.1.3/s_tui/s_tui.py      2021-07-24 16:11:58.000000000 +0200
+++ new/s-tui-1.1.4/s_tui/s_tui.py      2022-07-30 09:51:13.000000000 +0200
@@ -704,7 +704,7 @@
         self.script_hooks_enabled = True
         self.script_loader = None
 
-        self.refresh_rate = '2.0'
+        self.refresh_rate = args.refresh_rate
 
         self.smooth_graph_mode = False
 
@@ -950,6 +950,9 @@
     parser.add_argument('-tt', '--t_thresh',
                         default=None,
                         help="High Temperature threshold. Default: 80")
+    parser.add_argument('-r', '--refresh-rate', dest="refresh_rate",
+                        default="2.0",
+                        help="Refresh rate in seconds. Default: 2.0")
     args = parser.parse_args()
     return args
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/s-tui-1.1.3/s_tui/sources/fan_source.py 
new/s-tui-1.1.4/s_tui/sources/fan_source.py
--- old/s-tui-1.1.3/s_tui/sources/fan_source.py 2021-07-24 16:11:58.000000000 
+0200
+++ new/s-tui-1.1.4/s_tui/sources/fan_source.py 2022-07-30 09:51:13.000000000 
+0200
@@ -28,7 +28,10 @@
 class FanSource(Source):
     """ Source for fan information """
     def __init__(self):
-        if (not hasattr(psutil, "sensors_fans") and psutil.sensors_fans()):
+        try:
+            if psutil.sensors_fans():
+                self.is_available = True
+        except AttributeError:
             self.is_available = False
             logging.debug("Fans sensors is not available from psutil")
             return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/s-tui-1.1.3/s_tui/sources/rapl_read.py 
new/s-tui-1.1.4/s_tui/sources/rapl_read.py
--- old/s-tui-1.1.3/s_tui/sources/rapl_read.py  2021-07-24 16:11:58.000000000 
+0200
+++ new/s-tui-1.1.4/s_tui/sources/rapl_read.py  2022-07-30 09:51:13.000000000 
+0200
@@ -159,18 +159,21 @@
 
     @staticmethod
     def available():
-        cpuinfo = cat("/proc/cpuinfo", binary=False)
-        # The reader only supports family 17h CPUs
-        m = re.search(r"vendor_id[\s]+: ([A-Za-z]+)", cpuinfo)
+        try:
+            cpuinfo = cat("/proc/cpuinfo", binary=False)
+            # The reader only supports family 17h CPUs
+            m = re.search(r"vendor_id[\s]+: ([A-Za-z]+)", cpuinfo)
 
-        if not m or m is None:
-            return False
+            if not m or m is None:
+                return False
 
-        if m.group(1) != "AuthenticAMD":
-            return False
+            if m.group(1) != "AuthenticAMD":
+                return False
 
-        m = re.search(r"cpu family[\s]+: ([0-9]+)", cpuinfo)
-        if int(m[1]) != 0x17:
+            m = re.search(r"cpu family[\s]+: ([0-9]+)", cpuinfo)
+            if int(m[1]) != 0x17:
+                return False
+        except (FileNotFoundError, PermissionError):
             return False
 
         # with open("/proc/cpuinfo", "rb") as cpuinfo:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/s-tui-1.1.3/s_tui/sources/temp_source.py 
new/s-tui-1.1.4/s_tui/sources/temp_source.py
--- old/s-tui-1.1.3/s_tui/sources/temp_source.py        2021-07-24 
16:11:58.000000000 +0200
+++ new/s-tui-1.1.4/s_tui/sources/temp_source.py        2022-07-30 
09:51:13.000000000 +0200
@@ -33,8 +33,10 @@
 
     def __init__(self, temp_thresh=None):
         warnings.filterwarnings('ignore', '.*FileNotFound.*',)
-        if (not hasattr(psutil, "sensors_temperatures") and
-                psutil.sensors_temperatures()):
+        try:
+            if psutil.sensors_temperatures():
+                self.is_available = True
+        except AttributeError:
             self.is_available = False
             logging.debug("cpu temperature is not available from psutil")
             return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/s-tui-1.1.3/setup.py new/s-tui-1.1.4/setup.py
--- old/s-tui-1.1.3/setup.py    2021-07-24 16:11:58.000000000 +0200
+++ new/s-tui-1.1.4/setup.py    2022-07-30 09:51:13.000000000 +0200
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-# Copyright (C) 2017-2020 Alex Manuskin
+# Copyright (C) 2017-2022 Alex Manuskin
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -44,6 +44,6 @@
     ],
     install_requires=[
         'urwid>=2.0.1',
-        'psutil>=5.6.0',
+        'psutil>=5.9.1',
     ],
 )

Reply via email to