1 |
commit: 1a22d0a9c57689f96eef49fed4adc7de636573e5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 15:46:53 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 16:43:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a22d0a9 |
7 |
|
8 |
dev-python/psutil: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/psutil/Manifest | 1 - |
13 |
dev-python/psutil/files/psutil-5.7.2-tests.patch | 112 ----------------------- |
14 |
dev-python/psutil/psutil-5.7.3.ebuild | 39 -------- |
15 |
3 files changed, 152 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest |
18 |
index a8eb6c71de71..558b4186bfca 100644 |
19 |
--- a/dev-python/psutil/Manifest |
20 |
+++ b/dev-python/psutil/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST psutil-5.7.3.tar.gz 465556 BLAKE2B 6a9f31fcba571f381c1f4c904a9ff65659d13ed64e91df478aa7df4dabb87a35c4fbd9c0491a3d10b9eaf0fdcc8f2407fcf7144e729043eda605dfe6e6f93844 SHA512 8fcff56dd4e4c1b877c09023721e6f562424f7f84ae5304d518976a1e7f21dd026772f1abfc063bdd0857a375bc869f42febde090dc0b65918d1ebf44e3ad71d |
23 |
DIST psutil-5.9.0.tar.gz 478322 BLAKE2B 763c8ae14ae546bed64a360047d2ce38783e9e7e939160f751c4ccc94b8e023aaa4cdca426f584e05dae8b1326333660e216d7cb3edd820e24a931dddfa5160f SHA512 b521cfce51e90fdf87ba19bf8069877e3210aede92c17460ea0b00324a36e133168e4bff550462d07ab6d93c597c6560d68954340031ff43168d54a8e5d4c4e7 |
24 |
|
25 |
diff --git a/dev-python/psutil/files/psutil-5.7.2-tests.patch b/dev-python/psutil/files/psutil-5.7.2-tests.patch |
26 |
deleted file mode 100644 |
27 |
index 3faaedad6661..000000000000 |
28 |
--- a/dev-python/psutil/files/psutil-5.7.2-tests.patch |
29 |
+++ /dev/null |
30 |
@@ -1,112 +0,0 @@ |
31 |
-From e910d08976e00bc12b5a516daa9e6a6d42d48354 Mon Sep 17 00:00:00 2001 |
32 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
33 |
-Date: Wed, 19 Feb 2020 07:27:32 +0100 |
34 |
-Subject: [PATCH] Skip broken tests on Gentoo |
35 |
- |
36 |
---- |
37 |
- psutil/tests/test_linux.py | 8 ++++++++ |
38 |
- psutil/tests/test_posix.py | 1 + |
39 |
- psutil/tests/test_process.py | 2 ++ |
40 |
- psutil/tests/test_system.py | 1 + |
41 |
- 4 files changed, 12 insertions(+) |
42 |
- |
43 |
-diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py |
44 |
-index e51f8bd5..48527ccb 100755 |
45 |
---- a/psutil/tests/test_linux.py |
46 |
-+++ b/psutil/tests/test_linux.py |
47 |
-@@ -17,5 +17,6 @@ import re |
48 |
- import shutil |
49 |
- import socket |
50 |
- import struct |
51 |
-+import sys |
52 |
- import textwrap |
53 |
- import time |
54 |
-@@ -381,6 +382,8 @@ class TestSystemVirtualMemory(unittest.TestCase): |
55 |
- ret = psutil.virtual_memory() |
56 |
- assert m.called |
57 |
- self.assertEqual(ret.available, 2057400 * 1024 + 4818144 * 1024) |
58 |
-+ if sys.version_info < (3,): |
59 |
-+ return |
60 |
- w = ws[0] |
61 |
- self.assertIn( |
62 |
- "inactive memory stats couldn't be determined", str(w.message)) |
63 |
-@@ -411,6 +414,8 @@ class TestSystemVirtualMemory(unittest.TestCase): |
64 |
- ret = psutil.virtual_memory() |
65 |
- self.assertEqual( |
66 |
- ret.available, 2057400 * 1024 + 4818144 * 1024) |
67 |
-+ if sys.version_info < (3,): |
68 |
-+ return |
69 |
- w = ws[0] |
70 |
- self.assertIn( |
71 |
- "inactive memory stats couldn't be determined", |
72 |
-@@ -882,6 +887,7 @@ class TestLoadAvg(unittest.TestCase): |
73 |
- @unittest.skipIf(not LINUX, "LINUX only") |
74 |
- class TestSystemNetIfAddrs(unittest.TestCase): |
75 |
- |
76 |
-+ @unittest.skip("broken on Gentoo") |
77 |
- def test_ips(self): |
78 |
- for name, addrs in psutil.net_if_addrs().items(): |
79 |
- for addr in addrs: |
80 |
-@@ -1364,7 +1370,8 @@ class TestMisc(unittest.TestCase): |
81 |
- psutil.PROCFS_PATH = "/proc" |
82 |
- os.rmdir(tdir) |
83 |
- |
84 |
- @retry_on_failure() |
85 |
-+ @unittest.skip("broken on Gentoo") |
86 |
- def test_issue_687(self): |
87 |
- # In case of thread ID: |
88 |
- # - pid_exists() is supposed to return False |
89 |
-@@ -2073,6 +2080,7 @@ class TestProcessAgainstStatus(unittest.TestCase): |
90 |
- value = self.read_status_file("nonvoluntary_ctxt_switches:") |
91 |
- self.assertEqual(self.proc.num_ctx_switches().involuntary, value) |
92 |
- |
93 |
-+ @unittest.skip("broken on Gentoo") |
94 |
- def test_cpu_affinity(self): |
95 |
- value = self.read_status_file("Cpus_allowed_list:") |
96 |
- if '-' in str(value): |
97 |
-diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py |
98 |
-index a96b310f..70199203 100755 |
99 |
---- a/psutil/tests/test_posix.py |
100 |
-+++ b/psutil/tests/test_posix.py |
101 |
-@@ -364,6 +364,7 @@ class TestSystemAPIs(unittest.TestCase): |
102 |
- "couldn't find %s nic in 'ifconfig -a' output\n%s" % ( |
103 |
- nic, output)) |
104 |
- |
105 |
-+ @unittest.skip("broken on Gentoo") |
106 |
- @unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI") |
107 |
- @retry_on_failure() |
108 |
- def test_users(self): |
109 |
-diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py |
110 |
-index 987bdf38..cb04f3ef 100755 |
111 |
---- a/psutil/tests/test_process.py |
112 |
-+++ b/psutil/tests/test_process.py |
113 |
-@@ -350,6 +350,7 @@ class TestProcess(unittest.TestCase): |
114 |
- self.assertGreaterEqual(io2[i], 0) |
115 |
- self.assertGreaterEqual(io2[i], 0) |
116 |
- |
117 |
-+ @unittest.skip("fails if builder is ioniced already") |
118 |
- @unittest.skipIf(not HAS_IONICE, "not supported") |
119 |
- @unittest.skipIf(not LINUX, "linux only") |
120 |
- def test_ionice_linux(self): |
121 |
-@@ -1495,6 +1496,7 @@ class TestProcess(unittest.TestCase): |
122 |
- d2 = clean_dict(os.environ.copy()) |
123 |
- self.assertEqual(d1, d2) |
124 |
- |
125 |
-+ @unittest.skip("broken by sandbox") |
126 |
- @unittest.skipIf(not HAS_ENVIRON, "not supported") |
127 |
- @unittest.skipIf(not POSIX, "POSIX only") |
128 |
- def test_weird_environ(self): |
129 |
-diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py |
130 |
-index 3834209f..b07b5883 100755 |
131 |
---- a/psutil/tests/test_system.py |
132 |
-+++ b/psutil/tests/test_system.py |
133 |
-@@ -215,6 +215,7 @@ class TestMiscAPIs(unittest.TestCase): |
134 |
- self.assertGreater(bt, 0) |
135 |
- self.assertLess(bt, time.time()) |
136 |
- |
137 |
-+ @unittest.skip("broken on Gentoo") |
138 |
- @unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI") |
139 |
- def test_users(self): |
140 |
- users = psutil.users() |
141 |
--- |
142 |
-2.25.1 |
143 |
|
144 |
diff --git a/dev-python/psutil/psutil-5.7.3.ebuild b/dev-python/psutil/psutil-5.7.3.ebuild |
145 |
deleted file mode 100644 |
146 |
index ddf8240254b4..000000000000 |
147 |
--- a/dev-python/psutil/psutil-5.7.3.ebuild |
148 |
+++ /dev/null |
149 |
@@ -1,39 +0,0 @@ |
150 |
-# Copyright 1999-2021 Gentoo Authors |
151 |
-# Distributed under the terms of the GNU General Public License v2 |
152 |
- |
153 |
-EAPI=7 |
154 |
-PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
155 |
- |
156 |
-inherit distutils-r1 |
157 |
- |
158 |
-DESCRIPTION="Retrieve information on running processes and system utilization" |
159 |
-HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/" |
160 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
161 |
- |
162 |
-LICENSE="BSD" |
163 |
-SLOT="0" |
164 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
165 |
-IUSE="test" |
166 |
-RESTRICT="!test? ( test )" |
167 |
- |
168 |
-PATCHES=( |
169 |
- "${FILESDIR}/psutil-5.7.2-tests.patch" |
170 |
-) |
171 |
- |
172 |
-python_test() { |
173 |
- if [[ ${EPYTHON} == pypy* ]]; then |
174 |
- ewarn "Not running tests on ${EPYTHON} since they are broken" |
175 |
- return 0 |
176 |
- fi |
177 |
- |
178 |
- # since we are running in an environment a bit similar to CI, |
179 |
- # let's skip the tests that are disable for CI |
180 |
- TRAVIS=1 APPVEYOR=1 "${EPYTHON}" psutil/tests/runner.py || |
181 |
- die "tests failed with ${EPYTHON}" |
182 |
-} |
183 |
- |
184 |
-python_compile() { |
185 |
- # force -j1 to avoid .o linking race conditions |
186 |
- local MAKEOPTS=-j1 |
187 |
- distutils-r1_python_compile |
188 |
-} |