From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1627421-garchives=archives.gentoo.org@lists.gentoo.org> 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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CC30D158064 for <garchives@archives.gentoo.org>; Fri, 3 May 2024 10:48:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B64CF2BC014; Fri, 3 May 2024 10:48:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 988792BC014 for <gentoo-commits@lists.gentoo.org>; Fri, 3 May 2024 10:48:58 +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 A07A934302D for <gentoo-commits@lists.gentoo.org>; Fri, 3 May 2024 10:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2CAB319D0 for <gentoo-commits@lists.gentoo.org>; Fri, 3 May 2024 10:48:56 +0000 (UTC) From: "Arthur Zamarin" <arthurzam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" <arthurzam@gentoo.org> Message-ID: <1714733323.dd38e7c04822e057068e3ec0c1f1104714f02709.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/bash-completion/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/bash-completion/bash-completion-9999.ebuild X-VCS-Directories: app-shells/bash-completion/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: dd38e7c04822e057068e3ec0c1f1104714f02709 X-VCS-Branch: master Date: Fri, 3 May 2024 10:48:56 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 890b0f23-7061-45f3-8084-88a46adfe715 X-Archives-Hash: 9089a322aceb8c16d959bd9d14d7b5eb commit: dd38e7c04822e057068e3ec0c1f1104714f02709 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri May 3 10:47:36 2024 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri May 3 10:48:43 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd38e7c0 app-shells/bash-completion: sync live Closes: https://bugs.gentoo.org/865511 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> .../bash-completion/bash-completion-9999.ebuild | 25 +++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild index d9a8954d6f32..452614926c31 100644 --- a/app-shells/bash-completion/bash-completion-9999.ebuild +++ b/app-shells/bash-completion/bash-completion-9999.ebuild @@ -13,7 +13,6 @@ EGIT_REPO_URI="https://github.com/scop/bash-completion" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="" IUSE="+eselect test" RESTRICT="!test? ( test )" @@ -29,6 +28,7 @@ BDEPEND=" $(python_gen_any_dep ' dev-python/pexpect[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] ') ) " @@ -69,7 +69,8 @@ strip_completions() { python_check_deps() { python_has_version "dev-python/pexpect[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" + python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" && + python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" } pkg_setup() { @@ -102,7 +103,16 @@ src_test() { test/t/test_if{down,up}.py # not available for icedtea test/t/test_javaws.py + # TODO + test/t/test_vi.py::TestVi::test_2 + test/t/test_xmlwf.py::TestXmlwf::test_2 #bug 886159 + test/t/test_xrandr.py::TestXrandr::test_output_filter ) + local EPYTEST_IGNORE=( + # stupid test that async tests work + test/fixtures/pytest/test_async.py + ) + local EPYTEST_XDIST=1 # portage's HOME override breaks tests local -x HOME=$(unset HOME; echo ~) @@ -110,6 +120,7 @@ src_test() { # used in pytest tests local -x NETWORK=none local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked emake -C completions check epytest } @@ -122,7 +133,15 @@ src_install() { strip_completions - dodoc AUTHORS CHANGES CONTRIBUTING.md README.md + dodoc AUTHORS CHANGELOG.md CONTRIBUTING.md README.md + + # install the python completions for all targets, bug #622892 + local TARGET + for TARGET in "${PYTHON_COMPAT[@]}"; do + if [[ ! -e "${ED}"/usr/share/bash-completion/completions/${TARGET/_/.} ]]; then + dosym python "${ED}"/usr/share/bash-completion/completions/${TARGET/_/.} + fi + done # install the eselect module if use eselect; then