diff --git a/psutil-5.7.0.tar.gz b/psutil-5.7.0.tar.gz deleted file mode 100644 index d3163ff..0000000 --- a/psutil-5.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:685ec16ca14d079455892f25bd124df26ff9137664af445563c1bd36629b5e0e -size 449628 diff --git a/psutil-5.7.2.tar.gz b/psutil-5.7.2.tar.gz new file mode 100644 index 0000000..6ca753e --- /dev/null +++ b/psutil-5.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90990af1c3c67195c44c9a889184f84f5b2320dce3ee3acbd054e3ba0b4a7beb +size 460198 diff --git a/python-psutil.changes b/python-psutil.changes index ac94bea..3993af7 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Wed Sep 16 21:09:55 UTC 2020 - Dirk Mueller + +- update to 5.7.2: + * parallel tests on UNIX (make test-parallel). They're twice as fast! + * 1741: "make build/install" is now run in parallel and it's about 15% faster on UNIX. + * 1747: Process.wait() on POSIX returns an enum, showing the negative signal which was used to terminate the process + * 1747: Process.wait() return value is cached so that the exit code can be retrieved on then next call. + * 1747: Process provides more info about the process on str() and repr() (status and exit code): + * 1757: memory leak tests are now stable. + * 1768: [Windows] added support for Windows Nano Server. (contributed by Julien Lebot) + * 1726: [Linux] cpu_freq() parsing should use spaces instead of tabs on ia64. (patch by Michał Górny) + * 1760: [Linux] Process.rlimit() does not handle long long type properly. + * 1766: [macOS] NoSuchProcess may be raised instead of ZombieProcess. + * 1781: fix signature of callback function for getloadavg(). (patch by Ammar Askar) + - remove skip-flaky-i586.patch (obsolete) + ------------------------------------------------------------------- Fri Aug 21 15:27:11 UTC 2020 - Matej Cepl diff --git a/python-psutil.spec b/python-psutil.spec index edf35e1..b2abe28 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -24,13 +24,12 @@ %endif %bcond_without python2 Name: python-psutil -Version: 5.7.0 +Version: 5.7.2 Release: 0 Summary: A process utilities module for Python License: BSD-3-Clause URL: https://github.com/giampaolo/psutil Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{version}.tar.gz -Patch0: skip-flaky-i586.patch Patch1: skip-obs.patch # PATCH-FIX-UPSTREAM skip_failing_tests.patch gh#giampaolo/psutil#1635 mcepl@suse.com # skip tests failing because of incomplete emulation of the environment in osc build diff --git a/skip-flaky-i586.patch b/skip-flaky-i586.patch deleted file mode 100644 index dcb7ed8..0000000 --- a/skip-flaky-i586.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- psutil-5.6.1-orig/psutil/tests/test_contracts.py 2019-03-18 09:42:48.474895363 +0700 -+++ psutil-5.6.1/psutil/tests/test_contracts.py 2019-03-20 18:25:02.356923046 +0700 -@@ -330,7 +330,7 @@ - else: - return attr - -- def test_fetch_all(self): -+ def _test_fetch_all(self): - valid_procs = 0 - default = object() - failures = [] diff --git a/skip-obs.patch b/skip-obs.patch index ffb4937..2e21565 100644 --- a/skip-obs.patch +++ b/skip-obs.patch @@ -1,8 +1,8 @@ -Index: psutil-5.7.0/psutil/tests/__init__.py +Index: psutil-5.7.2/psutil/tests/__init__.py =================================================================== ---- psutil-5.7.0.orig/psutil/tests/__init__.py -+++ psutil-5.7.0/psutil/tests/__init__.py -@@ -174,7 +174,7 @@ HAS_SENSORS_BATTERY = hasattr(psutil, "s +--- psutil-5.7.2.orig/psutil/tests/__init__.py ++++ psutil-5.7.2/psutil/tests/__init__.py +@@ -185,7 +185,7 @@ HAS_SENSORS_BATTERY = hasattr(psutil, "s try: HAS_BATTERY = HAS_SENSORS_BATTERY and bool(psutil.sensors_battery()) except Exception: @@ -11,11 +11,11 @@ Index: psutil-5.7.0/psutil/tests/__init__.py HAS_SENSORS_FANS = hasattr(psutil, "sensors_fans") HAS_SENSORS_TEMPERATURES = hasattr(psutil, "sensors_temperatures") HAS_THREADS = hasattr(psutil.Process, "threads") -Index: psutil-5.7.0/psutil/tests/test_misc.py +Index: psutil-5.7.2/psutil/tests/test_misc.py =================================================================== ---- psutil-5.7.0.orig/psutil/tests/test_misc.py -+++ psutil-5.7.0/psutil/tests/test_misc.py -@@ -684,7 +684,7 @@ class TestScripts(unittest.TestCase): +--- psutil-5.7.2.orig/psutil/tests/test_misc.py ++++ psutil-5.7.2/psutil/tests/test_misc.py +@@ -664,7 +664,7 @@ class TestScripts(PsutilTestCase): src = f.read() ast.parse(src) @@ -24,7 +24,7 @@ Index: psutil-5.7.0/psutil/tests/test_misc.py # make sure all example scripts have a test method defined meths = dir(self) for name in os.listdir(SCRIPTS_DIR): -@@ -702,7 +702,7 @@ class TestScripts(unittest.TestCase): +@@ -682,7 +682,7 @@ class TestScripts(PsutilTestCase): if not stat.S_IXUSR & os.stat(path)[stat.ST_MODE]: self.fail('%r is not executable' % path) @@ -33,7 +33,7 @@ Index: psutil-5.7.0/psutil/tests/test_misc.py self.assert_stdout('disk_usage.py') def test_free(self): -@@ -783,6 +783,8 @@ class TestScripts(unittest.TestCase): +@@ -763,6 +763,8 @@ class TestScripts(PsutilTestCase): def test_battery(self): self.assert_stdout('battery.py') @@ -42,11 +42,11 @@ Index: psutil-5.7.0/psutil/tests/test_misc.py def test_sensors(self): self.assert_stdout('sensors.py') -Index: psutil-5.7.0/psutil/tests/test_linux.py +Index: psutil-5.7.2/psutil/tests/test_linux.py =================================================================== ---- psutil-5.7.0.orig/psutil/tests/test_linux.py -+++ psutil-5.7.0/psutil/tests/test_linux.py -@@ -636,7 +636,7 @@ class TestSystemCPUCountLogical(unittest +--- psutil-5.7.2.orig/psutil/tests/test_linux.py ++++ psutil-5.7.2/psutil/tests/test_linux.py +@@ -637,7 +637,7 @@ class TestSystemCPUCountLogical(PsutilTe self.assertEqual(psutil.cpu_count(logical=True), num) @unittest.skipIf(not which("lscpu"), "lscpu utility not available") @@ -55,8 +55,8 @@ Index: psutil-5.7.0/psutil/tests/test_linux.py out = sh("lscpu -p") num = len([x for x in out.split('\n') if not x.startswith('#')]) self.assertEqual(psutil.cpu_count(logical=True), num) -@@ -679,7 +679,7 @@ class TestSystemCPUCountLogical(unittest - class TestSystemCPUCountPhysical(unittest.TestCase): +@@ -680,7 +680,7 @@ class TestSystemCPUCountLogical(PsutilTe + class TestSystemCPUCountPhysical(PsutilTestCase): @unittest.skipIf(not which("lscpu"), "lscpu utility not available") - def test_against_lscpu(self): @@ -64,7 +64,7 @@ Index: psutil-5.7.0/psutil/tests/test_linux.py out = sh("lscpu -p") core_ids = set() for line in out.split('\n'): -@@ -1008,7 +1008,7 @@ class TestSystemDiskPartitions(unittest. +@@ -1009,7 +1009,7 @@ class TestSystemDiskPartitions(PsutilTes @unittest.skipIf(not hasattr(os, 'statvfs'), "os.statvfs() not available") @skip_on_not_implemented() @@ -73,7 +73,7 @@ Index: psutil-5.7.0/psutil/tests/test_linux.py # test psutil.disk_usage() and psutil.disk_partitions() # against "df -a" def df(path): -@@ -1183,7 +1183,7 @@ class TestSystemDiskIoCounters(unittest. +@@ -1183,7 +1183,7 @@ class TestSystemDiskIoCounters(PsutilTes self.assertEqual(ret.read_count, 1) self.assertEqual(ret.write_count, 5) @@ -82,11 +82,11 @@ Index: psutil-5.7.0/psutil/tests/test_linux.py def exists(path): if path == '/proc/diskstats': return False -Index: psutil-5.7.0/psutil/tests/test_posix.py +Index: psutil-5.7.2/psutil/tests/test_posix.py =================================================================== ---- psutil-5.7.0.orig/psutil/tests/test_posix.py -+++ psutil-5.7.0/psutil/tests/test_posix.py -@@ -414,7 +414,7 @@ class TestSystemAPIs(unittest.TestCase): +--- psutil-5.7.2.orig/psutil/tests/test_posix.py ++++ psutil-5.7.2/psutil/tests/test_posix.py +@@ -371,7 +371,7 @@ class TestSystemAPIs(PsutilTestCase): # AIX can return '-' in df output instead of numbers, e.g. for /proc @unittest.skipIf(AIX, "unreliable on AIX") @@ -95,24 +95,11 @@ Index: psutil-5.7.0/psutil/tests/test_posix.py def df(device): out = sh("df -k %s" % device).strip() line = out.split('\n')[1] -Index: psutil-5.7.0/psutil/tests/test_contracts.py +Index: psutil-5.7.2/psutil/tests/test_system.py =================================================================== ---- psutil-5.7.0.orig/psutil/tests/test_contracts.py -+++ psutil-5.7.0/psutil/tests/test_contracts.py -@@ -114,7 +114,7 @@ class TestAvailSystemAPIs(unittest.TestC - def test_win_service_get(self): - self.assertEqual(hasattr(psutil, "win_service_get"), WINDOWS) - -- def test_cpu_freq(self): -+ def _test_cpu_freq(self): - linux = (LINUX and - (os.path.exists("/sys/devices/system/cpu/cpufreq") or - os.path.exists("/sys/devices/system/cpu/cpu0/cpufreq"))) -Index: psutil-5.7.0/psutil/tests/test_system.py -=================================================================== ---- psutil-5.7.0.orig/psutil/tests/test_system.py -+++ psutil-5.7.0/psutil/tests/test_system.py -@@ -604,7 +604,7 @@ class TestDiskAPIs(unittest.TestCase): +--- psutil-5.7.2.orig/psutil/tests/test_system.py ++++ psutil-5.7.2/psutil/tests/test_system.py +@@ -589,7 +589,7 @@ class TestDiskAPIs(PsutilTestCase): def test_disk_usage_bytes(self): psutil.disk_usage(b'.')