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 CFE121382C5 for ; Tue, 2 Mar 2021 08:40:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8C1FE0BA0; Tue, 2 Mar 2021 08:40:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 C3D2BE0BA0 for ; Tue, 2 Mar 2021 08:40:42 +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 7B9E7341201 for ; Tue, 2 Mar 2021 08:40:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7D0C5A5 for ; Tue, 2 Mar 2021 08:40:37 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1614674419.c4952755d59519af229a8973e08e90291d93ee16.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/falcon/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/falcon/falcon-2.0.0.ebuild X-VCS-Directories: dev-python/falcon/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c4952755d59519af229a8973e08e90291d93ee16 X-VCS-Branch: master Date: Tue, 2 Mar 2021 08:40:37 +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: ae8b6ccf-cd1f-4f8a-b096-efd67ae35087 X-Archives-Hash: c2d2b8921f257fa3fe2d394270486577 commit: c4952755d59519af229a8973e08e90291d93ee16 Author: Sam James gentoo org> AuthorDate: Tue Mar 2 08:26:48 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 2 08:40:19 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4952755 dev-python/falcon: Python 3.9, tests, modernise Closes: https://bugs.gentoo.org/748279 Signed-off-by: Sam James gentoo.org> dev-python/falcon/falcon-2.0.0.ebuild | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/dev-python/falcon/falcon-2.0.0.ebuild b/dev-python/falcon/falcon-2.0.0.ebuild index e22b065f73a..ff5be1f6d87 100644 --- a/dev-python/falcon/falcon-2.0.0.ebuild +++ b/dev-python/falcon/falcon-2.0.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) - +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 DESCRIPTION="A supersonic micro-framework for building cloud APIs" @@ -15,20 +15,31 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+cython" -RESTRICT="test" -RDEPEND="dev-python/six[${PYTHON_USEDEP}] +BDEPEND="cython? ( dev-python/cython[${PYTHON_USEDEP}] )" +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] dev-python/python-mimeparse[${PYTHON_USEDEP}] - cython? ( dev-python/cython[${PYTHON_USEDEP}] )" +" +DEPEND="${RDEPEND}" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" +distutils_enable_tests pytest src_prepare() { if ! use cython; then - sed -i -e 's/if with_cython:/if False:/' setup.py \ - || die 'sed failed.' + sed -i -e 's/if with_cython:/if False:/' setup.py || die fi - eapply_user + default +} + +python_test() { + local deselect=( + # mujson is unpackaged, test-only dep + --ignore tests/test_media_handlers.py + # uses unsafe serialization (unsafe_load) + --deselect tests/test_httperror.py::TestHTTPError::test_custom_error_serializer + ) + + pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}" }