commit:     7f0e72650a199b1f30c1c772025b67039905b42b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 19 13:10:28 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 13:14:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f0e7265

dev-python/psutil: Bump to 6.0.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/psutil/Manifest            |  2 ++
 dev-python/psutil/psutil-6.0.0.ebuild | 47 +++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest
index d9b502ad1d8e..f53a8a83b5fb 100644
--- a/dev-python/psutil/Manifest
+++ b/dev-python/psutil/Manifest
@@ -1,2 +1,4 @@
 DIST psutil-5.9.8-tests.patch.xz 3716 BLAKE2B 
cf33173a0d5c6537b0de1c4858beb9ec59c0361c6249f8a5cb3d55edc025578ddc0285a062083d28fcd4ece223728376dd64e9232aed1d761786b772a4cc7778
 SHA512 
5c9539a9716e25dc3cc5f2ce4373911a6c4524941838aff7aa08cc482d15aba6ec40b7904593723a785284410bcded2595c78a6c186d8af5b5f664c2d77e9220
 DIST psutil-5.9.8.tar.gz 503247 BLAKE2B 
192812d9006b9eb1a856ff8d322e6cfb320462e5dc5ee7b88869ce7f4f2277050c4867b5e3f64468bb42de0b5bde85b715b84b37842bd3f605216acf89a62a4c
 SHA512 
6ddeed937119a930bb7b9556ff329f054e9429b8457c9a15d99cb105271297117abba587a974d02760bb8b6b244734973a676bdff6b533a53ce587858e48f337
+DIST psutil-6.0.0-tests.patch.xz 3748 BLAKE2B 
6e78418de8ee052e7e9f5d6bc74b8fc79e5216ed4d5fa8eb89532b19298955c388e158770b4af7b42fddc2a03b292e6d8ce9ed98c441179fb7c4a640014f2112
 SHA512 
3947337dbdddc29c85697d6140fc0fdcfb2b5ce7d84438e5763ad240ccd954e97fbf5dabf03ca17e959273a2c11794a41b2293434e85d2fe4d38d696c7de3900
+DIST psutil-6.0.0.tar.gz 508067 BLAKE2B 
a4c80d1cead17ab73c99a25c4e1712cc2dd0b4220521d8dacafb905ab27393c49a8ee20790a89ebfc6c1d53779e98fe126c50f9299db1ab9a9c3df6d0a99ec48
 SHA512 
78ef1abe109c985ad3dd3865de5b4a7682fbad0085e5ca5bc1f2f90f03853775554b6c810cd54543cb7a1238efe345b3dcc9f5191270e03bc6a2f4088dd007ba

diff --git a/dev-python/psutil/psutil-6.0.0.ebuild 
b/dev-python/psutil/psutil-6.0.0.ebuild
new file mode 100644
index 000000000000..9ff7a50459e9
--- /dev/null
+++ b/dev-python/psutil/psutil-6.0.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 pypi
+
+TEST_PATCH=psutil-6.0.0-tests.patch
+DESCRIPTION="Retrieve information on running processes and system utilization"
+HOMEPAGE="
+       https://github.com/giampaolo/psutil/
+       https://pypi.org/project/psutil/
+"
+SRC_URI+="
+       https://dev.gentoo.org/~mgorny/dist/${TEST_PATCH}.xz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+       "${WORKDIR}/${TEST_PATCH}"
+)
+
+python_test() {
+       # Since we are running in an environment a bit similar to CI,
+       # let's skip the tests that are disabled for CI
+       local -x TRAVIS=1
+       local -x APPVEYOR=1
+       local -x GITHUB_ACTIONS=1
+       local -x GENTOO_TESTING=1
+       "${EPYTHON}" psutil/tests/runner.py ||
+               die "tests failed with ${EPYTHON}"
+}
+
+python_compile() {
+       # Force -j1 to avoid .o linking race conditions
+       local MAKEOPTS=-j1
+       distutils-r1_python_compile
+}

Reply via email to