diff --git a/psutil-5.9.5.tar.gz b/psutil-5.9.5.tar.gz deleted file mode 100644 index 9fba3bb..0000000 --- a/psutil-5.9.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5410638e4df39c54d957fc51ce03048acd8e6d60abc0f5107af51e5fb566eb3c -size 493489 diff --git a/psutil-5.9.6.tar.gz b/psutil-5.9.6.tar.gz new file mode 100644 index 0000000..6b06d90 --- /dev/null +++ b/psutil-5.9.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4b92ddcd7dd4cdd3f900180ea1e104932c7bce234fb88976e2a3b296441225a +size 496866 diff --git a/python-psutil.changes b/python-psutil.changes index 946fc81..8f459b9 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Wed Nov 15 20:38:35 UTC 2023 - BenoƮt Monin + +- 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 diff --git a/python-psutil.spec b/python-psutil.spec index 73d3c00..20e53ca 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -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 diff --git a/skip_rlimit_tests_on_python2.patch b/skip_rlimit_tests_on_python2.patch index 4d79277..a0e32b1 100644 --- a/skip_rlimit_tests_on_python2.patch +++ b/skip_rlimit_tests_on_python2.patch @@ -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)