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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3499815852A for ; Thu, 22 Aug 2024 18:51:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C2882BC01B; Thu, 22 Aug 2024 18:51:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 5BD242BC01B for ; Thu, 22 Aug 2024 18:51:19 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 880AA342F65 for ; Thu, 22 Aug 2024 18:51:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1C9EF42 for ; Thu, 22 Aug 2024 18:51:16 +0000 (UTC) From: "Arthur Zamarin" 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" Message-ID: <1724352667.62b8bbfe52335c5110f52409921c6b0c349f51ff.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyyaml/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyyaml/pyyaml-6.0.2.ebuild X-VCS-Directories: dev-python/pyyaml/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 62b8bbfe52335c5110f52409921c6b0c349f51ff X-VCS-Branch: master Date: Thu, 22 Aug 2024 18:51:16 +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: 6f22f9a8-7ed7-4352-88eb-d6751c01bdea X-Archives-Hash: 83f2e6edf06d46b9cce25bbe059a8242 commit: 62b8bbfe52335c5110f52409921c6b0c349f51ff Author: Arthur Zamarin gentoo org> AuthorDate: Thu Aug 22 18:50:30 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Aug 22 18:51:07 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62b8bbfe dev-python/pyyaml: use pytest for tests See-Also: https://github.com/yaml/pyyaml/pull/820 Closes: https://bugs.gentoo.org/927523 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/pyyaml/pyyaml-6.0.2.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dev-python/pyyaml/pyyaml-6.0.2.ebuild b/dev-python/pyyaml/pyyaml-6.0.2.ebuild index 9be8de2241fe..685256197d60 100644 --- a/dev-python/pyyaml/pyyaml-6.0.2.ebuild +++ b/dev-python/pyyaml/pyyaml-6.0.2.ebuild @@ -38,6 +38,8 @@ BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] " +distutils_enable_tests pytest + src_configure() { export PYYAML_FORCE_CYTHON=1 } @@ -47,11 +49,7 @@ python_test() { local -x PYTHONPATH="tests/legacy_tests:${PYTHONPATH}" # upstream indicates testing may pollute the package cp -a "${BUILD_DIR}"/{install,test} || die - "${BUILD_DIR}"/test/usr/bin/python <<-EOF || die "Tests failed on ${EPYTHON}" - import sys - import test_all - sys.exit(0 if test_all.main() else 1) - EOF + epytest } python_install_all() {