forked from pool/python-psutil
Accepting request 1126730 from home:benoit_monin:branches:devel:languages:python
- update to version 5.9.6 - refresh skip_rlimit_tests_on_python2.patch - drop removal of shebang: fixed upstream OBS-URL: https://build.opensuse.org/request/show/1126730 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=166
This commit is contained in:
parent
393ec976a9
commit
07402deeb0
BIN
psutil-5.9.5.tar.gz
(Stored with Git LFS)
BIN
psutil-5.9.5.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
psutil-5.9.6.tar.gz
Normal file
3
psutil-5.9.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e4b92ddcd7dd4cdd3f900180ea1e104932c7bce234fb88976e2a3b296441225a
|
||||
size 496866
|
@ -1,3 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 15 20:38:35 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
|
||||
|
||||
- update to version 5.9.6:
|
||||
* Enhancements
|
||||
+ 1703: cpu_percent() and cpu_times_percent() are now thread
|
||||
safe, meaning they can be called from different threads and
|
||||
still return meaningful and independent results.
|
||||
+ 2266: if Process class is passed a very high PID, raise
|
||||
NoSuchProcess instead of OverflowError. (patch by Xuehai Pan)
|
||||
+ 2246: drop python 3.4 & 3.5 support. (patch by Matthieu
|
||||
Darbois)
|
||||
+ 2290: PID reuse is now pre-emptively checked for
|
||||
Process.ppid() and Process.parents().
|
||||
+ 2312: use ruff Python linter instead of flake8 + isort. It's
|
||||
an order of magnitude faster + it adds a ton of new code
|
||||
quality checks.
|
||||
* Bug fixes
|
||||
+ 2195, [Linux]: no longer print exception at import time in
|
||||
case /proc/stat can't be read due to permission error.
|
||||
+ 2268: bytes2human() utility function was unable to properly
|
||||
represent negative values.
|
||||
+ 2284, [Linux]: Process.memory_full_info() may incorrectly
|
||||
raise ZombieProcess if it's determined via
|
||||
/proc/pid/smaps_rollup.
|
||||
+ 2288, [Linux]: correctly raise ZombieProcess on
|
||||
Process.exe(), Process.cmdline() and Process.memory_maps()
|
||||
instead of returning a "null" value.
|
||||
+ 2290: differently from what stated in the doc, PID reuse is
|
||||
not pre-emptively checked for Process.nice() (set),
|
||||
Process.ionice(), (set), Process.cpu_affinity() (set),
|
||||
Process.rlimit() (set), Process.parent().
|
||||
- refresh skip_rlimit_tests_on_python2.patch
|
||||
- drop removal of shebang: fixed upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 14:59:47 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-psutil
|
||||
Version: 5.9.5
|
||||
Version: 5.9.6
|
||||
Release: 0
|
||||
Summary: A process utilities module for Python
|
||||
License: BSD-3-Clause
|
||||
@ -63,9 +63,6 @@ A graphical interface that lets you easily analyze and introspect unaltered runn
|
||||
%setup -q -n psutil-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
# Remove shebangs
|
||||
sed -i "1s/#!.*//" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psosx.py,_psposix.py,_pssunos.py,_pswindows.py}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
psutil/tests/test_process.py | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
Index: psutil-5.9.5/psutil/tests/test_process.py
|
||||
Index: psutil-5.9.6/psutil/tests/test_process.py
|
||||
===================================================================
|
||||
--- psutil-5.9.5.orig/psutil/tests/test_process.py
|
||||
+++ psutil-5.9.5/psutil/tests/test_process.py
|
||||
--- psutil-5.9.6.orig/psutil/tests/test_process.py
|
||||
+++ psutil-5.9.6/psutil/tests/test_process.py
|
||||
@@ -419,6 +419,7 @@ class TestProcess(PsutilTestCase):
|
||||
p.ionice(init)
|
||||
|
||||
@ -46,11 +46,11 @@ Index: psutil-5.9.5/psutil/tests/test_process.py
|
||||
def test_rlimit_infinity_value(self):
|
||||
# RLIMIT_FSIZE should be RLIM_INFINITY, which will be a really
|
||||
# big number on a platform with large file support. On these
|
||||
@@ -1320,6 +1325,7 @@ class TestProcess(PsutilTestCase):
|
||||
self.assertEqual(normcase(p.exe()), normcase(PYTHON_EXE))
|
||||
@@ -1303,6 +1308,7 @@ class TestProcess(PsutilTestCase):
|
||||
assert_raises_nsp(fun, name)
|
||||
|
||||
@unittest.skipIf(not POSIX, 'POSIX only')
|
||||
+ @unittest.skipIf(sys.version_info.major == 2, "not supported on python2")
|
||||
def test_zombie_process(self):
|
||||
def succeed_or_zombie_p_exc(fun):
|
||||
try:
|
||||
parent, zombie = self.spawn_zombie()
|
||||
self.assertProcessZombie(zombie)
|
||||
|
Loading…
x
Reference in New Issue
Block a user