diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-02-22 13:44:03 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-02-22 13:44:03 +0000 |
| commit | ab96a55546fec3a81579752ef1b9a6eee0b351c4 (patch) | |
| tree | b4748011e154fec401bf88a8056abd7f11c63601 /dev-python | |
| parent | c3fb4bc2f362ff3b4f36714c0bac9bdfa4d76eea (diff) | |
| download | baldeagleos-repo-ab96a55546fec3a81579752ef1b9a6eee0b351c4.tar.gz baldeagleos-repo-ab96a55546fec3a81579752ef1b9a6eee0b351c4.tar.xz baldeagleos-repo-ab96a55546fec3a81579752ef1b9a6eee0b351c4.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
15 files changed, 377 insertions, 5 deletions
diff --git a/dev-python/flufl-lock/flufl-lock-7.0.ebuild b/dev-python/flufl-lock/flufl-lock-7.0-r1.ebuild index 34cb7b09d731..e243b4703fdf 100644 --- a/dev-python/flufl-lock/flufl-lock-7.0.ebuild +++ b/dev-python/flufl-lock/flufl-lock-7.0-r1.ebuild @@ -19,7 +19,7 @@ KEYWORDS="~amd64 ~x86" RDEPEND=" dev-python/atpublic[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}]" + >=dev-python/psutil-5.9.0[${PYTHON_USEDEP}]" BDEPEND=" test? ( dev-python/sybil[${PYTHON_USEDEP}] )" diff --git a/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch b/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch index f74474a70aa1..8031ad72de5b 100644 --- a/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch +++ b/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch @@ -35,7 +35,7 @@ index 7f9956b..8e17ef3 100644 install_requires=[ - 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy', + 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlicffi', - 'raven[flask]', 'werkzeug>=0.14.1' + 'werkzeug>=0.14.1' ], ) -- diff --git a/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch b/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch index 8602ed7641be..5d626768bd27 100644 --- a/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch +++ b/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch @@ -17,3 +17,15 @@ diff -dupr a/httpbin/core.py b/httpbin/core.py sentry = Sentry(app, dsn=os.environ['SENTRY_DSN']) # Set up Bugsnag exception tracking, if desired. To use Bugsnag, install the +diff --git a/setup.py b/setup.py +index 7f9956b..3cab2ae 100644 +--- a/setup.py ++++ b/setup.py +@@ -35,6 +35,6 @@ setup( + include_package_data = True, # include files listed in MANIFEST.in + install_requires=[ + 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy', +- 'raven[flask]', 'werkzeug>=0.14.1' ++ 'werkzeug>=0.14.1' + ], + ) diff --git a/dev-python/httpbin/httpbin-0.7.0-r2.ebuild b/dev-python/httpbin/httpbin-0.7.0-r3.ebuild index 2c50b26a67da..5d5d905aeb15 100644 --- a/dev-python/httpbin/httpbin-0.7.0-r2.ebuild +++ b/dev-python/httpbin/httpbin-0.7.0-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/httpbin/httpbin-0.7.0-r4.ebuild b/dev-python/httpbin/httpbin-0.7.0-r4.ebuild new file mode 100644 index 000000000000..74965ce76e19 --- /dev/null +++ b/dev-python/httpbin/httpbin-0.7.0-r4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP Request and Response Service" +HOMEPAGE="https://github.com/postmanlabs/httpbin + https://pypi.org/project/httpbin/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +RDEPEND=" + dev-python/brotlicffi[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/werkzeug-0.14.1[${PYTHON_USEDEP}]" + +PATCHES=( + # do not import raven if it's not going to be used + # (upstream removed it completely in git anyway) + "${FILESDIR}"/httpbin-0.7.0-optional-raven.patch + # fix tests with new versions of werkzeug + "${FILESDIR}"/httpbin-0.7.0-test-werkzeug.patch + # use brotlicffi instead of brotlipy + "${FILESDIR}"/httpbin-0.7.0-brotlicffi.patch +) + +distutils_enable_tests unittest + +src_prepare() { + # a new version of flask or whatever converts relative redirects + # to absolute; this package is dead anyway, so just skip + # the relevant tests + sed -e 's:test_redirect:_&:' \ + -e 's:test_relative:_&:' \ + -i test_httpbin.py || die + + distutils-r1_src_prepare +} diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.5.4.ebuild b/dev-python/huawei-lte-api/huawei-lte-api-1.5.4-r1.ebuild index 70582a67942b..c4f6c5c62eee 100644 --- a/dev-python/huawei-lte-api/huawei-lte-api-1.5.4.ebuild +++ b/dev-python/huawei-lte-api/huawei-lte-api-1.5.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,6 +21,7 @@ RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}] python_prepare_all() { # make cryptodome-friendly + sed -i -e 's:pycryptodomex:pycryptodome:' setup.py || die find -name '*.py' -exec \ sed -i -e 's:Cryptodome:Crypto:g' {} + || die diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index f26631ae5924..241884efaa52 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -3,3 +3,4 @@ DIST hypothesis-python-6.36.1.tar.gz 9179567 BLAKE2B 67c5e33667287107b8068401107 DIST hypothesis-python-6.36.2.tar.gz 9179500 BLAKE2B e627ddfbef2e0955df0f4d8a388157352779aa73ca422f6372ba966b4b815bef26822f664983de089c9036eef05ae810deefd76615b37dffe5561fef9862495f SHA512 e2dd6ca73a72c30c0f0a6b3bdce44ef070f0497400f1de6758ab2daf948185afd607d34ffb604c8f55746beec60dca1289f9c4d71fc666b7904f7dcbe0d66cd7 DIST hypothesis-python-6.37.0.tar.gz 9179770 BLAKE2B 914968515c65b52cfa7fd4908c7132c36e2b3639a48a5f9131fdf0dc9f0230f3b3e9cc47e5f45896fd37faaa6b9822f8232df6bbb4b12b1d62e8498c35ba777e SHA512 44b200cb583c006c44a551b7f0e859d193bb4ae68233ca8903bc89259b7a7b57e751458034d3c46223481e5862fb046d546c0331501fe926d645ccb0fcd2a455 DIST hypothesis-python-6.37.1.tar.gz 9179835 BLAKE2B 316b4bd4143d8bd403bac2fcc713c49c0a1f5f713d78335845f77c7ac9dac852cce367ac618999265ab4c68e848037920b2be6e18f68bd1f3d6982b1e7f5e297 SHA512 7b5e961339672cf853d181f4a3963ab753fe0bd7af599247996629de2b8e62159b3cfe6ce8663b2499e2e4e2dbdcc99fc99c5a582a73102c5637e82ce4624c64 +DIST hypothesis-python-6.37.2.tar.gz 9179951 BLAKE2B 0178beee31353d94454ce289d9214153b394612f28cec52e906456cda6419b7b427213ac46ff423c1f6d853e82d737b2f9f57ae89c20481cabde2bc523a87c18 SHA512 659ddce542e26047b0dceb764588c0ffa20a096f44b742514105d4f6f933042ee29fb84897863112fabf19b83de9d357714f252f5adeb8d0557788c62b71c6e2 diff --git a/dev-python/hypothesis/hypothesis-6.37.2.ebuild b/dev-python/hypothesis/hypothesis-6.37.2.ebuild new file mode 100644 index 000000000000..5eb94ce96458 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.37.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 multiprocessing optfeature + +DESCRIPTION="A library for property based testing" +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="cli" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' python3_{8..10}) + ) +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + !!<dev-python/typing-3.7.4.1 + ) +" + +distutils_enable_tests pytest + +python_prepare() { + if ! use cli || ! has "${EPYTHON}" python3.{8..10}; then + sed -i -e '/console_scripts/d' setup.py || die + fi +} + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin + + epytest tests/cover tests/pytest tests/quality \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} diff --git a/dev-python/ipywidgets/ipywidgets-7.6.5-r1.ebuild b/dev-python/ipywidgets/ipywidgets-7.6.5-r2.ebuild index c7ffb5b22bd9..637d5f3b91c8 100644 --- a/dev-python/ipywidgets/ipywidgets-7.6.5-r1.ebuild +++ b/dev-python/ipywidgets/ipywidgets-7.6.5-r2.ebuild @@ -30,3 +30,10 @@ distutils_enable_tests pytest PATCHES=( "${FILESDIR}/${PN}-7.6.3-py310.patch" ) + +src_prepare() { + # upstream hack to autoconfigure ipywidgets in jupyter + # we don't have jupyterlab_widgets packaged + sed -i -e '/jupyterlab_widgets/d' setup.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.0.0.ebuild b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.0.0.ebuild index e33f4ce2ac90..b9a26ce208a3 100644 --- a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.0.0.ebuild +++ b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.0.0.ebuild @@ -36,6 +36,7 @@ BDEPEND=" test? ( dev-python/click[${PYTHON_USEDEP}] dev-python/mkdocs-material[${PYTHON_USEDEP}] + dev-python/mkdocs-i18n[${PYTHON_USEDEP}] dev-vcs/git ) doc? ( dev-vcs/git ) diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest index 5990e841b32f..a8eb6c71de71 100644 --- a/dev-python/psutil/Manifest +++ b/dev-python/psutil/Manifest @@ -1 +1,2 @@ DIST psutil-5.7.3.tar.gz 465556 BLAKE2B 6a9f31fcba571f381c1f4c904a9ff65659d13ed64e91df478aa7df4dabb87a35c4fbd9c0491a3d10b9eaf0fdcc8f2407fcf7144e729043eda605dfe6e6f93844 SHA512 8fcff56dd4e4c1b877c09023721e6f562424f7f84ae5304d518976a1e7f21dd026772f1abfc063bdd0857a375bc869f42febde090dc0b65918d1ebf44e3ad71d +DIST psutil-5.9.0.tar.gz 478322 BLAKE2B 763c8ae14ae546bed64a360047d2ce38783e9e7e939160f751c4ccc94b8e023aaa4cdca426f584e05dae8b1326333660e216d7cb3edd820e24a931dddfa5160f SHA512 b521cfce51e90fdf87ba19bf8069877e3210aede92c17460ea0b00324a36e133168e4bff550462d07ab6d93c597c6560d68954340031ff43168d54a8e5d4c4e7 diff --git a/dev-python/psutil/files/psutil-5.9.0-tests.patch b/dev-python/psutil/files/psutil-5.9.0-tests.patch new file mode 100644 index 000000000000..56a5e1168733 --- /dev/null +++ b/dev-python/psutil/files/psutil-5.9.0-tests.patch @@ -0,0 +1,188 @@ +diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py +index 21bb3e61..6c45c9e0 100644 +--- a/psutil/tests/__init__.py ++++ b/psutil/tests/__init__.py +@@ -88,6 +88,7 @@ __all__ = [ + "HAS_IONICE", "HAS_MEMORY_MAPS", "HAS_PROC_CPU_NUM", "HAS_RLIMIT", + "HAS_SENSORS_BATTERY", "HAS_BATTERY", "HAS_SENSORS_FANS", + "HAS_SENSORS_TEMPERATURES", "HAS_MEMORY_FULL_INFO", ++ "GENTOO_TESTING", + # subprocesses + 'pyrun', 'terminate', 'reap_children', 'spawn_testproc', 'spawn_zombie', + 'spawn_children_pair', +@@ -128,6 +129,7 @@ PYPY = '__pypy__' in sys.builtin_module_names + APPVEYOR = 'APPVEYOR' in os.environ + GITHUB_ACTIONS = 'GITHUB_ACTIONS' in os.environ or 'CIBUILDWHEEL' in os.environ + CI_TESTING = APPVEYOR or GITHUB_ACTIONS ++GENTOO_TESTING = "GENTOO_TESTING" in os.environ + # are we a 64 bit process? + IS_64BIT = sys.maxsize > 2 ** 32 + +diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py +index 20e28d29..ce5d10a0 100755 +--- a/psutil/tests/test_linux.py ++++ b/psutil/tests/test_linux.py +@@ -28,6 +28,7 @@ from psutil._compat import PY3 + from psutil._compat import FileNotFoundError + from psutil._compat import basestring + from psutil._compat import u ++from psutil.tests import GENTOO_TESTING + from psutil.tests import GITHUB_ACTIONS + from psutil.tests import GLOBAL_TIMEOUT + from psutil.tests import HAS_BATTERY +@@ -929,6 +930,7 @@ class TestLoadAvg(PsutilTestCase): + @unittest.skipIf(not LINUX, "LINUX only") + class TestSystemNetIfAddrs(PsutilTestCase): + ++ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env") + def test_ips(self): + for name, addrs in psutil.net_if_addrs().items(): + for addr in addrs: +@@ -1491,6 +1493,7 @@ class TestMisc(PsutilTestCase): + psutil.PROCFS_PATH = "/proc" + + @retry_on_failure() ++ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env") + def test_issue_687(self): + # In case of thread ID: + # - pid_exists() is supposed to return False +@@ -1596,6 +1599,8 @@ class TestSensorsBattery(PsutilTestCase): + self.assertEqual(psutil.sensors_battery().power_plugged, False) + assert m.called + ++ @unittest.skipIf(GENTOO_TESTING, ++ "mocking doesn't work with non-BAT0 battery") + def test_emulate_power_undetermined(self): + # Pretend we can't know whether the AC power cable not + # connected (assert fallback to False). +@@ -1614,6 +1619,8 @@ class TestSensorsBattery(PsutilTestCase): + self.assertIsNone(psutil.sensors_battery().power_plugged) + assert m.called + ++ @unittest.skipIf(GENTOO_TESTING, ++ "mocking doesn't work with non-BAT0 battery") + def test_emulate_energy_full_0(self): + # Emulate a case where energy_full files returns 0. + with mock_open_content( +@@ -1621,6 +1628,8 @@ class TestSensorsBattery(PsutilTestCase): + self.assertEqual(psutil.sensors_battery().percent, 0) + assert m.called + ++ @unittest.skipIf(GENTOO_TESTING, ++ "mocking doesn't work with non-BAT0 battery") + def test_emulate_energy_full_not_avail(self): + # Emulate a case where energy_full file does not exist. + # Expected fallback on /capacity. +@@ -1634,6 +1643,8 @@ class TestSensorsBattery(PsutilTestCase): + "/sys/class/power_supply/BAT0/capacity", b"88"): + self.assertEqual(psutil.sensors_battery().percent, 88) + ++ @unittest.skipIf(GENTOO_TESTING, ++ "mocking doesn't work with non-BAT0 battery") + def test_emulate_no_power(self): + # Emulate a case where /AC0/online file nor /BAT0/status exist. + with mock_open_exception( +@@ -2220,6 +2231,7 @@ class TestProcessAgainstStatus(PsutilTestCase): + value = self.read_status_file("nonvoluntary_ctxt_switches:") + self.assertEqual(self.proc.num_ctx_switches().involuntary, value) + ++ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env") + def test_cpu_affinity(self): + value = self.read_status_file("Cpus_allowed_list:") + if '-' in str(value): +diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py +index d946eb62..a53de565 100755 +--- a/psutil/tests/test_misc.py ++++ b/psutil/tests/test_misc.py +@@ -32,6 +32,7 @@ from psutil._compat import PY3 + from psutil._compat import redirect_stderr + from psutil.tests import APPVEYOR + from psutil.tests import CI_TESTING ++from psutil.tests import GENTOO_TESTING + from psutil.tests import HAS_BATTERY + from psutil.tests import HAS_MEMORY_MAPS + from psutil.tests import HAS_NET_IO_COUNTERS +@@ -401,6 +402,7 @@ class TestMisc(PsutilTestCase): + reload_module(psutil) + self.assertIn("version conflict", str(cm.exception).lower()) + ++ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env") + def test_debug(self): + if PY3: + from io import StringIO +diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py +index 31b81926..7eb9bac5 100755 +--- a/psutil/tests/test_posix.py ++++ b/psutil/tests/test_posix.py +@@ -23,6 +23,7 @@ from psutil import OPENBSD + from psutil import POSIX + from psutil import SUNOS + from psutil.tests import CI_TESTING ++from psutil.tests import GENTOO_TESTING + from psutil.tests import HAS_NET_IO_COUNTERS + from psutil.tests import PYTHON_EXE + from psutil.tests import PsutilTestCase +@@ -326,6 +327,7 @@ class TestSystemAPIs(PsutilTestCase): + "couldn't find %s nic in 'ifconfig -a' output\n%s" % ( + nic, output)) + ++ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env") + @unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI") + @retry_on_failure() + def test_users(self): +diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py +index c9059e33..0050c42a 100755 +--- a/psutil/tests/test_process.py ++++ b/psutil/tests/test_process.py +@@ -38,6 +38,7 @@ from psutil._compat import long + from psutil._compat import super + from psutil.tests import APPVEYOR + from psutil.tests import CI_TESTING ++from psutil.tests import GENTOO_TESTING + from psutil.tests import GITHUB_ACTIONS + from psutil.tests import GLOBAL_TIMEOUT + from psutil.tests import HAS_CPU_AFFINITY +@@ -292,6 +293,7 @@ class TestProcess(PsutilTestCase): + time.strftime("%Y %m %d %H:%M:%S", time.localtime(p.create_time())) + + @unittest.skipIf(not POSIX, 'POSIX only') ++ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env") + def test_terminal(self): + terminal = psutil.Process().terminal() + if terminal is not None: +@@ -341,6 +343,7 @@ class TestProcess(PsutilTestCase): + self.assertGreaterEqual(io2[i], 0) + self.assertGreaterEqual(io2[i], 0) + ++ @unittest.skipIf(GENTOO_TESTING, "fails if builder is ioniced already") + @unittest.skipIf(not HAS_IONICE, "not supported") + @unittest.skipIf(not LINUX, "linux only") + def test_ionice_linux(self): +@@ -1406,6 +1409,7 @@ class TestProcess(PsutilTestCase): + if not OSX and GITHUB_ACTIONS: + self.assertEqual(d1, d2) + ++ @unittest.skipIf(GENTOO_TESTING, "broken by Gentoo sandbox") + @unittest.skipIf(not HAS_ENVIRON, "not supported") + @unittest.skipIf(not POSIX, "POSIX only") + def test_weird_environ(self): +diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py +index db2cb348..b1faa154 100755 +--- a/psutil/tests/test_system.py ++++ b/psutil/tests/test_system.py +@@ -33,6 +33,7 @@ from psutil._compat import long + from psutil.tests import ASCII_FS + from psutil.tests import CI_TESTING + from psutil.tests import DEVNULL ++from psutil.tests import GENTOO_TESTING + from psutil.tests import GITHUB_ACTIONS + from psutil.tests import GLOBAL_TIMEOUT + from psutil.tests import HAS_BATTERY +@@ -199,6 +200,7 @@ class TestMiscAPIs(PsutilTestCase): + self.assertGreater(bt, 0) + self.assertLess(bt, time.time()) + ++ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env") + @unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI") + def test_users(self): + users = psutil.users() diff --git a/dev-python/psutil/psutil-5.9.0.ebuild b/dev-python/psutil/psutil-5.9.0.ebuild new file mode 100644 index 000000000000..3378d8543261 --- /dev/null +++ b/dev-python/psutil/psutil-5.9.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Retrieve information on running processes and system utilization" +HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/psutil-5.9.0-tests.patch +) + +python_test() { + if [[ ${EPYTHON} == pypy* ]]; then + ewarn "Not running tests on ${EPYTHON} since they are broken" + return 0 + fi + + # since we are running in an environment a bit similar to CI, + # let's skip the tests that are disable 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 +} diff --git a/dev-python/symengine/symengine-0.9.1.ebuild b/dev-python/symengine/symengine-0.9.1.ebuild index 3ce2ee3304fb..f636c8c627b8 100644 --- a/dev-python/symengine/symengine-0.9.1.ebuild +++ b/dev-python/symengine/symengine-0.9.1.ebuild @@ -17,7 +17,7 @@ S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" BDEPEND="dev-util/cmake dev-python/cython[${PYTHON_USEDEP}] diff --git a/dev-python/warlock/warlock-1.3.3-r2.ebuild b/dev-python/warlock/warlock-1.3.3-r3.ebuild index 587f4be218c4..2d30c84b8911 100644 --- a/dev-python/warlock/warlock-1.3.3-r2.ebuild +++ b/dev-python/warlock/warlock-1.3.3-r3.ebuild @@ -32,5 +32,6 @@ EPYTEST_DESELECT=( src_prepare() { sed -i -e '/--cov/d' pytest.ini || die + sed -i -e '/jsonschema/s:,<4::' requirements.txt || die distutils-r1_src_prepare } |
