Accepting request 979035 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/979035
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psutil?expand=0&rev=65
This commit is contained in:
Dominique Leuenberger 2022-05-26 16:43:43 +00:00 committed by Git OBS Bridge
commit f51ffcac4e
5 changed files with 21 additions and 39 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25
size 478322

3
psutil-5.9.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57f1819b5d9e95cdfb0c881a8a5b7d542ed0b7c522d575706a80bedc848c8954
size 479090

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue May 24 17:53:52 UTC 2022 - Michael Ströder <michael@stroeder.com>
- 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 <mcepl@suse.com>

View File

@ -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

View File

@ -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