From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C3497158042 for ; Fri, 18 Oct 2024 17:09:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 034CFE085A; Fri, 18 Oct 2024 17:09:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE48DE085A for ; Fri, 18 Oct 2024 17:09:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E1A33430B5 for ; Fri, 18 Oct 2024 17:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AE04816CA for ; Fri, 18 Oct 2024 17:09:04 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1729271340.3d53fcafc909b8455b5d7b2683745f586b4c5ade.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/psutil/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/psutil/Manifest dev-python/psutil/psutil-6.1.0.ebuild X-VCS-Directories: dev-python/psutil/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3d53fcafc909b8455b5d7b2683745f586b4c5ade X-VCS-Branch: master Date: Fri, 18 Oct 2024 17:09:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9b9e5b0e-8963-4147-b780-a5077d97ad26 X-Archives-Hash: 535e210099d675d979d8739c878359e2 commit: 3d53fcafc909b8455b5d7b2683745f586b4c5ade Author: Michał Górny gentoo org> AuthorDate: Fri Oct 18 16:51:23 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Oct 18 17:09:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d53fcaf dev-python/psutil: Bump to 6.1.0 Signed-off-by: Michał Górny gentoo.org> dev-python/psutil/Manifest | 1 + dev-python/psutil/psutil-6.1.0.ebuild | 81 +++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest index f53a8a83b5fb..158caa1d8d70 100644 --- a/dev-python/psutil/Manifest +++ b/dev-python/psutil/Manifest @@ -2,3 +2,4 @@ DIST psutil-5.9.8-tests.patch.xz 3716 BLAKE2B cf33173a0d5c6537b0de1c4858beb9ec59 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 +DIST psutil-6.1.0.tar.gz 508565 BLAKE2B 2b5095613854c8e77e5e5ac8bb67b3d631bb29515c8d958e7cedb81a56c03d639663602f01337e191084f1511a6cb921a85394ecc8ac64af2270cf75cdc44262 SHA512 76865df4fdb2a9df45e47589b76b34d0d9d9251491091683e47b4509863e32e46dc62ee2f760b983f0f762b8288d1ea7f32268a6857c049ad12f399908e19c82 diff --git a/dev-python/psutil/psutil-6.1.0.ebuild b/dev-python/psutil/psutil-6.1.0.ebuild new file mode 100644 index 000000000000..292ea4f24c60 --- /dev/null +++ b/dev-python/psutil/psutil-6.1.0.ebuild @@ -0,0 +1,81 @@ +# 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} python3_13t pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Retrieve information on running processes and system utilization" +HOMEPAGE=" + https://github.com/giampaolo/psutil/ + https://pypi.org/project/psutil/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # hardcoded assumptions about the test environment + tests/test_linux.py::TestRootFsDeviceFinder::test_disk_partitions_mocked + tests/test_linux.py::TestSystemDiskPartitions::test_zfs_fs + tests/test_linux.py::TestSystemNetIfAddrs::test_ips + tests/test_process.py::TestProcess::test_ionice_linux + tests/test_system.py::TestDiskAPIs::test_disk_partitions + + # mocking is broken + tests/test_linux.py::TestSensorsBattery::test_emulate_energy_full_0 + tests/test_linux.py::TestSensorsBattery::test_emulate_energy_full_not_avail + tests/test_linux.py::TestSensorsBattery::test_emulate_no_power + tests/test_linux.py::TestSensorsBattery::test_emulate_power_undetermined + + # doesn't like sandbox injecting itself + tests/test_process.py::TestProcess::test_weird_environ + + # extremely flaky + tests/test_linux.py::TestSystemVirtualMemoryAgainstFree::test_used + tests/test_linux.py::TestSystemVirtualMemoryAgainstVmstat::test_used + + # nproc --all is broken? + tests/test_linux.py::TestSystemCPUCountLogical::test_against_nproc + + # broken on some architectures + tests/test_linux.py::TestSystemCPUCountCores::test_method_2 + tests/test_linux.py::TestSystemCPUCountLogical::test_emulate_fallbacks + tests/test_linux.py::TestSystemCPUFrequency::test_emulate_use_cpuinfo + tests/test_linux.py::TestSystemCPUFrequency::test_emulate_use_second_file + + # broken in some setups + tests/test_linux.py::TestMisc::test_issue_687 + tests/test_linux.py::TestProcessAgainstStatus::test_cpu_affinity + tests/test_linux.py::TestSystemCPUStats::test_interrupts + tests/test_posix.py::TestProcess::test_cmdline + tests/test_posix.py::TestProcess::test_name + tests/test_posix.py::TestSystemAPIs::test_users + tests/test_process.py::TestProcess::test_terminal + tests/test_unicode.py::TestFSAPIs::test_memory_maps + ) + + # 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 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + rm -rf psutil || die + epytest --pyargs psutil +} + +python_compile() { + # Force -j1 to avoid .o linking race conditions + local MAKEOPTS=-j1 + distutils-r1_python_compile +}