diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-18 05:08:52 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-18 06:18:29 +0100 |
commit | 557daeb917ef4e2f79d97cf09dd9bf10ebecfaa5 (patch) | |
tree | 3613a74fecd8ccaf467e5869f9ac4f8c3ef766b9 /dev-python/psutil | |
parent | dev-python/moto: Bump to 4.2.12 (diff) | |
download | gentoo-557daeb917ef4e2f79d97cf09dd9bf10ebecfaa5.tar.gz gentoo-557daeb917ef4e2f79d97cf09dd9bf10ebecfaa5.tar.bz2 gentoo-557daeb917ef4e2f79d97cf09dd9bf10ebecfaa5.zip |
dev-python/psutil: Bump to 5.9.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/psutil')
-rw-r--r-- | dev-python/psutil/Manifest | 1 | ||||
-rw-r--r-- | dev-python/psutil/psutil-5.9.7.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest index c3a41d0d1196..c903cd5be408 100644 --- a/dev-python/psutil/Manifest +++ b/dev-python/psutil/Manifest @@ -2,3 +2,4 @@ DIST psutil-5.9.5-tests-r2.patch.xz 3776 BLAKE2B ba67e50d22c0ff05c3d31d5bcc1eb91 DIST psutil-5.9.5.tar.gz 493489 BLAKE2B 3db8ce374d9d81dcddc08f03418675318c5e447f9a3347154d025537ba090811926ced822f83ff5fc9239665b091803a30d167465495049569c3c820f7fbb32d SHA512 2afe1bad5359aeac90378faaa609bab855dfcaa58519c939fdadb02e6e2c8157c77f961ac0f90d104626cef3429e1ea2f686e4dc4c9dccf975e3e73e9b08872c DIST psutil-5.9.6-tests.patch.xz 3780 BLAKE2B 002858235e7abf17c1426558cd9f8356cc7f21898f4488409e1cc4c6d76d6a017b8ca9e005e9973cfa890ff461691f5c0225e7c850ee4fde55cb1335d4ceca29 SHA512 1bd544ecd19ce7ff9a5e9f6e747b3f88ba44aabc289af87e3a1204028ebc26373dcdef9a9c5bd6ae13bc8d8d7d43ade41a8be2b14a02925afde1298ca0f9e6be DIST psutil-5.9.6.tar.gz 496866 BLAKE2B 65bd35ff6bcc2cfcb5f75f732a5a6955cb1fb5d889a5827aa2da27268716b10aa1dea23a87ee25aafc54e035927216501ecb98e56c655bfada57616a0d67e189 SHA512 0c363bf998868e450f014d5c5ddc2448986cafcd21309571e067be1c4b49d0e78259a5388094cbf32af7bca12865c5f3692480737f0a5225bbcfb895a9bf81f6 +DIST psutil-5.9.7.tar.gz 498429 BLAKE2B 7fd60e014d55ab1288040b05f3dc058f0b75135fd4e5c0d0c3aa1365f2b3d940d0fa6897adfda12405451ae2bfe9e546da48b3c86838fd415413feb4421ba2af SHA512 b4bb3bf53fb581e992a06d037880aaac74d23be3adfdaf533a0e7e403d7b200e6584799bc5e7eaebd851bee983009e1d2a662a58c635af1466239ac9997ab64f diff --git a/dev-python/psutil/psutil-5.9.7.ebuild b/dev-python/psutil/psutil-5.9.7.ebuild new file mode 100644 index 000000000000..e28e2cda6093 --- /dev/null +++ b/dev-python/psutil/psutil-5.9.7.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 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..12} pypy3 ) + +inherit distutils-r1 pypi + +TEST_PATCH=psutil-5.9.6-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 +} |