Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/psutil/files/, dev-python/psutil/
Date: Wed, 19 Feb 2020 07:00:27
Message-Id: 1582095223.1e0a44950d6cdf988976b777fde7ad1043088016.mgorny@gentoo
1 commit: 1e0a44950d6cdf988976b777fde7ad1043088016
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 19 06:53:43 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 06:53:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e0a4495
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 | 4 --
13 dev-python/psutil/files/psutil-5.6.5-tests.patch | 90 ------------------------
14 dev-python/psutil/psutil-5.4.8.ebuild | 32 ---------
15 dev-python/psutil/psutil-5.5.0.ebuild | 32 ---------
16 dev-python/psutil/psutil-5.6.0.ebuild | 31 --------
17 dev-python/psutil/psutil-5.6.5.ebuild | 42 -----------
18 6 files changed, 231 deletions(-)
19
20 diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest
21 index bbf5dadec5e..50a5c6357b2 100644
22 --- a/dev-python/psutil/Manifest
23 +++ b/dev-python/psutil/Manifest
24 @@ -1,6 +1,2 @@
25 -DIST psutil-5.4.8.tar.gz 422742 BLAKE2B 13c4b9b412704728c4b192032a6be78756b03a37cd6f425a81a83d0aca4ce155ebf24a1f62b75e66433f21e8bd3f2fa3c7bbb5ec2686c6dc951b89e97ebfa688 SHA512 5691e7e7ecd827aff2755a85c4c1be3a23beec3a1dbff079547991dcfffa8e075cff7fb6983e1f6fa287e2216e3b1466618730afaf114a0ee209d7b70d7b0c6a
26 -DIST psutil-5.5.0.tar.gz 425058 BLAKE2B 0a13149b060d1a99faa600470fdbd592ee520b247f916313bef428feaa652bc4e9152f09ceeea5378769d4cdcd9876ccdc96dc4378d74136bcbcadf4a9266b90 SHA512 e614d41162087e236779738b50ec9e83403082f20492e152605fe80da23a11a4bd667db82a234f00815f68139d53b19368c2118ab27d52144341c2250091c570
27 -DIST psutil-5.6.0.tar.gz 426596 BLAKE2B 803cb09262575a7193ecc9cf9bfbbf721e10ef4adc25672f6747111306d1803c1422c9894636421653eaae11c241100f58837c80173ab473bb9dc39da2580aed SHA512 01daf80698954a53a9e987afad6c7aefad502c76b5f34601728c3864c924ca52099f139242e508fd4c72378cbe436c9870eca7a33c112fb8dead0be501aaf2aa
28 -DIST psutil-5.6.5.tar.gz 447489 BLAKE2B 9301d1580bded927b4b117facf82a3c6be9b43cb648f0f52b841dc2c59cbcc58b5a5c3e0ea7cee30a546e1ea1c00fc0e03b3b49fa69209bbfd3c873e18510859 SHA512 037b1501b686b7101be4180c8698b09d20d4260962a88f0c437ff558d91c405f56eae186c9d55c1893c612c4534093ab26e6943f0ed56db69e343c5c0317be1b
29 DIST psutil-5.6.7.tar.gz 448321 BLAKE2B 4e47fb7def5a0eed162686d4e90dd122bd380eca50c3294cd89ed154e27f71972dbc2b3b481456d5022107a1adad2a637e8f233002d429463232c38a04a957c7 SHA512 74eb488b91764941e38214f07bca00e3c837167ad543bfd9ae3b83d665e2be1bb5341eca4aff9282ad50d321568a679e1ffa2ee72ad7b4965cda92b7c80b2503
30 DIST psutil-5.7.0.tar.gz 449628 BLAKE2B 3bd07a0a2f95a539910fa1cef92e72d168c3ee7a495c0defd3fad307d96448d81182b7ccc5e4388d6726495a18df26b076e27b3cbf57096a5c3c8326c00f2dea SHA512 8cee64ab396dae79866e961aeabdb9a4174e1339bcd5c0a35f23fee97ca2a61c0cb08f7152d7e0db90c387400c5c6fb3da2dd2124ce9bf97dfffe6f3b4967981
31
32 diff --git a/dev-python/psutil/files/psutil-5.6.5-tests.patch b/dev-python/psutil/files/psutil-5.6.5-tests.patch
33 deleted file mode 100644
34 index ab06ffd069b..00000000000
35 --- a/dev-python/psutil/files/psutil-5.6.5-tests.patch
36 +++ /dev/null
37 @@ -1,90 +0,0 @@
38 -diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
39 -index 80fbf8bf..13c195b8 100644
40 ---- a/psutil/_pslinux.py
41 -+++ b/psutil/_pslinux.py
42 -@@ -1108,7 +1108,7 @@ def disk_io_counters(perdisk=False):
43 - fields = f.read().strip().split()
44 - name = os.path.basename(root)
45 - (reads, reads_merged, rbytes, rtime, writes, writes_merged,
46 -- wbytes, wtime, _, busy_time, _) = map(int, fields)
47 -+ wbytes, wtime, _, busy_time, _) = map(int, fields[:11])
48 - yield (name, reads, writes, rbytes, wbytes, rtime,
49 - wtime, reads_merged, writes_merged, busy_time)
50 -
51 -diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
52 -index cb4a2b96..1ff7f6ca 100755
53 ---- a/psutil/tests/test_contracts.py
54 -+++ b/psutil/tests/test_contracts.py
55 -@@ -174,6 +174,7 @@ class TestAvailability(unittest.TestCase):
56 -
57 - class TestDeprecations(unittest.TestCase):
58 -
59 -+ @unittest.skip("broken with newer deps")
60 - def test_memory_info_ex(self):
61 - with warnings.catch_warnings(record=True) as ws:
62 - psutil.Process().memory_info_ex()
63 -diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
64 -index ccde735d..db7183af 100755
65 ---- a/psutil/tests/test_linux.py
66 -+++ b/psutil/tests/test_linux.py
67 -@@ -380,9 +380,10 @@ class TestSystemVirtualMemory(unittest.TestCase):
68 - ret = psutil.virtual_memory()
69 - assert m.called
70 - self.assertEqual(ret.available, 2057400 * 1024 + 4818144 * 1024)
71 -- w = ws[0]
72 -- self.assertIn(
73 -- "inactive memory stats couldn't be determined", str(w.message))
74 -+ # i have no idea what they are trying to do here
75 -+ #w = ws[0]
76 -+ #self.assertIn(
77 -+ # "inactive memory stats couldn't be determined", str(w.message))
78 -
79 - def test_avail_old_missing_zoneinfo(self):
80 - # Remove /proc/zoneinfo file. Make sure fallback is used
81 -@@ -410,10 +411,12 @@ class TestSystemVirtualMemory(unittest.TestCase):
82 - ret = psutil.virtual_memory()
83 - self.assertEqual(
84 - ret.available, 2057400 * 1024 + 4818144 * 1024)
85 -- w = ws[0]
86 -- self.assertIn(
87 -- "inactive memory stats couldn't be determined",
88 -- str(w.message))
89 -+
90 -+ # i have no idea what they are trying to do here
91 -+ #w = ws[0]
92 -+ #self.assertIn(
93 -+ # "inactive memory stats couldn't be determined",
94 -+ # str(w.message))
95 -
96 - def test_virtual_memory_mocked(self):
97 - # Emulate /proc/meminfo because neither vmstat nor free return slab.
98 -@@ -878,7 +881,7 @@ class TestLoadAvg(unittest.TestCase):
99 - # =====================================================================
100 -
101 -
102 --@××××××××.skipIf(not LINUX, "LINUX only")
103 -+@××××××××.skipIf(not LINUX or True, "Not working with latest ipaddress")
104 - class TestSystemNetIfAddrs(unittest.TestCase):
105 -
106 - def test_ips(self):
107 -diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
108 -index 24a29b5a..9d9d36d2 100755
109 ---- a/psutil/tests/test_process.py
110 -+++ b/psutil/tests/test_process.py
111 -@@ -950,7 +950,7 @@ class TestProcess(unittest.TestCase):
112 -
113 - for combo in combos:
114 - p.cpu_affinity(combo)
115 -- self.assertEqual(p.cpu_affinity(), combo)
116 -+ self.assertEqual(set(p.cpu_affinity()), set(combo))
117 -
118 - # TODO: #595
119 - @unittest.skipIf(BSD, "broken on BSD")
120 -@@ -1486,6 +1486,7 @@ class TestProcess(unittest.TestCase):
121 - d2 = clean_dict(os.environ.copy())
122 - self.assertEqual(d1, d2)
123 -
124 -+ @unittest.skipIf(TRAVIS, "broken under sandbox, using TRAVIS for Gentoo")
125 - @unittest.skipIf(not HAS_ENVIRON, "not supported")
126 - @unittest.skipIf(not POSIX, "POSIX only")
127 - def test_weird_environ(self):
128
129 diff --git a/dev-python/psutil/psutil-5.4.8.ebuild b/dev-python/psutil/psutil-5.4.8.ebuild
130 deleted file mode 100644
131 index 02ce4a8970a..00000000000
132 --- a/dev-python/psutil/psutil-5.4.8.ebuild
133 +++ /dev/null
134 @@ -1,32 +0,0 @@
135 -# Copyright 1999-2020 Gentoo Authors
136 -# Distributed under the terms of the GNU General Public License v2
137 -
138 -EAPI=7
139 -
140 -PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
141 -
142 -inherit distutils-r1
143 -
144 -DESCRIPTION="Retrieve information on running processes and system utilization"
145 -HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
146 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
147 -
148 -LICENSE="BSD"
149 -SLOT="0"
150 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
151 -IUSE="test"
152 -
153 -DEPEND="
154 - dev-python/setuptools[${PYTHON_USEDEP}]
155 - test? (
156 - dev-python/mock[${PYTHON_USEDEP}]
157 - dev-python/ipaddress[${PYTHON_USEDEP}]
158 - )
159 -"
160 -
161 -# Many tests fail, even on a regular tox run on a upstream clone
162 -RESTRICT="test"
163 -
164 -python_test() {
165 - ${PYTHON} psutil/tests/__main__.py || die
166 -}
167
168 diff --git a/dev-python/psutil/psutil-5.5.0.ebuild b/dev-python/psutil/psutil-5.5.0.ebuild
169 deleted file mode 100644
170 index 98afea2f806..00000000000
171 --- a/dev-python/psutil/psutil-5.5.0.ebuild
172 +++ /dev/null
173 @@ -1,32 +0,0 @@
174 -# Copyright 1999-2020 Gentoo Authors
175 -# Distributed under the terms of the GNU General Public License v2
176 -
177 -EAPI=7
178 -
179 -PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
180 -
181 -inherit distutils-r1
182 -
183 -DESCRIPTION="Retrieve information on running processes and system utilization"
184 -HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
185 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
186 -
187 -LICENSE="BSD"
188 -SLOT="0"
189 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
190 -IUSE="test"
191 -
192 -DEPEND="
193 - dev-python/setuptools[${PYTHON_USEDEP}]
194 - test? (
195 - dev-python/mock[${PYTHON_USEDEP}]
196 - dev-python/ipaddress[${PYTHON_USEDEP}]
197 - )
198 -"
199 -
200 -# Many tests fail, even on a regular tox run on a upstream clone
201 -RESTRICT="test"
202 -
203 -python_test() {
204 - ${PYTHON} psutil/tests/__main__.py || die
205 -}
206
207 diff --git a/dev-python/psutil/psutil-5.6.0.ebuild b/dev-python/psutil/psutil-5.6.0.ebuild
208 deleted file mode 100644
209 index 205a8af9975..00000000000
210 --- a/dev-python/psutil/psutil-5.6.0.ebuild
211 +++ /dev/null
212 @@ -1,31 +0,0 @@
213 -# Copyright 1999-2020 Gentoo Authors
214 -# Distributed under the terms of the GNU General Public License v2
215 -
216 -EAPI=7
217 -PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
218 -
219 -inherit distutils-r1
220 -
221 -DESCRIPTION="Retrieve information on running processes and system utilization"
222 -HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
223 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
224 -
225 -LICENSE="BSD"
226 -SLOT="0"
227 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
228 -IUSE="test"
229 -
230 -DEPEND="
231 - dev-python/setuptools[${PYTHON_USEDEP}]
232 - test? (
233 - dev-python/mock[${PYTHON_USEDEP}]
234 - dev-python/ipaddress[${PYTHON_USEDEP}]
235 - )
236 -"
237 -
238 -# Many tests fail, even on a regular tox run on a upstream clone
239 -RESTRICT="test"
240 -
241 -python_test() {
242 - ${PYTHON} psutil/tests/__main__.py || die
243 -}
244
245 diff --git a/dev-python/psutil/psutil-5.6.5.ebuild b/dev-python/psutil/psutil-5.6.5.ebuild
246 deleted file mode 100644
247 index c33d3e6edda..00000000000
248 --- a/dev-python/psutil/psutil-5.6.5.ebuild
249 +++ /dev/null
250 @@ -1,42 +0,0 @@
251 -# Copyright 1999-2020 Gentoo Authors
252 -# Distributed under the terms of the GNU General Public License v2
253 -
254 -EAPI=7
255 -PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
256 -
257 -inherit distutils-r1
258 -
259 -DESCRIPTION="Retrieve information on running processes and system utilization"
260 -HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
261 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
262 -
263 -LICENSE="BSD"
264 -SLOT="0"
265 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
266 -IUSE="test"
267 -
268 -DEPEND="
269 - dev-python/setuptools[${PYTHON_USEDEP}]
270 - test? (
271 - dev-python/mock[${PYTHON_USEDEP}]
272 - dev-python/ipaddress[${PYTHON_USEDEP}]
273 - )
274 -"
275 -
276 -RESTRICT="!test? ( test )"
277 -
278 -PATCHES=(
279 - "${FILESDIR}/psutil-5.6.5-tests.patch"
280 -)
281 -
282 -python_test() {
283 - if [[ ${EPYTHON} == pypy* ]]; then
284 - ewarn "Not running tests on ${EPYTHON} since they are broken"
285 - return 0
286 - fi
287 -
288 - # since we are running in an environment a bit similar to CI,
289 - # let's skip the tests that are disable for CI
290 - TRAVIS=1 APPVEYOR=1 PYTHONPATH="${BUILD_DIR}/lib" ${PYTHON} psutil/tests/__main__.py || \
291 - die "tests failed with ${EPYTHON}"
292 -}