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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97E9813835A for ; Tue, 18 Aug 2020 08:04:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CC84E0880; Tue, 18 Aug 2020 08:04:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 64A02E0880 for ; Tue, 18 Aug 2020 08:04:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 094ED34F403 for ; Tue, 18 Aug 2020 08:04:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 64A6F324 for ; Tue, 18 Aug 2020 08:04:00 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1597737835.827734e19d4d85d2d4cc3f52352996e87fa89d17.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setproctitle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/setproctitle/setproctitle-1.1.10-r1.ebuild X-VCS-Directories: dev-python/setproctitle/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 827734e19d4d85d2d4cc3f52352996e87fa89d17 X-VCS-Branch: master Date: Tue, 18 Aug 2020 08:04:00 +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: 0adca835-85dc-4a51-a42f-6b9d26f60091 X-Archives-Hash: b1b4b11401b6f78cfa8d79e86ea09ca5 commit: 827734e19d4d85d2d4cc3f52352996e87fa89d17 Author: Michał Górny gentoo org> AuthorDate: Mon Aug 17 14:04:13 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Aug 18 08:03:55 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=827734e1 dev-python/setproctitle: Port to pypy3 Signed-off-by: Michał Górny gentoo.org> .../setproctitle/setproctitle-1.1.10-r1.ebuild | 31 +++++++++++----------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/dev-python/setproctitle/setproctitle-1.1.10-r1.ebuild b/dev-python/setproctitle/setproctitle-1.1.10-r1.ebuild index a0662118eee..b6cec201959 100644 --- a/dev-python/setproctitle/setproctitle-1.1.10-r1.ebuild +++ b/dev-python/setproctitle/setproctitle-1.1.10-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6..9} ) +PYTHON_COMPAT=( python3_{6..9} pypy3 ) inherit distutils-r1 toolchain-funcs @@ -13,21 +13,22 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="test" -RESTRICT="!test? ( test )" -RDEPEND="" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/nose[${PYTHON_USEDEP}] )" - -# Required for re-write of test suite -DISTUTILS_IN_SOURCE_BUILD=1 +python_configure_all() { + 2to3 -w --no-diffs tests || die +} python_test() { - # prepare embedded executable - emake \ - CC="$(tc-getCC)" \ - PYINC="$(python_get_CFLAGS)" \ - PYLIB="$(python_get_LIBS)" \ - check + if [[ ${EPYTHON} != pypy* ]]; then + # prepare executable for embedded interpreter test + # (skipped with pypy) + rm -f tests/pyrun3 || die + emake \ + CC="$(tc-getCC)" \ + PYINC="$(python_get_CFLAGS)" \ + PYLIB="$(python_get_LIBS)" \ + tests/pyrun3 + fi + + "${EPYTHON}" tests/setproctitle_test.py -v || die "Tests failed with ${EPYTHON}" }