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 C4BF513997D for ; Fri, 15 Nov 2019 17:28:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFE1DE0798; Fri, 15 Nov 2019 17:28: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 D8026E0798 for ; Fri, 15 Nov 2019 17:28:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 4ED1534CE83 for ; Fri, 15 Nov 2019 17:28:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D4D1A71A for ; Fri, 15 Nov 2019 17:27:58 +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: <1573838874.741e223b6194918335e235cd43b2ce5bf6ba7f54.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/future/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/future/future-0.17.1.ebuild X-VCS-Directories: dev-python/future/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 741e223b6194918335e235cd43b2ce5bf6ba7f54 X-VCS-Branch: master Date: Fri, 15 Nov 2019 17:27:58 +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: f23d1446-f3a2-4d6f-a691-90f79f6de9f1 X-Archives-Hash: f8ac0e2b7118f3107927e42671063cb5 commit: 741e223b6194918335e235cd43b2ce5bf6ba7f54 Author: Michał Górny gentoo org> AuthorDate: Fri Nov 15 16:59:38 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 15 17:27:54 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=741e223b dev-python/future: Modernize, fix tests Signed-off-by: Michał Górny gentoo.org> dev-python/future/future-0.17.1.ebuild | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/dev-python/future/future-0.17.1.ebuild b/dev-python/future/future-0.17.1.ebuild index e99e2709bfa..0aee1d1a931 100644 --- a/dev-python/future/future-0.17.1.ebuild +++ b/dev-python/future/future-0.17.1.ebuild @@ -14,25 +14,38 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="doc test" +IUSE="doc" +distutils_enable_tests pytest + +# TODO: make numpy unconditional when it supports py3.8 BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] doc? ( - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}] + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}] + ' python{2_7,3_{5,6,7}}) ) test? ( - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \ + python{2_7,3_{5,6,7}}) ) " -PATCHES=( -) +python_check_deps() { + use doc || return 0 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && + has_version "dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]" +} python_prepare_all() { sed -i "/'sphinx.ext.intersphinx'/d" docs/conf.py || die + # tests requiring network access + rm tests/test_future/test_requests.py || die + sed -i -e 's:test.*request_http:_&:' \ + tests/test_future/test_standard_library.py || die + distutils-r1_python_prepare_all } @@ -42,7 +55,3 @@ python_compile_all() { HTML_DOCS=( docs/_build/html/. ) fi } - -python_test() { - pytest -vv || die "Tests failed under ${EPYTHON}" -}