- 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) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=120
This commit is contained in:
parent
4aede2163f
commit
a1c9fdbbfa
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:685ec16ca14d079455892f25bd124df26ff9137664af445563c1bd36629b5e0e
|
|
||||||
size 449628
|
|
3
psutil-5.7.2.tar.gz
Normal file
3
psutil-5.7.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:90990af1c3c67195c44c9a889184f84f5b2320dce3ee3acbd054e3ba0b4a7beb
|
||||||
|
size 460198
|
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 16 21:09:55 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <mcepl@suse.com>
|
Fri Aug 21 15:27:11 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -24,13 +24,12 @@
|
|||||||
%endif
|
%endif
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
Name: python-psutil
|
Name: python-psutil
|
||||||
Version: 5.7.0
|
Version: 5.7.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A process utilities module for Python
|
Summary: A process utilities module for Python
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/giampaolo/psutil
|
URL: https://github.com/giampaolo/psutil
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{version}.tar.gz
|
||||||
Patch0: skip-flaky-i586.patch
|
|
||||||
Patch1: skip-obs.patch
|
Patch1: skip-obs.patch
|
||||||
# PATCH-FIX-UPSTREAM skip_failing_tests.patch gh#giampaolo/psutil#1635 mcepl@suse.com
|
# 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
|
# skip tests failing because of incomplete emulation of the environment in osc build
|
||||||
|
@ -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 = []
|
|
@ -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.2.orig/psutil/tests/__init__.py
|
||||||
+++ psutil-5.7.0/psutil/tests/__init__.py
|
+++ psutil-5.7.2/psutil/tests/__init__.py
|
||||||
@@ -174,7 +174,7 @@ HAS_SENSORS_BATTERY = hasattr(psutil, "s
|
@@ -185,7 +185,7 @@ HAS_SENSORS_BATTERY = hasattr(psutil, "s
|
||||||
try:
|
try:
|
||||||
HAS_BATTERY = HAS_SENSORS_BATTERY and bool(psutil.sensors_battery())
|
HAS_BATTERY = HAS_SENSORS_BATTERY and bool(psutil.sensors_battery())
|
||||||
except Exception:
|
except Exception:
|
||||||
@ -11,11 +11,11 @@ Index: psutil-5.7.0/psutil/tests/__init__.py
|
|||||||
HAS_SENSORS_FANS = hasattr(psutil, "sensors_fans")
|
HAS_SENSORS_FANS = hasattr(psutil, "sensors_fans")
|
||||||
HAS_SENSORS_TEMPERATURES = hasattr(psutil, "sensors_temperatures")
|
HAS_SENSORS_TEMPERATURES = hasattr(psutil, "sensors_temperatures")
|
||||||
HAS_THREADS = hasattr(psutil.Process, "threads")
|
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.2.orig/psutil/tests/test_misc.py
|
||||||
+++ psutil-5.7.0/psutil/tests/test_misc.py
|
+++ psutil-5.7.2/psutil/tests/test_misc.py
|
||||||
@@ -684,7 +684,7 @@ class TestScripts(unittest.TestCase):
|
@@ -664,7 +664,7 @@ class TestScripts(PsutilTestCase):
|
||||||
src = f.read()
|
src = f.read()
|
||||||
ast.parse(src)
|
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
|
# make sure all example scripts have a test method defined
|
||||||
meths = dir(self)
|
meths = dir(self)
|
||||||
for name in os.listdir(SCRIPTS_DIR):
|
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]:
|
if not stat.S_IXUSR & os.stat(path)[stat.ST_MODE]:
|
||||||
self.fail('%r is not executable' % path)
|
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')
|
self.assert_stdout('disk_usage.py')
|
||||||
|
|
||||||
def test_free(self):
|
def test_free(self):
|
||||||
@@ -783,6 +783,8 @@ class TestScripts(unittest.TestCase):
|
@@ -763,6 +763,8 @@ class TestScripts(PsutilTestCase):
|
||||||
def test_battery(self):
|
def test_battery(self):
|
||||||
self.assert_stdout('battery.py')
|
self.assert_stdout('battery.py')
|
||||||
|
|
||||||
@ -42,11 +42,11 @@ Index: psutil-5.7.0/psutil/tests/test_misc.py
|
|||||||
def test_sensors(self):
|
def test_sensors(self):
|
||||||
self.assert_stdout('sensors.py')
|
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.2.orig/psutil/tests/test_linux.py
|
||||||
+++ psutil-5.7.0/psutil/tests/test_linux.py
|
+++ psutil-5.7.2/psutil/tests/test_linux.py
|
||||||
@@ -636,7 +636,7 @@ class TestSystemCPUCountLogical(unittest
|
@@ -637,7 +637,7 @@ class TestSystemCPUCountLogical(PsutilTe
|
||||||
self.assertEqual(psutil.cpu_count(logical=True), num)
|
self.assertEqual(psutil.cpu_count(logical=True), num)
|
||||||
|
|
||||||
@unittest.skipIf(not which("lscpu"), "lscpu utility not available")
|
@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")
|
out = sh("lscpu -p")
|
||||||
num = len([x for x in out.split('\n') if not x.startswith('#')])
|
num = len([x for x in out.split('\n') if not x.startswith('#')])
|
||||||
self.assertEqual(psutil.cpu_count(logical=True), num)
|
self.assertEqual(psutil.cpu_count(logical=True), num)
|
||||||
@@ -679,7 +679,7 @@ class TestSystemCPUCountLogical(unittest
|
@@ -680,7 +680,7 @@ class TestSystemCPUCountLogical(PsutilTe
|
||||||
class TestSystemCPUCountPhysical(unittest.TestCase):
|
class TestSystemCPUCountPhysical(PsutilTestCase):
|
||||||
|
|
||||||
@unittest.skipIf(not which("lscpu"), "lscpu utility not available")
|
@unittest.skipIf(not which("lscpu"), "lscpu utility not available")
|
||||||
- def test_against_lscpu(self):
|
- def test_against_lscpu(self):
|
||||||
@ -64,7 +64,7 @@ Index: psutil-5.7.0/psutil/tests/test_linux.py
|
|||||||
out = sh("lscpu -p")
|
out = sh("lscpu -p")
|
||||||
core_ids = set()
|
core_ids = set()
|
||||||
for line in out.split('\n'):
|
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")
|
@unittest.skipIf(not hasattr(os, 'statvfs'), "os.statvfs() not available")
|
||||||
@skip_on_not_implemented()
|
@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()
|
# test psutil.disk_usage() and psutil.disk_partitions()
|
||||||
# against "df -a"
|
# against "df -a"
|
||||||
def df(path):
|
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.read_count, 1)
|
||||||
self.assertEqual(ret.write_count, 5)
|
self.assertEqual(ret.write_count, 5)
|
||||||
|
|
||||||
@ -82,11 +82,11 @@ Index: psutil-5.7.0/psutil/tests/test_linux.py
|
|||||||
def exists(path):
|
def exists(path):
|
||||||
if path == '/proc/diskstats':
|
if path == '/proc/diskstats':
|
||||||
return False
|
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.2.orig/psutil/tests/test_posix.py
|
||||||
+++ psutil-5.7.0/psutil/tests/test_posix.py
|
+++ psutil-5.7.2/psutil/tests/test_posix.py
|
||||||
@@ -414,7 +414,7 @@ class TestSystemAPIs(unittest.TestCase):
|
@@ -371,7 +371,7 @@ class TestSystemAPIs(PsutilTestCase):
|
||||||
|
|
||||||
# AIX can return '-' in df output instead of numbers, e.g. for /proc
|
# AIX can return '-' in df output instead of numbers, e.g. for /proc
|
||||||
@unittest.skipIf(AIX, "unreliable on AIX")
|
@unittest.skipIf(AIX, "unreliable on AIX")
|
||||||
@ -95,24 +95,11 @@ Index: psutil-5.7.0/psutil/tests/test_posix.py
|
|||||||
def df(device):
|
def df(device):
|
||||||
out = sh("df -k %s" % device).strip()
|
out = sh("df -k %s" % device).strip()
|
||||||
line = out.split('\n')[1]
|
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.2.orig/psutil/tests/test_system.py
|
||||||
+++ psutil-5.7.0/psutil/tests/test_contracts.py
|
+++ psutil-5.7.2/psutil/tests/test_system.py
|
||||||
@@ -114,7 +114,7 @@ class TestAvailSystemAPIs(unittest.TestC
|
@@ -589,7 +589,7 @@ class TestDiskAPIs(PsutilTestCase):
|
||||||
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):
|
|
||||||
def test_disk_usage_bytes(self):
|
def test_disk_usage_bytes(self):
|
||||||
psutil.disk_usage(b'.')
|
psutil.disk_usage(b'.')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user