From 3fe6537bd94a1dfc5da01e5f644cdf55bb2311f176292606664c4c22b7af891e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 24 May 2022 19:14:34 +0000 Subject: [PATCH] Accepting request 979027 from home:stroeder:python update to 5.9.1 OBS-URL: https://build.opensuse.org/request/show/979027 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=140 --- psutil-5.9.0.tar.gz | 3 --- psutil-5.9.1.tar.gz | 3 +++ python-psutil.changes | 17 +++++++++++++++++ python-psutil.spec | 4 +--- skip-partitions-erros.patch | 33 --------------------------------- 5 files changed, 21 insertions(+), 39 deletions(-) delete mode 100644 psutil-5.9.0.tar.gz create mode 100644 psutil-5.9.1.tar.gz delete mode 100644 skip-partitions-erros.patch diff --git a/psutil-5.9.0.tar.gz b/psutil-5.9.0.tar.gz deleted file mode 100644 index aa3c3bc..0000000 --- a/psutil-5.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25 -size 478322 diff --git a/psutil-5.9.1.tar.gz b/psutil-5.9.1.tar.gz new file mode 100644 index 0000000..4eb5803 --- /dev/null +++ b/psutil-5.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57f1819b5d9e95cdfb0c881a8a5b7d542ed0b7c522d575706a80bedc848c8954 +size 479090 diff --git a/python-psutil.changes b/python-psutil.changes index fd3b89f..d9b52a3 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Tue May 24 17:53:52 UTC 2022 - Michael Ströder + +- removed obsolete skip-partitions-erros.patch +- update to 5.9.1 + * Enhancements + - 1053: drop Python 2.6 support. (patches by Matthieu Darbois and Hugo van Kemenade) + - 2050, [Linux]: increase read(2) buffer size from 1k to 32k when reading /proc + pseudo files line by line. This should help having more consistent results. + - 2057, [OpenBSD]: add support for cpu_freq(). + - 2107, [Linux]: Process.memory_full_info() (reporting process USS/PSS/Swap memory) + now reads /proc/pid/smaps_rollup instead of /proc/pids/smaps, which makes it 5 times faster. + * Bug fixes + - 2048: AttributeError is raised if psutil.Error class is raised manually and passed through str. + - 2049, [Linux]: cpu_freq() erroneously returns curr value in GHz while min and max are in MHz. + - 2050, [Linux]: virtual_memory() may raise ValueError if running in a LCX container. + ------------------------------------------------------------------- Wed Feb 2 17:30:32 UTC 2022 - Matej Cepl diff --git a/python-psutil.spec b/python-psutil.spec index be6bef3..a767ef7 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -24,7 +24,7 @@ %endif %bcond_without python2 Name: python-psutil -Version: 5.9.0 +Version: 5.9.1 Release: 0 Summary: A process utilities module for Python License: BSD-3-Clause @@ -36,8 +36,6 @@ Patch1: skip-obs.patch Patch2: skip_failing_tests.patch # PATCH-FIX-SLE skip_rlimit_tests_on_python2.patch alarrosa@suse.com Patch3: skip_rlimit_tests_on_python2.patch -# PATCH-FIX-UPSTREAM skip-partitions-erros.patch gh#giampaolo/psutil#2043 mcepl@suse.com -Patch4: skip-partitions-erros.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes diff --git a/skip-partitions-erros.patch b/skip-partitions-erros.patch deleted file mode 100644 index a9e6f26..0000000 --- a/skip-partitions-erros.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- - psutil/tests/test_linux.py | 2 ++ - psutil/tests/test_misc.py | 1 + - 2 files changed, 3 insertions(+) - ---- a/psutil/tests/test_linux.py -+++ b/psutil/tests/test_linux.py -@@ -1288,6 +1288,7 @@ class TestRootFsDeviceFinder(PsutilTestC - self.assertRaises(FileNotFoundError, finder.ask_sys_dev_block) - finder.ask_sys_class_block() - -+ @unittest.skip("Test doesn't work on Linux.") - @unittest.skipIf(GITHUB_ACTIONS, "unsupported on GITHUB_ACTIONS") - def test_comparisons(self): - finder = RootFsDeviceFinder() -@@ -1316,6 +1317,7 @@ class TestRootFsDeviceFinder(PsutilTestC - findmnt_value = sh("findmnt -o SOURCE -rn /") - self.assertEqual(psutil_value, findmnt_value) - -+ @unittest.skip("Test doesn't work on Linux.") - def test_disk_partitions_mocked(self): - with mock.patch( - 'psutil._pslinux.cext.disk_partitions', ---- a/psutil/tests/test_misc.py -+++ b/psutil/tests/test_misc.py -@@ -402,6 +402,7 @@ class TestMisc(PsutilTestCase): - reload_module(psutil) - self.assertIn("version conflict", str(cm.exception).lower()) - -+ @unittest.skip("Test doesn't work on Linux.") - def test_debug(self): - if PY3: - from io import StringIO