diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-15 00:13:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-15 00:13:03 +0000 |
commit | 770d63f36dbe1722e0ff9ab55eeca49986f01527 (patch) | |
tree | be9aae0ef5001e4669f914ac9ad9b4eaa4db8500 /dev-python/psutil | |
parent | 4fda045f90a4e301329bddb766e2e12a0b4401de (diff) |
Diffstat (limited to 'dev-python/psutil')
-rw-r--r-- | dev-python/psutil/Manifest | 2 | ||||
-rw-r--r-- | dev-python/psutil/psutil-7.0.0.ebuild | 91 |
2 files changed, 93 insertions, 0 deletions
diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest index 62497189ac04..e13beea1056d 100644 --- a/dev-python/psutil/Manifest +++ b/dev-python/psutil/Manifest @@ -1,5 +1,7 @@ DIST psutil-6.1.0.tar.gz 508565 BLAKE2B 2b5095613854c8e77e5e5ac8bb67b3d631bb29515c8d958e7cedb81a56c03d639663602f01337e191084f1511a6cb921a85394ecc8ac64af2270cf75cdc44262 SHA512 76865df4fdb2a9df45e47589b76b34d0d9d9251491091683e47b4509863e32e46dc62ee2f760b983f0f762b8288d1ea7f32268a6857c049ad12f399908e19c82 DIST psutil-6.1.1.tar.gz 508502 BLAKE2B ebd8ee40cd86fdbc1ed70e192228889dbae74295ba5b17baa629ca8c3d05945b61ad4b02a836af30886bbf78d65de842cd25486c292ed5b727f37645c6bde93b SHA512 db8a2f4b0b451ca46aaa21b1faae03c4328b1effd04f240a7c8efc94a1c8ca7fc080fc6d16f6ca2046b9232ec43e447be0c414b125f8f511131dc6dff95bd72c +DIST psutil-7.0.0.tar.gz 497003 BLAKE2B d5bd3845f4a1a9852ea0136d43f3c4ef9534f08cde7acc3e7a02d7725e52a517882986cf48be241d51b001646b0550d8d7d964dd38ba15e6777d82c3605c34af SHA512 83c17e5dd975bd403d8ece3bcfe021e5b845eb53260f8857999ebc6fdea8aca83e136b945aaa0b3974dc387191988c22fcdcab03effc8e943382989a106aeaf3 EBUILD psutil-6.1.0.ebuild 3270 BLAKE2B 0921fb682554426f8b3df51f7d1a3b4c2d834c40e4772b2e5c256933c35957bf26fc96b432354b7fe79ca8a87f0414d11212b275956ea7868a2fb157f25c80bf SHA512 c6d9003bb740ad3caa483812f035b5ed9da528e5ef88ec6fa19939e9f45f11979374ae4a01fe8d03bc461c30985a0348f791a0f6e031469987519cef0d657c1f EBUILD psutil-6.1.1.ebuild 3271 BLAKE2B fb363f4cb2d298c96d8cec32f32370b59d79443f9592d83beeceb9f2dbff587142d8cbb43d4629503d39c4805ef950d76e9a90561769497c26ab0bb440fb4b02 SHA512 f01d4b18822e8e3d375e0536d01ad6121c210817f9fb72127435a9c68fd5f1fbbea9ab2138486969b722cc2e6dfdddcc0a5ff299c1e3bc4d4d5034e38f3941c7 +EBUILD psutil-7.0.0.ebuild 3278 BLAKE2B e1bce473d864e391813f405171dac9883b661365d32d74aac33e94f7b0cd9638b9a323301e703173169bc2a8df838a31b416443d3fe21b5a799f2d719231a266 SHA512 fb2b90b6d8898e8c9f261ddd8d45170b36d381e2ea9d66477367506bdc1fd167dcf121e0397dfb66f0d6a2a9a568b6d4198fd27fbb02c01ba93e5bd6a04abe90 MISC metadata.xml 378 BLAKE2B 235c056a427ab18383c401143074ec62b91d471087c34e2bd48d5192c6221e089e32170d18cd0d69d51eb2bb02fb8a0efe59245af9224b284557812b32c341b5 SHA512 96492308dac753fb176e4810efa71757e66413d16589e52a942b02c91256b48f9873b53a698006923aef12aa7d1539d6fd7aa07632c073b6a92cc8920f6ce6c0 diff --git a/dev-python/psutil/psutil-7.0.0.ebuild b/dev-python/psutil/psutil-7.0.0.ebuild new file mode 100644 index 000000000000..71cf49481fd1 --- /dev/null +++ b/dev-python/psutil/psutil-7.0.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2025 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_posix.py::TestProcess::test_nice + 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 + tests/test_system.py::TestCpuAPIs::test_cpu_freq + tests/test_system.py::TestCpuAPIs::test_cpu_times_comparison + + # 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 + + # fails on all AT containers + tests/test_system.py::TestMiscAPIs::test_users + + # failing without /sys/class/power_supply? + tests/test_memleaks.py::TestModuleFunctionsLeaks::test_sensors_battery + tests/test_misc.py::TestMisc::test_serialization + ) + + # 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 +} |